; LLVM IR from tevador/RandomX :: src/tests (perf-simulation)

; 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 }
%"class.randomx::Program" = type { [16 x i64], [256 x %"class.randomx::Instruction"] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 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 @_Z8generateRN7randomx7ProgramEj(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca %"class.randomx::Program", align 8
  %15 = alloca %"class.randomx::Program", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  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 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str, i32 noundef %19, ptr noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %11)
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.1, i32 noundef %21, ptr noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %12)
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.2, i32 noundef %23, ptr noundef %24, ptr noundef nonnull align 1 dereferenceable(1) %13)
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.3, i32 noundef %25, ptr noundef %26, ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef 1)
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.4, i32 noundef %27, ptr noundef %28, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 0)
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.5, i32 noundef %29, ptr noundef %30, ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 4)
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.6, i32 noundef %31, ptr noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 2)
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.7, i32 noundef %33, ptr noundef %34, ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 2176, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 2176, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %73, %2
  %36 = load i32, ptr %18, align 4, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %76

40:                                               ; preds = %35
  %41 = load i32, ptr %18, align 4, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = xor i32 %41, %42
  call void @_Z8generateRN7randomx7ProgramEj(ptr noundef nonnull align 8 dereferenceable(2176) %15, i32 noundef %43)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %15, i64 2176, i1 false)
  %44 = call noundef i32 @_Z7analyzeRN7randomx7ProgramE(ptr noundef nonnull align 8 dereferenceable(2176) %14)
  %45 = sitofp i32 %44 to double
  %46 = load double, ptr %17, align 8, !tbaa !11
  %47 = fadd double %46, %45
  store double %47, ptr %17, align 8, !tbaa !11
  %48 = load i8, ptr %12, align 1, !tbaa !13, !range !15, !noundef !16
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %59

50:                                               ; preds = %40
  %51 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %52 = trunc i8 %51 to i1
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = load i8, ptr %13, align 1, !tbaa !13, !range !15, !noundef !16
  %56 = trunc i8 %55 to i1
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = call noundef i32 @_Z17executeOutOfOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176) %14, ptr noundef nonnull align 8 dereferenceable(2176) %15, i1 noundef zeroext %52, i32 noundef %53, i32 noundef %54, i1 noundef zeroext %56, i32 noundef %57)
  br label %68

59:                                               ; preds = %40
  %60 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %61 = trunc i8 %60 to i1
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = load i8, ptr %13, align 1, !tbaa !13, !range !15, !noundef !16
  %65 = trunc i8 %64 to i1
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = call noundef i32 @_Z14executeInOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176) %14, ptr noundef nonnull align 8 dereferenceable(2176) %15, i1 noundef zeroext %61, i32 noundef %62, i32 noundef %63, i1 noundef zeroext %65, i32 noundef %66)
  br label %68

68:                                               ; preds = %59, %50
  %69 = phi i32 [ %58, %50 ], [ %67, %59 ]
  %70 = sitofp i32 %69 to double
  %71 = load double, ptr %16, align 8, !tbaa !11
  %72 = fadd double %71, %70
  store double %72, ptr %16, align 8, !tbaa !11
  br label %73

73:                                               ; preds = %68
  %74 = load i32, ptr %18, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %18, align 4, !tbaa !5
  br label %35, !llvm.loop !17

76:                                               ; preds = %39
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sitofp i32 %77 to double
  %79 = load double, ptr %16, align 8, !tbaa !11
  %80 = fdiv double %79, %78
  store double %80, ptr %16, align 8, !tbaa !11
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sitofp i32 %81 to double
  %83 = load double, ptr %17, align 8, !tbaa !11
  %84 = fdiv double %83, %82
  store double %84, ptr %17, align 8, !tbaa !11
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %86 = load double, ptr %16, align 8, !tbaa !11
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %85, double noundef %86)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @.str.9)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 2176, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 2176, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17executeOutOfOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176), ptr noundef nonnull align 8 dereferenceable(2176), i1 noundef zeroext, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z14executeInOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176), ptr noundef nonnull align 8 dereferenceable(2176), i1 noundef zeroext, i32 noundef, i32 noundef, i1 noundef zeroext, i32 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) #5

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

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 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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 }
%"class.randomx::Program" = type { [16 x i64], [256 x %"class.randomx::Instruction"] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 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 @_Z8generateRN7randomx7ProgramEj(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca %"class.randomx::Program", align 8
  %12 = alloca %"class.randomx::Program", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.1, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.2, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.3, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.4, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 0)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.5, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 4)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.6, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef 2)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.7, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 2176, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 2176, ptr nonnull %12) #6
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %37, %2
  %.024.lcssa = phi double [ 0.000000e+00, %2 ], [ %40, %37 ]
  %.lcssa = phi i32 [ %13, %2 ], [ %42, %37 ]
  %15 = sitofp i32 %.lcssa to double
  %16 = fdiv double %.024.lcssa, %15
  %17 = 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.8)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef %16)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.9)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 2176, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 2176, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret i32 0

.lr.ph:                                           ; preds = %2, %37
  %.027 = phi i32 [ %41, %37 ], [ 0, %2 ]
  %.02426 = phi double [ %40, %37 ], [ 0.000000e+00, %2 ]
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = xor i32 %21, %.027
  call void @_Z8generateRN7randomx7ProgramEj(ptr noundef nonnull align 8 dereferenceable(2176) %12, i32 noundef %22)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(2176) %11, ptr noundef nonnull align 8 dereferenceable(2176) %12, i64 2176, i1 false)
  %23 = call noundef i32 @_Z7analyzeRN7randomx7ProgramE(ptr noundef nonnull align 8 dereferenceable(2176) %11)
  %24 = load i8, ptr %9, align 1, !tbaa !9, !range !11, !noundef !12
  %25 = trunc nuw i8 %24 to i1
  %26 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %27 = trunc nuw i8 %26 to i1
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %31 = trunc nuw i8 %30 to i1
  %32 = load i32, ptr %7, align 4, !tbaa !5
  br i1 %25, label %33, label %35

33:                                               ; preds = %.lr.ph
  %34 = call noundef i32 @_Z17executeOutOfOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176) %11, ptr noundef nonnull align 8 dereferenceable(2176) %12, i1 noundef zeroext %27, i32 noundef %28, i32 noundef %29, i1 noundef zeroext %31, i32 noundef %32)
  br label %37

35:                                               ; preds = %.lr.ph
  %36 = call noundef i32 @_Z14executeInOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176) %11, ptr noundef nonnull align 8 dereferenceable(2176) %12, i1 noundef zeroext %27, i32 noundef %28, i32 noundef %29, i1 noundef zeroext %31, i32 noundef %32)
  br label %37

37:                                               ; preds = %35, %33
  %38 = phi i32 [ %34, %33 ], [ %36, %35 ]
  %39 = sitofp i32 %38 to double
  %40 = fadd double %.02426, %39
  %41 = add nuw nsw i32 %.027, 1
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !13
}

; 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 #3

; 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 #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17executeOutOfOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176), ptr noundef nonnull align 8 dereferenceable(2176), i1 noundef zeroext, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z14executeInOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176), ptr noundef nonnull align 8 dereferenceable(2176), i1 noundef zeroext, i32 noundef, i32 noundef, i1 noundef zeroext, i32 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 #5

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

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 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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