; LLVM IR from tevador/RandomX :: src/tests (code-generator)

; 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::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.randomx::Blake2Generator" = type { [64 x i8], i64 }
%"class.randomx::AssemblyGeneratorX86" = type { %"class.std::__cxx11::basic_stringstream", [8 x i32] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"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] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZL4seed = external hidden constant [32 x i8], align 16

; 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: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #2 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 i32, align 4
  %11 = alloca %"class.randomx::SuperscalarProgram", align 8
  %12 = alloca %"class.randomx::Blake2Generator", align 8
  %13 = alloca %"class.randomx::AssemblyGeneratorX86", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = 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 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.8, i32 noundef %17, ptr noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %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.9, i32 noundef %19, ptr noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.10, i32 noundef %21, ptr noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 1000)
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.11, i32 noundef %23, ptr noundef %24, ptr noundef nonnull align 1 dereferenceable(1) %8)
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.12, i32 noundef %25, ptr noundef %26, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %27 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %38

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4200, ptr %11) #6
  call void @_ZN7randomx18SuperscalarProgramC2Ev(ptr noundef nonnull align 8 dereferenceable(4200) %11) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #6
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  call void @_ZN7randomx15Blake2GeneratorC1EPKvmi(ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef @_ZL4seed, i64 noundef %31, i32 noundef 0)
  call void @_ZN7randomx19generateSuperscalarERNS_18SuperscalarProgramERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(4200) %11, ptr noundef nonnull align 8 dereferenceable(72) %12)
  call void @llvm.lifetime.start.p0(i64 424, ptr %13) #6
  call void @_ZN7randomx20AssemblyGeneratorX86C2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13)
  invoke void @_ZN7randomx20AssemblyGeneratorX8611generateAsmERNS_18SuperscalarProgramE(ptr noundef nonnull align 8 dereferenceable(424) %13, ptr noundef nonnull align 8 dereferenceable(4200) %11)
          to label %32 unwind label %34

32:                                               ; preds = %29
  invoke void @_ZN7randomx20AssemblyGeneratorX869printCodeERSo(ptr noundef nonnull align 8 dereferenceable(424) %13, ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
          to label %33 unwind label %34

33:                                               ; preds = %32
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  call void @_ZN7randomx20AssemblyGeneratorX86D2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13) #6
  call void @llvm.lifetime.end.p0(i64 424, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4200, ptr %11) #6
  br label %64

34:                                               ; preds = %32, %29
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %14, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %15, align 4
  call void @_ZN7randomx20AssemblyGeneratorX86D2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13) #6
  call void @llvm.lifetime.end.p0(i64 424, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4200, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %66

38:                                               ; preds = %2
  %39 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %40 = trunc i8 %39 to i1
  br i1 %40, label %41, label %49

41:                                               ; preds = %38
  %42 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %46

44:                                               ; preds = %41
  %45 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z11generateAsmILb1EEvj(i32 noundef %45)
  br label %48

46:                                               ; preds = %41
  %47 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z11generateAsmILb0EEvj(i32 noundef %47)
  br label %48

48:                                               ; preds = %46, %44
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %64

49:                                               ; preds = %38
  %50 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %60

52:                                               ; preds = %49
  %53 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %57

55:                                               ; preds = %52
  %56 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z14generateNativeILb1EEvj(i32 noundef %56)
  br label %59

57:                                               ; preds = %52
  %58 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z14generateNativeILb0EEvj(i32 noundef %58)
  br label %59

59:                                               ; preds = %57, %55
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %64

60:                                               ; preds = %49
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  call void @_Z10printUsagePKc(ptr noundef %63)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %64

64:                                               ; preds = %60, %59, %48, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  %65 = load i32, ptr %3, align 4
  ret i32 %65

66:                                               ; preds = %34
  %67 = load ptr, ptr %14, align 8
  %68 = load i32, ptr %15, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx18SuperscalarProgramC2Ev(ptr noundef nonnull align 8 dereferenceable(4200)) unnamed_addr #3 align 2

declare void @_ZN7randomx15Blake2GeneratorC1EPKvmi(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef, i32 noundef) unnamed_addr #4

declare void @_ZN7randomx19generateSuperscalarERNS_18SuperscalarProgramERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(4200), ptr noundef nonnull align 8 dereferenceable(72)) #4

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

declare void @_ZN7randomx20AssemblyGeneratorX8611generateAsmERNS_18SuperscalarProgramE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(4200)) #4

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11generateAsmILb1EEvj(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11generateAsmILb0EEvj(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14generateNativeILb1EEvj(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14generateNativeILb0EEvj(i32 noundef) #1

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 = { "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 = { 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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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::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.randomx::Blake2Generator" = type { [64 x i8], i64 }
%"class.randomx::AssemblyGeneratorX86" = type { %"class.std::__cxx11::basic_stringstream", [8 x i32] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"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] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZL4seed = external hidden constant [32 x i8], align 16

; 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: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 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 i32, align 4
  %8 = alloca %"class.randomx::SuperscalarProgram", align 8
  %9 = alloca %"class.randomx::Blake2Generator", align 8
  %10 = alloca %"class.randomx::AssemblyGeneratorX86", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.8, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.9, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.10, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 1000)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.11, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.12, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %6)
  %11 = load i8, ptr %6, align 1, !tbaa !5, !range !9, !noundef !10
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %20

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4200, ptr nonnull %8) #6
  call void @_ZN7randomx18SuperscalarProgramC2Ev(ptr noundef nonnull align 8 dereferenceable(4200) %8) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #6
  %14 = load i32, ptr %7, align 4, !tbaa !11
  %15 = sext i32 %14 to i64
  call void @_ZN7randomx15Blake2GeneratorC1EPKvmi(ptr noundef nonnull align 8 dereferenceable(72) %9, ptr noundef nonnull @_ZL4seed, i64 noundef %15, i32 noundef 0)
  call void @_ZN7randomx19generateSuperscalarERNS_18SuperscalarProgramERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(4200) %8, ptr noundef nonnull align 8 dereferenceable(72) %9)
  call void @llvm.lifetime.start.p0(i64 424, ptr nonnull %10) #6
  call void @_ZN7randomx20AssemblyGeneratorX86C2Ev(ptr noundef nonnull align 8 dereferenceable(424) %10)
  invoke void @_ZN7randomx20AssemblyGeneratorX8611generateAsmERNS_18SuperscalarProgramE(ptr noundef nonnull align 8 dereferenceable(424) %10, ptr noundef nonnull align 8 dereferenceable(4200) %8)
          to label %16 unwind label %18

16:                                               ; preds = %13
  invoke void @_ZN7randomx20AssemblyGeneratorX869printCodeERSo(ptr noundef nonnull align 8 dereferenceable(424) %10, ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
          to label %17 unwind label %18

17:                                               ; preds = %16
  call void @_ZN7randomx20AssemblyGeneratorX86D2Ev(ptr noundef nonnull align 8 dereferenceable(424) %10) #6
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4200, ptr nonnull %8) #6
  br label %40

18:                                               ; preds = %16, %13
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7randomx20AssemblyGeneratorX86D2Ev(ptr noundef nonnull align 8 dereferenceable(424) %10) #6
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4200, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  resume { ptr, i32 } %19

20:                                               ; preds = %2
  %21 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %23, label %29

23:                                               ; preds = %20
  %24 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %25 = trunc nuw i8 %24 to i1
  %26 = load i32, ptr %7, align 4, !tbaa !11
  br i1 %25, label %27, label %28

27:                                               ; preds = %23
  call void @_Z11generateAsmILb1EEvj(i32 noundef %26)
  br label %40

28:                                               ; preds = %23
  call void @_Z11generateAsmILb0EEvj(i32 noundef %26)
  br label %40

29:                                               ; preds = %20
  %30 = load i8, ptr %5, align 1, !tbaa !5, !range !9, !noundef !10
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %34 = trunc nuw i8 %33 to i1
  %35 = load i32, ptr %7, align 4, !tbaa !11
  br i1 %34, label %36, label %37

36:                                               ; preds = %32
  call void @_Z14generateNativeILb1EEvj(i32 noundef %35)
  br label %40

37:                                               ; preds = %32
  call void @_Z14generateNativeILb0EEvj(i32 noundef %35)
  br label %40

38:                                               ; preds = %29
  %39 = load ptr, ptr %1, align 8, !tbaa !13
  call void @_Z10printUsagePKc(ptr noundef %39)
  br label %40

40:                                               ; preds = %36, %37, %27, %28, %38, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #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)) 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx18SuperscalarProgramC2Ev(ptr noundef nonnull align 8 dereferenceable(4200)) unnamed_addr #3 align 2

declare void @_ZN7randomx15Blake2GeneratorC1EPKvmi(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef, i32 noundef) unnamed_addr #4

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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 = { "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 = { 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 = !{!"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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass