; LLVM IR from thepowersgang/mrustc :: src/mir/mir_builder.ll (ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj)

; 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.reversion_wrapper.562 = type { ptr }
%"class.std::reverse_iterator.563" = type { %"class.__gnu_cxx::__normal_iterator.409" }
%"class.__gnu_cxx::__normal_iterator.409" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%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.565 = type { ptr }
%class.anon.566 = type { ptr }
%class.MirBuilder = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i8, %"class.MIR::RValue", i8, [7 x i8], %class.VarState, %"class.std::vector.26", %"class.std::vector.26", i64, %"class.std::map", %"class.std::vector.42", %"class.std::vector.47", %class.ScopeHandle, %"class.std::vector.52", %"struct.MIR::LValue" }
%"class.MIR::RValue" = type { i32, %"union.MIR::RValue::DataUnion" }
%"union.MIR::RValue::DataUnion" = type { %"struct.MIR::RValue::Data_BinOp" }
%"struct.MIR::RValue::Data_BinOp" = type { %"class.MIR::Param", i32, %"class.MIR::Param" }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%class.VarState = type { i32, [4 x i8], %"union.VarState::DataUnion" }
%"union.VarState::DataUnion" = type { i32, [28 x i8] }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const 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.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<MirBuilder::ScopeDef, std::allocator<MirBuilder::ScopeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<MirBuilder::ScopeDef, std::allocator<MirBuilder::ScopeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<MirBuilder::ScopeDef, std::allocator<MirBuilder::ScopeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MirBuilder::ScopeDef, std::allocator<MirBuilder::ScopeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ScopeHandle = type <{ ptr, i32, [4 x i8] }>
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<std::pair<HIR::PatternBinding::Type, MIR::LValue>, std::allocator<std::pair<HIR::PatternBinding::Type, MIR::LValue>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<HIR::PatternBinding::Type, MIR::LValue>, std::allocator<std::pair<HIR::PatternBinding::Type, MIR::LValue>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<HIR::PatternBinding::Type, MIR::LValue>, std::allocator<std::pair<HIR::PatternBinding::Type, MIR::LValue>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<HIR::PatternBinding::Type, MIR::LValue>, std::allocator<std::pair<HIR::PatternBinding::Type, MIR::LValue>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MirBuilder::ScopeDef" = type { ptr, i8, %class.ScopeType }
%class.ScopeType = type { i32, %"union.ScopeType::DataUnion" }
%"union.ScopeType::DataUnion" = type { %"struct.ScopeType::Data_Loop" }
%"struct.ScopeType::Data_Loop" = type { %"class.std::map.252", %"class.std::map.252", i8, %struct.SplitEnd, i32, %"class.std::vector.47" }
%"class.std::map.252" = type { %"class.std::_Rb_tree.253" }
%"class.std::_Rb_tree.253" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, VarState>, std::_Select1st<std::pair<const unsigned int, VarState>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, VarState>, std::_Select1st<std::pair<const unsigned int, VarState>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%struct.SplitEnd = type { %"class.std::map.252", %"class.std::map.252" }
%"struct.ScopeType::Data_Owning" = type { i8, %"class.std::vector.47" }
%"struct.ScopeType::Data_Split" = type { i8, %struct.SplitEnd, %struct.SplitEnd, %"class.std::vector.257" }
%"class.std::vector.257" = type { %"struct.std::_Vector_base.258" }
%"struct.std::_Vector_base.258" = type { %"struct.std::_Vector_base<SplitArm, std::allocator<SplitArm>>::_Vector_impl" }
%"struct.std::_Vector_base<SplitArm, std::allocator<SplitArm>>::_Vector_impl" = type { %"struct.std::_Vector_base<SplitArm, std::allocator<SplitArm>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SplitArm, std::allocator<SplitArm>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.SplitArm = type { i8, i8, %"class.std::map.252", %"class.std::map.252" }
%"struct.std::pair.471" = type { i32, [4 x i8], %class.VarState }

@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__PRETTY_FUNCTION__._ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj = external hidden unnamed_addr constant [101 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.reversion_wrapper.562, align 8
  %14 = alloca %"class.std::reverse_iterator.563", align 8
  %15 = alloca %struct.reversion_wrapper.562, align 8
  %16 = alloca %"class.std::reverse_iterator.563", align 8
  %17 = alloca %struct.reversion_wrapper.562, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.409", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.409", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.409", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.409", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca %struct.Span, align 8
  %32 = alloca %"class.std::function", align 8
  %33 = alloca %class.anon.565, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca %struct.Span, align 8
  %37 = alloca %"class.std::function", align 8
  %38 = alloca %class.anon.566, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !11
  store i32 %4, ptr %11, align 4, !tbaa !9
  %39 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %40 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 17
  %41 = call ptr @_Z7reverseIRKSt6vectorIjSaIjEEE17reversion_wrapperIT_EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = getelementptr inbounds %struct.reversion_wrapper.562, ptr %13, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  store ptr %13, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %43, i64 8, i1 false), !tbaa.struct !13
  %44 = getelementptr inbounds %struct.reversion_wrapper.562, ptr %15, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  call void @_Z5beginIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.563") align 8 %14, ptr %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %46, i64 8, i1 false), !tbaa.struct !13
  %47 = getelementptr inbounds %struct.reversion_wrapper.562, ptr %17, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  call void @_Z3endIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.563") align 8 %16, ptr %48)
  br label %49

49:                                               ; preds = %144, %5
  %50 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEbRKSt16reverse_iteratorIT_ESC_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16)
  br i1 %50, label %52, label %51

51:                                               ; preds = %49
  store i32 2, ptr %18, align 4
  br label %146

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %54 = load i32, ptr %53, align 4, !tbaa !9
  store i32 %54, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %55 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 16
  %56 = load i32, ptr %19, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorIN10MirBuilder8ScopeDefESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57)
  store ptr %58, ptr %20, align 8, !tbaa !5
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.MirBuilder::ScopeDef", ptr %59, i32 0, i32 2
  %61 = call noundef i32 @_ZNK9ScopeType3tagEv(ptr noundef nonnull align 8 dereferenceable(240) %60)
  switch i32 %61, label %136 [
    i32 0, label %62
    i32 1, label %63
    i32 2, label %99
  ]

62:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 1890, ptr noundef @__PRETTY_FUNCTION__._ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj) #10
  unreachable

63:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.MirBuilder::ScopeDef", ptr %64, i32 0, i32 2
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9ScopeType9as_OwningEv(ptr noundef nonnull align 8 dereferenceable(240) %65)
  store ptr %66, ptr %21, align 8, !tbaa !5
  %67 = load ptr, ptr %21, align 8, !tbaa !5
  %68 = load i32, ptr %10, align 4, !tbaa !11
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %95

70:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %71 = load ptr, ptr %21, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.ScopeType::Data_Owning", ptr %71, i32 0, i32 1
  %73 = call ptr @_ZNKSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #9
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.409", ptr %23, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  %75 = load ptr, ptr %21, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.ScopeType::Data_Owning", ptr %75, i32 0, i32 1
  %77 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #9
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.409", ptr %24, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.409", ptr %23, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.409", ptr %24, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = call ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEjET_S8_S8_RKT0_(ptr %80, ptr %82, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.409", ptr %22, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.ScopeType::Data_Owning", ptr %85, i32 0, i32 1
  %87 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #9
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.409", ptr %25, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br i1 %89, label %90, label %91

90:                                               ; preds = %70
  store i32 4, ptr %18, align 4
  br label %92

91:                                               ; preds = %70
  store i32 0, ptr %18, align 4
  br label %92

92:                                               ; preds = %91, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  %93 = load i32, ptr %18, align 4
  switch i32 %93, label %96 [
    i32 0, label %94
  ]

94:                                               ; preds = %92
  br label %95

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

96:                                               ; preds = %95, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %97 = load i32, ptr %18, align 4
  switch i32 %97, label %218 [
    i32 0, label %98
    i32 4, label %137
  ]

98:                                               ; preds = %96
  br label %137

99:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.MirBuilder::ScopeDef", ptr %100, i32 0, i32 2
  %102 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK9ScopeType8as_SplitEv(ptr noundef nonnull align 8 dereferenceable(240) %101)
  store ptr %102, ptr %26, align 8, !tbaa !5
  %103 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %104 = load ptr, ptr %26, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.ScopeType::Data_Split", ptr %104, i32 0, i32 3
  %106 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorI8SplitArmSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #9
  store ptr %106, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %107 = load i32, ptr %10, align 4, !tbaa !11
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %112

109:                                              ; preds = %99
  %110 = load ptr, ptr %27, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.SplitArm, ptr %110, i32 0, i32 2
  br label %115

112:                                              ; preds = %99
  %113 = load ptr, ptr %27, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.SplitArm, ptr %113, i32 0, i32 3
  br label %115

115:                                              ; preds = %112, %109
  %116 = phi ptr [ %111, %109 ], [ %114, %112 ]
  store ptr %116, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = call ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %117, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %119 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %118, ptr %119, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %120 = load ptr, ptr %28, align 8, !tbaa !5
  %121 = call ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %120) #9
  %122 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %30, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  %123 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKj8VarStateEES6_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br i1 %123, label %124, label %132

124:                                              ; preds = %115
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = add i32 %125, -1
  store i32 %126, ptr %11, align 4, !tbaa !9
  %127 = icmp ne i32 %125, 0
  br i1 %127, label %131, label %128

128:                                              ; preds = %124
  %129 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKj8VarStateEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  %130 = getelementptr inbounds %"struct.std::pair.471", ptr %129, i32 0, i32 2
  store ptr %130, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %133

131:                                              ; preds = %124
  br label %132

132:                                              ; preds = %131, %115
  store i32 0, ptr %18, align 4
  br label %133

133:                                              ; preds = %132, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  %134 = load i32, ptr %18, align 4
  switch i32 %134, label %138 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %137

136:                                              ; preds = %52
  br label %137

137:                                              ; preds = %136, %135, %98, %96
  store i32 0, ptr %18, align 4
  br label %138

138:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  %139 = load i32, ptr %18, align 4
  switch i32 %139, label %141 [
    i32 0, label %140
  ]

140:                                              ; preds = %138
  store i32 0, ptr %18, align 4
  br label %141

141:                                              ; preds = %140, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  %142 = load i32, ptr %18, align 4
  switch i32 %142, label %146 [
    i32 0, label %143
  ]

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  br label %49

146:                                              ; preds = %141, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  %147 = load i32, ptr %18, align 4
  switch i32 %147, label %218 [
    i32 2, label %148
    i32 1, label %211
  ]

148:                                              ; preds = %146
  %149 = load i32, ptr %10, align 4, !tbaa !11
  switch i32 %149, label %209 [
    i32 0, label %150
    i32 1, label %182
  ]

150:                                              ; preds = %148
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = icmp eq i32 %151, -1
  br i1 %152, label %153, label %155

153:                                              ; preds = %150
  %154 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 11
  store ptr %154, ptr %6, align 8
  br label %211

155:                                              ; preds = %150
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 13
  %160 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #9
  %161 = icmp ult i64 %158, %160
  br i1 %161, label %176, label %162

162:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %163)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %164 = getelementptr inbounds %class.anon.565, ptr %33, i32 0, i32 0
  store ptr %9, ptr %164, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK10MirBuilder14get_slot_stateERK4SpanjNS4_8SlotTypeEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %32)
          to label %165 unwind label %168

165:                                              ; preds = %162
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  %166 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %166, ptr noundef @.str.9)
          to label %167 unwind label %172

167:                                              ; preds = %165
  call void @__cxa_throw(ptr %166, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #11
  unreachable

168:                                              ; preds = %162
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %34, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %35, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %213

172:                                              ; preds = %165
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %34, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %35, align 4
  call void @__cxa_free_exception(ptr %166) #9
  br label %213

176:                                              ; preds = %156
  br label %177

177:                                              ; preds = %176
  %178 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 13
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180)
  store ptr %181, ptr %6, align 8
  br label %211

182:                                              ; preds = %148
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 12
  %187 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #9
  %188 = icmp ult i64 %185, %187
  br i1 %188, label %203, label %189

189:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %190)
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %191 = getelementptr inbounds %class.anon.566, ptr %38, i32 0, i32 0
  store ptr %9, ptr %191, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK10MirBuilder14get_slot_stateERK4SpanjNS4_8SlotTypeEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef %37)
          to label %192 unwind label %195

192:                                              ; preds = %189
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  %193 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %193, ptr noundef @.str.9)
          to label %194 unwind label %199

194:                                              ; preds = %192
  call void @__cxa_throw(ptr %193, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #11
  unreachable

195:                                              ; preds = %189
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %34, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %35, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %213

199:                                              ; preds = %192
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %34, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %35, align 4
  call void @__cxa_free_exception(ptr %193) #9
  br label %213

203:                                              ; preds = %183
  br label %204

204:                                              ; preds = %203
  %205 = getelementptr inbounds %class.MirBuilder, ptr %39, i32 0, i32 12
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %207)
  store ptr %208, ptr %6, align 8
  br label %211

209:                                              ; preds = %148
  %210 = call ptr @__cxa_allocate_exception(i64 8) #9
  store ptr @.str.76, ptr %210, align 16, !tbaa !5
  call void @__cxa_throw(ptr %210, ptr @_ZTIPKc, ptr null) #11
  unreachable

211:                                              ; preds = %204, %177, %153, %146
  %212 = load ptr, ptr %6, align 8
  ret ptr %212

213:                                              ; preds = %199, %195, %172, %168
  %214 = load ptr, ptr %34, align 8
  %215 = load i32, ptr %35, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217

218:                                              ; preds = %146, %96
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5beginIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.563") align 8, ptr) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3endIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.563") align 8, ptr) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEbRKSt16reverse_iteratorIT_ESC_(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 @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEjET_S8_S8_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

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

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

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

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

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

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

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

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


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

%"class.std::reverse_iterator.563" = type { %"class.__gnu_cxx::__normal_iterator.409" }
%"class.__gnu_cxx::__normal_iterator.409" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%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.565 = type { ptr }
%class.anon.566 = type { ptr }

@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__PRETTY_FUNCTION__._ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj = external hidden unnamed_addr constant [101 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9ScopeType3tagEv(ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #1 align 2

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::reverse_iterator.563", align 8
  %8 = alloca %"class.std::reverse_iterator.563", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.409", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.409", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %struct.Span, align 8
  %14 = alloca %"class.std::function", align 8
  %15 = alloca %class.anon.565, align 8
  %16 = alloca %struct.Span, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.566, align 8
  store i32 %2, ptr %6, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 344
  %20 = tail call ptr @_Z7reverseIRKSt6vectorIjSaIjEEE17reversion_wrapperIT_EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @_Z5beginIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.563") align 8 %7, ptr %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @_Z3endIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.563") align 8 %8, ptr %20)
  %21 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEbRKSt16reverse_iteratorIT_ESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %22 = getelementptr inbounds i8, ptr %0, i64 320
  %23 = icmp eq i32 %3, 0
  %.v = select i1 %23, i64 8, i64 56
  br i1 %23, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.thread.us
  %.03864.us = phi i32 [ %.44252.us, %.thread.us ], [ %4, %.lr.ph ]
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorIN10MirBuilder8ScopeDefESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %26)
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = call noundef i32 @_ZNK9ScopeType3tagEv(ptr noundef nonnull align 8 dereferenceable(240) %28)
  switch i32 %29, label %.thread.us [
    i32 0, label %.split.us
    i32 1, label %40
    i32 2, label %30
  ]

30:                                               ; preds = %.lr.ph.split.us
  %31 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK9ScopeType8as_SplitEv(ptr noundef nonnull align 8 dereferenceable(240) %28)
  %32 = getelementptr inbounds i8, ptr %31, i64 200
  %33 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorI8SplitArmSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %34 = getelementptr inbounds i8, ptr %33, i64 %.v
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %35 = call ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store ptr %35, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %36 = call ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %34) #8
  store ptr %36, ptr %12, align 8
  %37 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKj8VarStateEES6_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %37, label %38, label %.thread55.us

38:                                               ; preds = %30
  %39 = add i32 %.03864.us, -1
  %.not.us = icmp eq i32 %.03864.us, 0
  br i1 %.not.us, label %.split66.us, label %.thread55.us

.thread55.us:                                     ; preds = %38, %30
  %.240.ph.us = phi i32 [ %.03864.us, %30 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %.thread.us

40:                                               ; preds = %.lr.ph.split.us
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9ScopeType9as_OwningEv(ptr noundef nonnull align 8 dereferenceable(240) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = call ptr @_ZNKSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #8
  %44 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #8
  %45 = call ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEjET_S8_S8_RKT0_(ptr %43, ptr %44, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store ptr %45, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %46 = call ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #8
  store ptr %46, ptr %10, align 8
  %47 = 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
  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 %.thread.us

.thread.us:                                       ; preds = %40, %.thread55.us, %.lr.ph.split.us
  %.44252.us = phi i32 [ %.240.ph.us, %.thread55.us ], [ %.03864.us, %40 ], [ %.03864.us, %.lr.ph.split.us ]
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %49 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEbRKSt16reverse_iteratorIT_ESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %49, label %.lr.ph.split.us, label %._crit_edge

.lr.ph.split:                                     ; preds = %.lr.ph, %.thread
  %.03864 = phi i32 [ %.44252, %.thread ], [ %4, %.lr.ph ]
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNKSt6vectorIN10MirBuilder8ScopeDefESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %52)
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %55 = call noundef i32 @_ZNK9ScopeType3tagEv(ptr noundef nonnull align 8 dereferenceable(240) %54)
  switch i32 %55, label %.thread [
    i32 0, label %.split.us
    i32 1, label %56
    i32 2, label %58
  ]

.split.us:                                        ; preds = %.lr.ph.split, %.lr.ph.split.us
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 1890, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10MirBuilder14get_slot_stateERK4SpanjNS_8SlotTypeEj) #9
  unreachable

56:                                               ; preds = %.lr.ph.split
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9ScopeType9as_OwningEv(ptr noundef nonnull align 8 dereferenceable(240) %54)
  br label %.thread

58:                                               ; preds = %.lr.ph.split
  %59 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK9ScopeType8as_SplitEv(ptr noundef nonnull align 8 dereferenceable(240) %54)
  %60 = getelementptr inbounds i8, ptr %59, i64 200
  %61 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorI8SplitArmSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %62 = getelementptr inbounds i8, ptr %61, i64 %.v
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %63 = call ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %62, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store ptr %63, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %64 = call ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %62) #8
  store ptr %64, ptr %12, align 8
  %65 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKj8VarStateEES6_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %65, label %66, label %.thread55

66:                                               ; preds = %58
  %67 = add i32 %.03864, -1
  %.not = icmp eq i32 %.03864, 0
  br i1 %.not, label %.split66.us, label %.thread55

.thread55:                                        ; preds = %66, %58
  %.240.ph = phi i32 [ %.03864, %58 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %.thread

.thread:                                          ; preds = %56, %.lr.ph.split, %.thread55
  %.44252 = phi i32 [ %.240.ph, %.thread55 ], [ %.03864, %56 ], [ %.03864, %.lr.ph.split ]
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %69 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEEbRKSt16reverse_iteratorIT_ESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %69, label %.lr.ph.split, label %._crit_edge

.split66.us:                                      ; preds = %66, %38
  %70 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKj8VarStateEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %114

._crit_edge:                                      ; preds = %.thread, %.thread.us, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  switch i32 %3, label %112 [
    i32 0, label %72
    i32 1, label %94
  ]

72:                                               ; preds = %._crit_edge
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = icmp eq i32 %73, -1
  br i1 %74, label %75, label %77

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %0, i64 176
  br label %114

77:                                               ; preds = %72
  %78 = zext i32 %73 to i64
  %79 = getelementptr inbounds i8, ptr %0, i64 240
  %80 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #8
  %81 = icmp ugt i64 %80, %78
  br i1 %81, label %90, label %82

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  store ptr %6, ptr %15, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK10MirBuilder14get_slot_stateERK4SpanjNS4_8SlotTypeEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %14)
          to label %83 unwind label %86

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

85:                                               ; preds = %83
  call void @__cxa_throw(ptr nonnull %84, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
  unreachable

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

88:                                               ; preds = %83
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %84) #8
  br label %115

90:                                               ; preds = %77
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %92)
  br label %114

94:                                               ; preds = %._crit_edge
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %0, i64 216
  %98 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #8
  %99 = icmp ugt i64 %98, %96
  br i1 %99, label %108, label %100

100:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  store ptr %6, ptr %18, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK10MirBuilder14get_slot_stateERK4SpanjNS4_8SlotTypeEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %17)
          to label %101 unwind label %104

101:                                              ; preds = %100
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  %102 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef nonnull @.str.9)
          to label %103 unwind label %106

103:                                              ; preds = %101
  call void @__cxa_throw(ptr nonnull %102, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
  unreachable

104:                                              ; preds = %100
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %115

106:                                              ; preds = %101
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %102) #8
  br label %115

108:                                              ; preds = %94
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %110)
  br label %114

112:                                              ; preds = %._crit_edge
  %113 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.76, ptr %113, align 16, !tbaa !9
  call void @__cxa_throw(ptr nonnull %113, ptr nonnull @_ZTIPKc, ptr null) #10
  unreachable

114:                                              ; preds = %.split66.us, %108, %90, %75
  %.5 = phi ptr [ %71, %.split66.us ], [ %111, %108 ], [ %76, %75 ], [ %93, %90 ]
  ret ptr %.5

115:                                              ; preds = %106, %104, %88, %86
  %.pn = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ], [ %89, %88 ], [ %87, %86 ]
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5beginIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.563") align 8, ptr) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3endIRKSt6vectorIjSaIjEEEDa17reversion_wrapperIT_E(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.563") align 8, ptr) local_unnamed_addr #1

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEEjET_S8_S8_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 8 dereferenceable(224) ptr @_ZNK9ScopeType8as_SplitEv(ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIj8VarStateSt4lessIjESaISt4pairIKjS0_EEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

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


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