; LLVM IR from thepowersgang/mrustc :: src/macro_rules (eval)

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

%struct.Span = type { 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.anon.30 = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon.31 = type { ptr, ptr }
%class.anon.32 = type { ptr, ptr }
%class.ParameterMappings = type <{ %"class.std::map", %"class.std::vector.3", i32, [4 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>, std::_Select1st<std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>, std::_Select1st<std::pair<const unsigned int, std::map<std::vector<unsigned int>, unsigned int>>>, std::less<unsigned int>>::_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 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ParameterMappings::CapturedVar, std::allocator<ParameterMappings::CapturedVar>>::_Vector_impl" }
%"struct.std::_Vector_base<ParameterMappings::CapturedVar, std::allocator<ParameterMappings::CapturedVar>>::_Vector_impl" = type { %"struct.std::_Vector_base<ParameterMappings::CapturedVar, std::allocator<ParameterMappings::CapturedVar>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ParameterMappings::CapturedVar, std::allocator<ParameterMappings::CapturedVar>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ParameterMappings::CapturedVar" = type { %"class.ParameterMappings::CaptureLayer" }
%"class.ParameterMappings::CaptureLayer" = type { i32, %"union.ParameterMappings::CaptureLayer::DataUnion" }
%"union.ParameterMappings::CaptureLayer::DataUnion" = type { %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<ParameterMappings::CapturedVal, std::allocator<ParameterMappings::CapturedVal>>::_Vector_impl" }
%"struct.std::_Vector_base<ParameterMappings::CapturedVal, std::allocator<ParameterMappings::CapturedVal>>::_Vector_impl" = type { %"struct.std::_Vector_base<ParameterMappings::CapturedVal, std::allocator<ParameterMappings::CapturedVal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ParameterMappings::CapturedVal, std::allocator<ParameterMappings::CapturedVal>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@g_debug_indent_level = external global i32, align 4
@.str.4 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@__FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj = external hidden unnamed_addr constant [122 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

declare noundef zeroext i1 @_Z13debug_enabledv() #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIjERSoS0_RKSt6vectorIT_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0

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

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.Span, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon.30, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca ptr, align 8
  %25 = alloca i8, align 1
  %26 = alloca ptr, align 8
  %27 = alloca %struct.Span, align 8
  %28 = alloca %"class.std::function", align 8
  %29 = alloca %class.anon.31, align 8
  %30 = alloca i8, align 1
  %31 = alloca ptr, align 8
  %32 = alloca %struct.Span, align 8
  %33 = alloca %"class.std::function", align 8
  %34 = alloca %class.anon.32, align 8
  %35 = alloca i8, align 1
  %36 = alloca ptr, align 8
  %37 = alloca i8, align 1
  %38 = alloca ptr, align 8
  %39 = alloca i8, align 1
  %40 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %41 = load ptr, ptr %6, align 8
  br label %42

42:                                               ; preds = %4
  %43 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %43, label %44, label %56

44:                                               ; preds = %42
  %45 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %45, ptr noundef @__FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.9)
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIjERSoS0_RKSt6vectorIT_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(24) %48)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @.str.10)
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.11)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @_ZSt3decRSt8ios_base)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %56

56:                                               ; preds = %44, %42
  br label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %58 = getelementptr inbounds %class.ParameterMappings, ptr %41, i32 0, i32 1
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN17ParameterMappings11CapturedVarESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60)
  store ptr %61, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.ParameterMappings::CapturedVar", ptr %62, i32 0, i32 0
  store ptr %63, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = call noundef ptr @_ZNK17ParameterMappings12CaptureLayer8opt_ValsEv(ptr noundef nonnull align 8 dereferenceable(32) %64)
  store ptr %65, ptr %12, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %95

68:                                               ; preds = %57
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  %71 = icmp eq i64 %70, 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %96

73:                                               ; preds = %68
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #8
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %77, label %94

77:                                               ; preds = %73
  br label %78

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %79)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %80 = getelementptr inbounds %class.anon.30, ptr %16, i32 0, i32 0
  store ptr %9, ptr %80, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %15)
          to label %81 unwind label %84

81:                                               ; preds = %78
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %82 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef @.str.8)
          to label %83 unwind label %88

83:                                               ; preds = %81
  call void @__cxa_throw(ptr %82, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %17, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %109

88:                                               ; preds = %81
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %17, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %18, align 4
  call void @__cxa_free_exception(ptr %82) #8
  br label %109

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93, %73
  br label %95

95:                                               ; preds = %94, %57
  store i32 0, ptr %13, align 4
  br label %96

96:                                               ; preds = %95, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %97 = load i32, ptr %13, align 4
  switch i32 %97, label %315 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %99, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = call ptr @_ZNKSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #8
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %104, ptr %105, align 8
  br label %106

106:                                              ; preds = %236, %98
  %107 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %107, label %110, label %108

108:                                              ; preds = %106
  store i32 6, ptr %13, align 4
  br label %238

109:                                              ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %317

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %112 = load i32, ptr %111, align 4, !tbaa !9
  store i32 %112, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  store i8 1, ptr %23, align 1, !tbaa !11
  br label %113

113:                                              ; preds = %229, %110
  %114 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %115 = trunc i8 %114 to i1
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 8, ptr %13, align 4
  br label %230

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %118, ptr %24, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %224, %117
  %120 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %121 = trunc i8 %120 to i1
  br i1 %121, label %123, label %122

122:                                              ; preds = %119
  store i32 11, ptr %13, align 4
  br label %225

123:                                              ; preds = %119
  %124 = load ptr, ptr %24, align 8, !tbaa !5
  %125 = call noundef i32 @_ZNK17ParameterMappings12CaptureLayer3tagEv(ptr noundef nonnull align 8 dereferenceable(32) %124)
  switch i32 %125, label %223 [
    i32 0, label %126
    i32 1, label %127
    i32 2, label %175
  ]

126:                                              ; preds = %123
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.4, i32 noundef 303, ptr noundef @__PRETTY_FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj) #10
  unreachable

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  store i8 1, ptr %25, align 1, !tbaa !11
  br label %128

128:                                              ; preds = %171, %127
  %129 = load i8, ptr %25, align 1, !tbaa !11, !range !13, !noundef !14
  %130 = trunc i8 %129 to i1
  br i1 %130, label %132, label %131

131:                                              ; preds = %128
  store i32 15, ptr %13, align 4
  br label %172

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %133 = load ptr, ptr %24, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer7as_ValsEv(ptr noundef nonnull align 8 dereferenceable(32) %133)
  store ptr %134, ptr %26, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %166, %132
  %136 = load ptr, ptr %26, align 8, !tbaa !5
  %137 = load i8, ptr %25, align 1, !tbaa !11, !range !13, !noundef !14
  %138 = trunc i8 %137 to i1
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 18, ptr %13, align 4
  br label %167

140:                                              ; preds = %135
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %22, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = load ptr, ptr %26, align 8, !tbaa !5
  %145 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #8
  %146 = icmp ult i64 %143, %145
  br i1 %146, label %163, label %147

147:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %148)
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %149 = getelementptr inbounds %class.anon.31, ptr %29, i32 0, i32 0
  store ptr %22, ptr %149, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.anon.31, ptr %29, i32 0, i32 1
  %151 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %151, ptr %150, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %28)
          to label %152 unwind label %155

152:                                              ; preds = %147
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %153 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %153, ptr noundef @.str.8)
          to label %154 unwind label %159

154:                                              ; preds = %152
  call void @__cxa_throw(ptr %153, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

155:                                              ; preds = %147
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %17, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %169

159:                                              ; preds = %152
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %17, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %18, align 4
  call void @__cxa_free_exception(ptr %153) #8
  br label %169

163:                                              ; preds = %141
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %167

166:                                              ; No predecessors!
  store i8 0, ptr %25, align 1, !tbaa !11
  br label %135, !llvm.loop !15

167:                                              ; preds = %165, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  %168 = load i32, ptr %13, align 4
  switch i32 %168, label %172 [
    i32 18, label %170
  ]

169:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %227

170:                                              ; preds = %167
  br label %171

171:                                              ; preds = %170
  store i8 0, ptr %25, align 1, !tbaa !11
  br label %128, !llvm.loop !17

172:                                              ; preds = %167, %131
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  %173 = load i32, ptr %13, align 4
  switch i32 %173, label %225 [
    i32 15, label %174
  ]

174:                                              ; preds = %172
  br label %223

175:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  store i8 1, ptr %30, align 1, !tbaa !11
  br label %176

176:                                              ; preds = %221, %175
  %177 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %178 = trunc i8 %177 to i1
  br i1 %178, label %180, label %179

179:                                              ; preds = %176
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  br label %222

180:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %181 = load ptr, ptr %24, align 8, !tbaa !5
  %182 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer9as_NestedEv(ptr noundef nonnull align 8 dereferenceable(32) %181)
  store ptr %182, ptr %31, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %218, %180
  %184 = load ptr, ptr %31, align 8, !tbaa !5
  %185 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %186 = trunc i8 %185 to i1
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 26, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %220

188:                                              ; preds = %183
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = load ptr, ptr %31, align 8, !tbaa !5
  %193 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #8
  %194 = icmp ult i64 %191, %193
  br i1 %194, label %211, label %195

195:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %196)
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %197 = getelementptr inbounds %class.anon.32, ptr %34, i32 0, i32 0
  store ptr %22, ptr %197, align 8, !tbaa !5
  %198 = getelementptr inbounds %class.anon.32, ptr %34, i32 0, i32 1
  %199 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %199, ptr %198, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(16) %34) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %33)
          to label %200 unwind label %203

200:                                              ; preds = %195
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %201 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %201, ptr noundef @.str.8)
          to label %202 unwind label %207

202:                                              ; preds = %200
  call void @__cxa_throw(ptr %201, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

203:                                              ; preds = %195
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %17, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %219

207:                                              ; preds = %200
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %17, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %18, align 4
  call void @__cxa_free_exception(ptr %201) #8
  br label %219

211:                                              ; preds = %189
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %31, align 8, !tbaa !5
  %215 = load i32, ptr %22, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216)
  store ptr %217, ptr %11, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %213
  store i8 0, ptr %30, align 1, !tbaa !11
  br label %183, !llvm.loop !18

219:                                              ; preds = %207, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  br label %227

220:                                              ; preds = %187
  br label %221

221:                                              ; preds = %220
  store i8 0, ptr %30, align 1, !tbaa !11
  br label %176, !llvm.loop !19

222:                                              ; preds = %179
  br label %223

223:                                              ; preds = %222, %174, %123
  br label %224

224:                                              ; preds = %223
  store i8 0, ptr %23, align 1, !tbaa !11
  br label %119, !llvm.loop !20

225:                                              ; preds = %172, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  %226 = load i32, ptr %13, align 4
  switch i32 %226, label %230 [
    i32 11, label %228
  ]

227:                                              ; preds = %219, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %317

228:                                              ; preds = %225
  br label %229

229:                                              ; preds = %228
  store i8 0, ptr %23, align 1, !tbaa !11
  br label %113, !llvm.loop !21

230:                                              ; preds = %225, %116
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  %231 = load i32, ptr %13, align 4
  switch i32 %231, label %233 [
    i32 8, label %232
  ]

232:                                              ; preds = %230
  store i32 0, ptr %13, align 4
  br label %233

233:                                              ; preds = %232, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %234 = load i32, ptr %13, align 4
  switch i32 %234, label %238 [
    i32 0, label %235
  ]

235:                                              ; preds = %233
  br label %236

236:                                              ; preds = %235
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %106

238:                                              ; preds = %233, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %239 = load i32, ptr %13, align 4
  switch i32 %239, label %315 [
    i32 6, label %240
  ]

240:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #8
  store i8 1, ptr %35, align 1, !tbaa !11
  br label %241

241:                                              ; preds = %310, %240
  %242 = load i8, ptr %35, align 1, !tbaa !11, !range !13, !noundef !14
  %243 = trunc i8 %242 to i1
  br i1 %243, label %245, label %244

244:                                              ; preds = %241
  store i32 31, ptr %13, align 4
  br label %311

245:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %246, ptr %36, align 8, !tbaa !5
  br label %247

247:                                              ; preds = %306, %245
  %248 = load i8, ptr %35, align 1, !tbaa !11, !range !13, !noundef !14
  %249 = trunc i8 %248 to i1
  br i1 %249, label %251, label %250

250:                                              ; preds = %247
  store i32 34, ptr %13, align 4
  br label %307

251:                                              ; preds = %247
  %252 = load ptr, ptr %36, align 8, !tbaa !5
  %253 = call noundef i32 @_ZNK17ParameterMappings12CaptureLayer3tagEv(ptr noundef nonnull align 8 dereferenceable(32) %252)
  switch i32 %253, label %305 [
    i32 0, label %254
    i32 1, label %255
    i32 2, label %280
  ]

254:                                              ; preds = %251
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.4, i32 noundef 314, ptr noundef @__PRETTY_FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj) #10
  unreachable

255:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #8
  store i8 1, ptr %37, align 1, !tbaa !11
  br label %256

256:                                              ; preds = %276, %255
  %257 = load i8, ptr %37, align 1, !tbaa !11, !range !13, !noundef !14
  %258 = trunc i8 %257 to i1
  br i1 %258, label %260, label %259

259:                                              ; preds = %256
  store i32 38, ptr %13, align 4
  br label %277

260:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %261 = load ptr, ptr %36, align 8, !tbaa !5
  %262 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer7as_ValsEv(ptr noundef nonnull align 8 dereferenceable(32) %261)
  store ptr %262, ptr %38, align 8, !tbaa !5
  br label %263

263:                                              ; preds = %272, %260
  %264 = load ptr, ptr %38, align 8, !tbaa !5
  %265 = load i8, ptr %37, align 1, !tbaa !11, !range !13, !noundef !14
  %266 = trunc i8 %265 to i1
  br i1 %266, label %268, label %267

267:                                              ; preds = %263
  store i32 41, ptr %13, align 4
  br label %273

268:                                              ; preds = %263
  %269 = load ptr, ptr %38, align 8, !tbaa !5
  %270 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %269) #8
  %271 = trunc i64 %270 to i32
  store i32 %271, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %273

272:                                              ; No predecessors!
  store i8 0, ptr %37, align 1, !tbaa !11
  br label %263, !llvm.loop !22

273:                                              ; preds = %268, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  %274 = load i32, ptr %13, align 4
  switch i32 %274, label %277 [
    i32 41, label %275
  ]

275:                                              ; preds = %273
  br label %276

276:                                              ; preds = %275
  store i8 0, ptr %37, align 1, !tbaa !11
  br label %256, !llvm.loop !23

277:                                              ; preds = %273, %259
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #8
  %278 = load i32, ptr %13, align 4
  switch i32 %278, label %307 [
    i32 38, label %279
  ]

279:                                              ; preds = %277
  br label %305

280:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #8
  store i8 1, ptr %39, align 1, !tbaa !11
  br label %281

281:                                              ; preds = %301, %280
  %282 = load i8, ptr %39, align 1, !tbaa !11, !range !13, !noundef !14
  %283 = trunc i8 %282 to i1
  br i1 %283, label %285, label %284

284:                                              ; preds = %281
  store i32 44, ptr %13, align 4
  br label %302

285:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %286 = load ptr, ptr %36, align 8, !tbaa !5
  %287 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer9as_NestedEv(ptr noundef nonnull align 8 dereferenceable(32) %286)
  store ptr %287, ptr %40, align 8, !tbaa !5
  br label %288

288:                                              ; preds = %297, %285
  %289 = load ptr, ptr %40, align 8, !tbaa !5
  %290 = load i8, ptr %39, align 1, !tbaa !11, !range !13, !noundef !14
  %291 = trunc i8 %290 to i1
  br i1 %291, label %293, label %292

292:                                              ; preds = %288
  store i32 47, ptr %13, align 4
  br label %298

293:                                              ; preds = %288
  %294 = load ptr, ptr %40, align 8, !tbaa !5
  %295 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %294) #8
  %296 = trunc i64 %295 to i32
  store i32 %296, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %298

297:                                              ; No predecessors!
  store i8 0, ptr %39, align 1, !tbaa !11
  br label %288, !llvm.loop !24

298:                                              ; preds = %293, %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  %299 = load i32, ptr %13, align 4
  switch i32 %299, label %302 [
    i32 47, label %300
  ]

300:                                              ; preds = %298
  br label %301

301:                                              ; preds = %300
  store i8 0, ptr %39, align 1, !tbaa !11
  br label %281, !llvm.loop !25

302:                                              ; preds = %298, %284
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #8
  %303 = load i32, ptr %13, align 4
  switch i32 %303, label %307 [
    i32 44, label %304
  ]

304:                                              ; preds = %302
  br label %305

305:                                              ; preds = %304, %279, %251
  br label %306

306:                                              ; preds = %305
  store i8 0, ptr %35, align 1, !tbaa !11
  br label %247, !llvm.loop !26

307:                                              ; preds = %302, %277, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  %308 = load i32, ptr %13, align 4
  switch i32 %308, label %311 [
    i32 34, label %309
  ]

309:                                              ; preds = %307
  br label %310

310:                                              ; preds = %309
  store i8 0, ptr %35, align 1, !tbaa !11
  br label %241, !llvm.loop !27

311:                                              ; preds = %307, %244
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  %312 = load i32, ptr %13, align 4
  switch i32 %312, label %315 [
    i32 31, label %313
  ]

313:                                              ; preds = %311
  %314 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.14, ptr %314, align 16, !tbaa !5
  call void @__cxa_throw(ptr %314, ptr @_ZTIPKc, ptr null) #9
  unreachable

315:                                              ; preds = %311, %238, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %316 = load i32, ptr %5, align 4
  ret i32 %316

317:                                              ; preds = %227, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %318

318:                                              ; preds = %317
  %319 = load ptr, ptr %17, align 8
  %320 = load i32, ptr %18, align 4
  %321 = insertvalue { ptr, i32 } poison, ptr %319, 0
  %322 = insertvalue { ptr, i32 } %321, i32 %320, 1
  resume { ptr, i32 } %322
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

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

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

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


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

%struct.Span = type { 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.anon.30 = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon.31 = type { ptr, ptr }
%class.anon.32 = type { ptr, ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@__FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj = external hidden unnamed_addr constant [122 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIjERSoS0_RKSt6vectorIT_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

; 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 #2 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)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17ParameterMappings12CaptureLayer3tagEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %struct.Span, align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.30, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.Span, align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.31, align 8
  %15 = alloca %struct.Span, align 8
  %16 = alloca %"class.std::function", align 8
  %17 = alloca %class.anon.32, align 8
  store i32 %3, ptr %5, align 4, !tbaa !5
  %18 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %18, label %19, label %29

19:                                               ; preds = %4
  %20 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %20, ptr noundef nonnull @__FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj)
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.9)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIjERSoS0_RKSt6vectorIT_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @.str.10)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %3)
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.11)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %29

29:                                               ; preds = %4, %19
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = zext i32 %3 to i64
  %32 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN17ParameterMappings11CapturedVarESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %31)
  %33 = tail call noundef ptr @_ZNK17ParameterMappings12CaptureLayer8opt_ValsEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  %.not = icmp eq ptr %33, null
  br i1 %.not, label %48, label %34

34:                                               ; preds = %29
  %35 = tail call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %36 = icmp eq i64 %35, 1
  br i1 %36, label %.critedge, label %37

37:                                               ; preds = %34
  %38 = tail call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %48

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store ptr %5, ptr %8, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %7)
          to label %41 unwind label %44

41:                                               ; preds = %40
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %42 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull @.str.8)
          to label %43 unwind label %46

43:                                               ; preds = %41
  call void @__cxa_throw(ptr nonnull %42, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

44:                                               ; preds = %40
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %95

46:                                               ; preds = %41
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %42) #8
  br label %95

48:                                               ; preds = %37, %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %49 = tail call ptr @_ZNKSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  store ptr %49, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %50 = tail call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  store ptr %50, ptr %10, align 8
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %51, label %.lr.ph210, label %.preheader

.lr.ph210:                                        ; preds = %48, %..critedge118.loopexit_crit_edge
  %.072209 = phi ptr [ %.577, %..critedge118.loopexit_crit_edge ], [ %32, %48 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %53 = load i32, ptr %52, align 4, !tbaa !5
  store i32 %53, ptr %11, align 4, !tbaa !5
  %54 = call noundef i32 @_ZNK17ParameterMappings12CaptureLayer3tagEv(ptr noundef nonnull align 8 dereferenceable(32) %.072209)
  switch i32 %54, label %..critedge118.loopexit_crit_edge [
    i32 0, label %.split172
    i32 1, label %.split174
    i32 2, label %.preheader127
  ]

.preheader127:                                    ; preds = %.lr.ph210
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer9as_NestedEv(ptr noundef nonnull align 8 dereferenceable(32) %.072209)
  %56 = load i32, ptr %11, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #8
  %59 = icmp ugt i64 %58, %57
  br i1 %59, label %..loopexit126_crit_edge, label %.split

.split172:                                        ; preds = %.lr.ph210
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.4, i32 noundef 303, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj) #10
  unreachable

.split174:                                        ; preds = %.lr.ph210
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer7as_ValsEv(ptr noundef nonnull align 8 dereferenceable(32) %.072209)
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  %63 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %64 = icmp ugt i64 %63, %62
  br i1 %64, label %._crit_edge, label %65

65:                                               ; preds = %.split174
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  store ptr %11, ptr %14, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %60, ptr %66, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13)
          to label %67 unwind label %70

67:                                               ; preds = %65
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  %68 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull @.str.8)
          to label %69 unwind label %72

69:                                               ; preds = %67
  call void @__cxa_throw(ptr nonnull %68, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

70:                                               ; preds = %65
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %87

72:                                               ; preds = %67
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %68) #8
  br label %87

.split:                                           ; preds = %.preheader127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  store ptr %11, ptr %17, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %17, i64 8
  store ptr %55, ptr %74, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull %16)
          to label %75 unwind label %78

75:                                               ; preds = %.split
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %76 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull @.str.8)
          to label %77 unwind label %80

77:                                               ; preds = %75
  call void @__cxa_throw(ptr nonnull %76, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

78:                                               ; preds = %.split
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %87

80:                                               ; preds = %75
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %76) #8
  br label %87

..loopexit126_crit_edge:                          ; preds = %.preheader127
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %83)
  br label %..critedge118.loopexit_crit_edge

..critedge118.loopexit_crit_edge:                 ; preds = %..loopexit126_crit_edge, %.lr.ph210
  %.577 = phi ptr [ %.072209, %.lr.ph210 ], [ %84, %..loopexit126_crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %86 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %86, label %.lr.ph210, label %.preheader

87:                                               ; preds = %78, %80, %70, %72
  %.pn111.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ], [ %81, %80 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %95

._crit_edge:                                      ; preds = %.split174
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %.critedge

.preheader:                                       ; preds = %..critedge118.loopexit_crit_edge, %48
  %.779.ph = phi ptr [ %32, %48 ], [ %.577, %..critedge118.loopexit_crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %88 = call noundef i32 @_ZNK17ParameterMappings12CaptureLayer3tagEv(ptr noundef nonnull align 8 dereferenceable(32) %.779.ph)
  switch i32 %88, label %.thread123 [
    i32 0, label %.split217.us
    i32 1, label %.split219.us
    i32 2, label %.split222.us
  ], !llvm.loop !11

.split217.us:                                     ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.4, i32 noundef 314, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEj) #10
  unreachable

.split219.us:                                     ; preds = %.preheader
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer7as_ValsEv(ptr noundef nonnull align 8 dereferenceable(32) %.779.ph)
  %90 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings11CapturedValESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #8
  br label %93

.split222.us:                                     ; preds = %.preheader
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer9as_NestedEv(ptr noundef nonnull align 8 dereferenceable(32) %.779.ph)
  %92 = call noundef i64 @_ZNKSt6vectorIN17ParameterMappings12CaptureLayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #8
  br label %93

93:                                               ; preds = %.split222.us, %.split219.us
  %.20.ph.in = phi i64 [ %90, %.split219.us ], [ %92, %.split222.us ]
  %.20.ph = trunc i64 %.20.ph.in to i32
  br label %.critedge

.thread123:                                       ; preds = %.preheader
  %94 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.14, ptr %94, align 16, !tbaa !9
  call void @__cxa_throw(ptr nonnull %94, ptr nonnull @_ZTIPKc, ptr null) #9
  unreachable

.critedge:                                        ; preds = %._crit_edge, %93, %34
  %.22 = phi i32 [ %.20.ph, %93 ], [ 1, %._crit_edge ], [ 1, %34 ]
  ret i32 %.22

95:                                               ; preds = %44, %46, %87
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %87 ], [ %47, %46 ], [ %45, %44 ]
  resume { ptr, i32 } %.pn111.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer7as_ValsEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK17ParameterMappings12CaptureLayer9as_NestedEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK17ParameterMappings18get_variable_countERK4SpanRKSt6vectorIjSaIjEEjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { noreturn 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { noreturn 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass