; LLVM IR from alibaba/BladeDISC :: tao_compiler/mlir/ral/device/cpu (cpu_driver)

; 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::__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] }
%"struct.tao::ral::MemRefType" = type { ptr, ptr, i64, [1 x i64], [1 x i64] }
%"class.std::allocator" = type { i8 }
%"class.tao::ral::cpu::CPUDriver" = type { %"class.tao::ral::Driver", %"class.std::unique_ptr" }
%"class.tao::ral::Driver" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"struct.tao::ral::cpu::CPUDriver::Impl" = type { ptr, %"class.std::function", %"class.std::function", %"class.std::function.2", %"class.std::function.5", %"class.std::function.8", %"class.std::function.11", %"class.std::function.13", %"class.std::function.15" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.2" = type { %"class.std::_Function_base", ptr }
%"class.std::function.5" = type { %"class.std::_Function_base", ptr }
%"class.std::function.8" = type { %"class.std::_Function_base", ptr }
%"class.std::function.11" = type { %"class.std::_Function_base", ptr }
%"class.std::function.13" = type { %"class.std::_Function_base", ptr }
%"class.std::function.15" = type { %"class.std::_Function_base", ptr }

@_ZN3tao3ral3cpu13kRalCpuLaunchE = external dso_local global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

declare void @_ZN3tao3ral7Context11signalErrorEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tao3ral3cpu9CPUDriver12launchKernelEPNS0_16ExecutionContextEPKcNS0_10MemRefTypeIlLi1EEES8_S8_lPvPS9_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, ptr noundef %2, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8 %3, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8 %4, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8 %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.tao::ral::MemRefType", align 8
  %22 = alloca %"struct.tao::ral::MemRefType", align 8
  %23 = alloca %"struct.tao::ral::MemRefType", align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i64 %6, ptr %13, align 8, !tbaa !9
  store ptr %7, ptr %14, align 8, !tbaa !5
  store ptr %8, ptr %15, align 8, !tbaa !5
  %24 = load ptr, ptr %10, align 8
  %25 = getelementptr inbounds %"class.tao::ral::cpu::CPUDriver", ptr %24, i32 0, i32 1
  %26 = call noundef ptr @_ZNKSt10unique_ptrIN3tao3ral3cpu9CPUDriver4ImplESt14default_deleteIS4_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %27 = getelementptr inbounds %"struct.tao::ral::cpu::CPUDriver::Impl", ptr %26, i32 0, i32 8
  %28 = call noundef zeroext i1 @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br i1 %28, label %52, label %29

29:                                               ; preds = %9
  %30 = getelementptr inbounds %"class.tao::ral::cpu::CPUDriver", ptr %24, i32 0, i32 1
  %31 = call noundef ptr @_ZNKSt10unique_ptrIN3tao3ral3cpu9CPUDriver4ImplESt14default_deleteIS4_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  %32 = getelementptr inbounds %"struct.tao::ral::cpu::CPUDriver::Impl", ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %34 = load ptr, ptr @_ZN3tao3ral3cpu13kRalCpuLaunchE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %35 unwind label %38

35:                                               ; preds = %29
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef %34, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %36 unwind label %42

36:                                               ; preds = %35
  invoke void @_ZN3tao3ral7Context11signalErrorEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %33, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %37 unwind label %46

37:                                               ; preds = %36
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %61

38:                                               ; preds = %29
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %19, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %20, align 4
  br label %51

42:                                               ; preds = %35
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %19, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %20, align 4
  br label %50

46:                                               ; preds = %36
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %19, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %50

50:                                               ; preds = %46, %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %51

51:                                               ; preds = %50, %38
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %62

52:                                               ; preds = %9
  %53 = getelementptr inbounds %"class.tao::ral::cpu::CPUDriver", ptr %24, i32 0, i32 1
  %54 = call noundef ptr @_ZNKSt10unique_ptrIN3tao3ral3cpu9CPUDriver4ImplESt14default_deleteIS4_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #6
  %55 = getelementptr inbounds %"struct.tao::ral::cpu::CPUDriver::Impl", ptr %54, i32 0, i32 8
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %3, i64 40, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %4, i64 40, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !21
  %58 = load i64, ptr %13, align 8, !tbaa !9
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEclES3_S5_S7_S7_S7_lS8_S9_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef %56, ptr noundef %57, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8 %21, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8 %22, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8 %23, i64 noundef %58, ptr noundef %59, ptr noundef %60)
  br label %61

61:                                               ; preds = %52, %37
  ret void

62:                                               ; preds = %51
  %63 = load ptr, ptr %19, align 8
  %64 = load i32, ptr %20, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEclES3_S5_S7_S7_S7_lS8_S9_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8, i64 noundef, ptr noundef, ptr noundef) #2 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) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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, !6, i64 0}
!12 = !{!"_ZTSN3tao3ral3cpu9CPUDriver4ImplE", !6, i64 0, !13, i64 8, !13, i64 40, !15, i64 72, !16, i64 104, !17, i64 136, !18, i64 168, !19, i64 200, !20, i64 232}
!13 = !{!"_ZTSSt8functionIFPvPN3tao3ral16ExecutionContextEmEE", !14, i64 0, !6, i64 24}
!14 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!15 = !{!"_ZTSSt8functionIFPvPN3tao3ral7ContextEmEE", !14, i64 0, !6, i64 24}
!16 = !{!"_ZTSSt8functionIFvPN3tao3ral7ContextEPvEE", !14, i64 0, !6, i64 24}
!17 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPvEE", !14, i64 0, !6, i64 24}
!18 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPvS4_mEE", !14, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPvimEE", !14, i64 0, !6, i64 24}
!20 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EE", !14, i64 0, !6, i64 24}
!21 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !9, i64 24, i64 8, !22, i64 32, i64 8, !22}
!22 = !{!7, !7, i64 0}


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

%"class.std::__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] }
%"struct.tao::ral::MemRefType" = type { ptr, ptr, i64, [1 x i64], [1 x i64] }
%"class.std::allocator" = type { i8 }

@_ZN3tao3ral3cpu13kRalCpuLaunchE = external dso_local local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

declare void @_ZN3tao3ral7Context11signalErrorEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tao3ral3cpu9CPUDriver12launchKernelEPNS0_16ExecutionContextEPKcNS0_10MemRefTypeIlLi1EEES8_S8_lPvPS9_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly byval(%"struct.tao::ral::MemRefType") align 8 %3, ptr nocapture noundef readonly byval(%"struct.tao::ral::MemRefType") align 8 %4, ptr nocapture noundef readonly byval(%"struct.tao::ral::MemRefType") align 8 %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = tail call noundef ptr @_ZNKSt10unique_ptrIN3tao3ral3cpu9CPUDriver4ImplESt14default_deleteIS4_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 232
  %16 = tail call noundef zeroext i1 @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  %17 = tail call noundef ptr @_ZNKSt10unique_ptrIN3tao3ral3cpu9CPUDriver4ImplESt14default_deleteIS4_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %16, label %32, label %18

18:                                               ; preds = %9
  %19 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %20 = load ptr, ptr @_ZN3tao3ral3cpu13kRalCpuLaunchE, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %21 unwind label %24

21:                                               ; preds = %18
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef %20, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %22 unwind label %26

22:                                               ; preds = %21
  invoke void @_ZN3tao3ral7Context11signalErrorEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %23 unwind label %28

23:                                               ; preds = %22
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %34

24:                                               ; preds = %18
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %31

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %31

31:                                               ; preds = %30, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %30 ], [ %25, %24 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  resume { ptr, i32 } %.pn.pn

32:                                               ; preds = %9
  %33 = getelementptr inbounds i8, ptr %17, i64 232
  tail call void @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEclES3_S5_S7_S7_S7_lS8_S9_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef %1, ptr noundef %2, ptr noundef nonnull byval(%"struct.tao::ral::MemRefType") align 8 %3, ptr noundef nonnull byval(%"struct.tao::ral::MemRefType") align 8 %4, ptr noundef nonnull byval(%"struct.tao::ral::MemRefType") align 8 %5, i64 noundef %6, ptr noundef %7, ptr noundef %8)
  br label %34

34:                                               ; preds = %32, %23
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EEclES3_S5_S7_S7_S7_lS8_S9_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8, ptr noundef byval(%"struct.tao::ral::MemRefType") align 8, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3tao3ral3cpu9CPUDriver4ImplE", !7, i64 0, !10, i64 8, !10, i64 40, !12, i64 72, !13, i64 104, !14, i64 136, !15, i64 168, !16, i64 200, !17, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt8functionIFPvPN3tao3ral16ExecutionContextEmEE", !11, i64 0, !7, i64 24}
!11 = !{!"_ZTSSt14_Function_base", !8, i64 0, !7, i64 16}
!12 = !{!"_ZTSSt8functionIFPvPN3tao3ral7ContextEmEE", !11, i64 0, !7, i64 24}
!13 = !{!"_ZTSSt8functionIFvPN3tao3ral7ContextEPvEE", !11, i64 0, !7, i64 24}
!14 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPvEE", !11, i64 0, !7, i64 24}
!15 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPvS4_mEE", !11, i64 0, !7, i64 24}
!16 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPvimEE", !11, i64 0, !7, i64 24}
!17 = !{!"_ZTSSt8functionIFvPN3tao3ral16ExecutionContextEPKcNS1_10MemRefTypeIlLi1EEES7_S7_lPvPS8_EE", !11, i64 0, !7, i64 24}
!18 = !{!7, !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass