; LLVM IR from NVIDIA/DALI :: dali/pipeline/operator/op_schema.ll (ZN4dali8OpSchema8NumInputEii)

; 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.dali::OpSchema" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::map.9", %"struct.dali::detail::LazyValue", i32, %"class.std::vector.16", i8, i8, %"class.std::function", %"class.std::function", %"class.std::function", i32, i32, i32, %"class.std::vector", %"struct.dali::detail::LazyValue.21", i8, i8, i8, i8, i8, i8, %"class.std::optional", %"class.std::__cxx11::basic_string", i8, i8, i8, i8, %"class.std::map.30", i8, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::map.9" = type { %"class.std::_Rb_tree.10" }
%"class.std::_Rb_tree.10" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, dali::ArgumentDef>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, dali::ArgumentDef>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, dali::ArgumentDef>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, dali::ArgumentDef>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.dali::detail::LazyValue" = type { %"class.std::unique_ptr", %"class.std::recursive_mutex" }
%"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.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"class.std::recursive_mutex" = type { %"class.std::__recursive_mutex_base" }
%"class.std::__recursive_mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<dali::InputInfo, std::allocator<dali::InputInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::InputInfo, std::allocator<dali::InputInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::InputInfo, std::allocator<dali::InputInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::InputInfo, std::allocator<dali::InputInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::detail::LazyValue.21" = type { %"class.std::unique_ptr.22", %"class.std::recursive_mutex" }
%"class.std::unique_ptr.22" = type { %"struct.std::__uniq_ptr_data.23" }
%"struct.std::__uniq_ptr_data.23" = type { %"class.std::__uniq_ptr_impl.24" }
%"class.std::__uniq_ptr_impl.24" = type { %"class.std::tuple.25" }
%"class.std::tuple.25" = type { %"struct.std::_Tuple_impl.26" }
%"struct.std::_Tuple_impl.26" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base" }
%"struct.std::_Optional_payload_base" = type { %"union.std::_Optional_payload_base<bool>::_Storage", i8 }
%"union.std::_Optional_payload_base<bool>::_Storage" = type { %"struct.std::_Optional_payload_base<bool>::_Empty_byte" }
%"struct.std::_Optional_payload_base<bool>::_Empty_byte" = type { i8 }
%"class.std::map.30" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }

@_ZTISt16invalid_argument = external constant ptr
@.str.49 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [56 x i8], align 1

declare ptr @__cxa_allocate_exception(i64)

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(608) ptr @_ZN4dali8OpSchema8NumInputEii(ptr noundef nonnull align 8 dereferenceable(608) %0, i32 noundef %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %15, label %12

12:                                               ; preds = %3
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %15, label %22

15:                                               ; preds = %12, %3
  %16 = call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.49)
          to label %17 unwind label %18

17:                                               ; preds = %15
  call void @__cxa_throw(ptr %16, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #4
  unreachable

18:                                               ; preds = %15
  %19 = landingpad { ptr, i32 }
          cleanup
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %7, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %8, align 4
  call void @__cxa_free_exception(ptr %16) #3
  br label %41

22:                                               ; preds = %12
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp sgt i32 %23, %24
  br i1 %25, label %26, label %33

26:                                               ; preds = %22
  %27 = call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef @.str.50)
          to label %28 unwind label %29

28:                                               ; preds = %26
  call void @__cxa_throw(ptr %27, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #4
  unreachable

29:                                               ; preds = %26
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %7, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %8, align 4
  call void @__cxa_free_exception(ptr %27) #3
  br label %41

33:                                               ; preds = %22
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = getelementptr inbounds %"class.dali::OpSchema", ptr %9, i32 0, i32 13
  store i32 %34, ptr %35, align 8, !tbaa !11
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.dali::OpSchema", ptr %9, i32 0, i32 14
  store i32 %36, ptr %37, align 4, !tbaa !60
  %38 = getelementptr inbounds %"class.dali::OpSchema", ptr %9, i32 0, i32 7
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  call void @_ZNSt6vectorIN4dali9InputInfoESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40)
  ret ptr %9

41:                                               ; preds = %29, %18
  %42 = load ptr, ptr %7, align 8
  %43 = load i32, ptr %8, align 4
  %44 = insertvalue { ptr, i32 } poison, ptr %42, 0
  %45 = insertvalue { ptr, i32 } %44, i32 %43, 1
  resume { ptr, i32 } %45
}

attributes #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 = { nounwind "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 = { nounwind }
attributes #4 = { noreturn }

!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 = !{!12, !10, i64 352}
!12 = !{!"_ZTSN4dali8OpSchemaE", !13, i64 0, !13, i64 32, !16, i64 64, !13, i64 88, !20, i64 120, !28, i64 168, !10, i64 216, !37, i64 224, !41, i64 248, !41, i64 249, !42, i64 256, !42, i64 288, !42, i64 320, !10, i64 352, !10, i64 356, !10, i64 360, !16, i64 368, !44, i64 392, !41, i64 440, !41, i64 441, !41, i64 442, !41, i64 443, !41, i64 444, !41, i64 445, !51, i64 446, !13, i64 448, !41, i64 480, !41, i64 481, !41, i64 482, !41, i64 483, !55, i64 488, !41, i64 536, !41, i64 537, !13, i64 544, !13, i64 576}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4dali11ArgumentDefESt4lessIvESaISt4pairIKS5_S7_EEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali11ArgumentDefEESt10_Select1stISA_ESt4lessIvESaISA_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali11ArgumentDefEESt10_Select1stISA_ESt4lessIvESaISA_EE13_Rb_tree_implISE_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIvE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !15, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!28 = !{!"_ZTSN4dali6detail9LazyValueISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_11ArgumentDefESt4lessIvESaISt4pairIKS8_SB_EEEEE", !29, i64 0, !35, i64 8}
!29 = !{!"_ZTSSt10unique_ptrISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEELb0EE", !6, i64 0}
!35 = !{!"_ZTSSt15recursive_mutex", !36, i64 0}
!36 = !{!"_ZTSSt22__recursive_mutex_base", !7, i64 0}
!37 = !{!"_ZTSSt6vectorIN4dali9InputInfoESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIN4dali9InputInfoESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4dali9InputInfoESaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN4dali9InputInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"bool", !7, i64 0}
!42 = !{!"_ZTSSt8functionIFiRKN4dali6OpSpecEEE", !43, i64 0, !6, i64 24}
!43 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!44 = !{!"_ZTSN4dali6detail9LazyValueISt6vectorIPKNS_8OpSchemaESaIS5_EEEE", !45, i64 0, !35, i64 8}
!45 = !{!"_ZTSSt10unique_ptrISt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_dataISt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_ELb1ELb1EE", !47, i64 0}
!47 = !{!"_ZTSSt15__uniq_ptr_implISt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EE", !48, i64 0}
!48 = !{!"_ZTSSt5tupleIJPSt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EEE", !49, i64 0}
!49 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EEE", !50, i64 0}
!50 = !{!"_ZTSSt10_Head_baseILm0EPSt6vectorIPKN4dali8OpSchemaESaIS4_EELb0EE", !6, i64 0}
!51 = !{!"_ZTSSt8optionalIbE", !52, i64 0}
!52 = !{!"_ZTSSt14_Optional_baseIbLb1ELb1EE", !53, i64 0}
!53 = !{!"_ZTSSt17_Optional_payloadIbLb1ELb1ELb1EE", !54, i64 0}
!54 = !{!"_ZTSSt22_Optional_payload_baseIbE", !7, i64 0, !41, i64 1}
!55 = !{!"_ZTSSt3mapIiiSt4lessIiESaISt4pairIKiiEEE", !56, i64 0}
!56 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !57, i64 0}
!57 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !58, i64 0, !25, i64 8}
!58 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !59, i64 0}
!59 = !{!"_ZTSSt4lessIiE"}
!60 = !{!12, !10, i64 356}


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

@_ZTISt16invalid_argument = external constant ptr
@.str.49 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [56 x i8], align 1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4dali9InputInfoESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(608) ptr @_ZN4dali8OpSchema8NumInputEii(ptr noundef nonnull returned align 8 dereferenceable(608) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = or i32 %2, %1
  %or.cond.not = icmp sgt i32 %4, -1
  br i1 %or.cond.not, label %10, label %5

5:                                                ; preds = %3
  %6 = tail call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull @.str.49)
          to label %7 unwind label %8

7:                                                ; preds = %5
  tail call void @__cxa_throw(ptr nonnull %6, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #4
  unreachable

8:                                                ; preds = %5
  %9 = landingpad { ptr, i32 }
          cleanup
  br label %22

10:                                               ; preds = %3
  %11 = icmp sgt i32 %1, %2
  br i1 %11, label %12, label %17

12:                                               ; preds = %10
  %13 = tail call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.50)
          to label %14 unwind label %15

14:                                               ; preds = %12
  tail call void @__cxa_throw(ptr nonnull %13, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #4
  unreachable

15:                                               ; preds = %12
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %22

17:                                               ; preds = %10
  %18 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 %1, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 356
  store i32 %2, ptr %19, align 4, !tbaa !58
  %20 = getelementptr inbounds i8, ptr %0, i64 224
  %21 = zext nneg i32 %2 to i64
  tail call void @_ZNSt6vectorIN4dali9InputInfoESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %21)
  ret ptr %0

22:                                               ; preds = %15, %8
  %.sink = phi ptr [ %13, %15 ], [ %6, %8 ]
  %.pn = phi { ptr, i32 } [ %16, %15 ], [ %9, %8 ]
  tail call void @__cxa_free_exception(ptr %.sink) #3
  resume { ptr, i32 } %.pn
}

attributes #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 = { nounwind "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 = { nounwind }
attributes #4 = { noreturn }

!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, !34, i64 352}
!6 = !{!"_ZTSN4dali8OpSchemaE", !7, i64 0, !7, i64 32, !13, i64 64, !7, i64 88, !17, i64 120, !25, i64 168, !34, i64 216, !35, i64 224, !39, i64 248, !39, i64 249, !40, i64 256, !40, i64 288, !40, i64 320, !34, i64 352, !34, i64 356, !34, i64 360, !13, i64 368, !42, i64 392, !39, i64 440, !39, i64 441, !39, i64 442, !39, i64 443, !39, i64 444, !39, i64 445, !49, i64 446, !7, i64 448, !39, i64 480, !39, i64 481, !39, i64 482, !39, i64 483, !53, i64 488, !39, i64 536, !39, i64 537, !7, i64 544, !7, i64 576}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!17 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4dali11ArgumentDefESt4lessIvESaISt4pairIKS5_S7_EEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali11ArgumentDefEESt10_Select1stISA_ESt4lessIvESaISA_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali11ArgumentDefEESt10_Select1stISA_ESt4lessIvESaISA_EE13_Rb_tree_implISE_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessIvE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !12, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!25 = !{!"_ZTSN4dali6detail9LazyValueISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_11ArgumentDefESt4lessIvESaISt4pairIKS8_SB_EEEEE", !26, i64 0, !32, i64 8}
!26 = !{!"_ZTSSt10unique_ptrISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_ELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEESt14default_deleteISH_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN4dali11ArgumentDefESt4lessIvESaISt4pairIKS6_SA_EEELb0EE", !9, i64 0}
!32 = !{!"_ZTSSt15recursive_mutex", !33, i64 0}
!33 = !{!"_ZTSSt22__recursive_mutex_base", !10, i64 0}
!34 = !{!"int", !10, i64 0}
!35 = !{!"_ZTSSt6vectorIN4dali9InputInfoESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN4dali9InputInfoESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN4dali9InputInfoESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4dali9InputInfoESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!39 = !{!"bool", !10, i64 0}
!40 = !{!"_ZTSSt8functionIFiRKN4dali6OpSpecEEE", !41, i64 0, !9, i64 24}
!41 = !{!"_ZTSSt14_Function_base", !10, i64 0, !9, i64 16}
!42 = !{!"_ZTSN4dali6detail9LazyValueISt6vectorIPKNS_8OpSchemaESaIS5_EEEE", !43, i64 0, !32, i64 8}
!43 = !{!"_ZTSSt10unique_ptrISt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_dataISt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_ELb1ELb1EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_implISt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EE", !46, i64 0}
!46 = !{!"_ZTSSt5tupleIJPSt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EEE", !47, i64 0}
!47 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6vectorIPKN4dali8OpSchemaESaIS4_EESt14default_deleteIS6_EEE", !48, i64 0}
!48 = !{!"_ZTSSt10_Head_baseILm0EPSt6vectorIPKN4dali8OpSchemaESaIS4_EELb0EE", !9, i64 0}
!49 = !{!"_ZTSSt8optionalIbE", !50, i64 0}
!50 = !{!"_ZTSSt14_Optional_baseIbLb1ELb1EE", !51, i64 0}
!51 = !{!"_ZTSSt17_Optional_payloadIbLb1ELb1ELb1EE", !52, i64 0}
!52 = !{!"_ZTSSt22_Optional_payload_baseIbE", !10, i64 0, !39, i64 1}
!53 = !{!"_ZTSSt3mapIiiSt4lessIiESaISt4pairIKiiEEE", !54, i64 0}
!54 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !55, i64 0}
!55 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !56, i64 0, !22, i64 8}
!56 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !57, i64 0}
!57 = !{!"_ZTSSt4lessIiE"}
!58 = !{!6, !34, i64 356}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass