; LLVM IR from thepowersgang/mrustc :: src/mir (from_hir_match)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.MIR::Terminator" = type { i32, %"union.MIR::Terminator::DataUnion" }
%"union.MIR::Terminator::DataUnion" = type { %"struct.MIR::Terminator::Data_Call" }
%"struct.MIR::Terminator::Data_Call" = type { i32, i32, %"struct.MIR::LValue", %"class.MIR::CallTarget", %"class.std::vector.18" }
%"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 }
%"class.MIR::CallTarget" = type { i32, %"union.MIR::CallTarget::DataUnion" }
%"union.MIR::CallTarget::DataUnion" = type { %"class.HIR::Path" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.115" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.23, %class.ThinVector.24, %class.ThinVector.25 }
%class.ThinVector.23 = type { ptr }
%class.ThinVector.24 = type { ptr }
%class.ThinVector.25 = type { ptr }
%"class.std::unique_ptr.115" = type { %"struct.std::__uniq_ptr_data.116" }
%"struct.std::__uniq_ptr_data.116" = type { %"class.std::__uniq_ptr_impl.117" }
%"class.std::__uniq_ptr_impl.117" = type { %"class.std::tuple.118" }
%"class.std::tuple.118" = type { %"struct.std::_Tuple_impl.119" }
%"struct.std::_Tuple_impl.119" = type { %"struct.std::_Head_base.122" }
%"struct.std::_Head_base.122" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"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.__gnu_cxx::__normal_iterator.197" = type { ptr }
%"struct.MIR::Terminator::Data_Diverge" = type { i8 }
%struct.PatternRuleset = type { i32, i32, %"class.std::vector.136", %"class.std::vector.141" }
%"class.std::vector.136" = type { %"struct.std::_Vector_base.137" }
%"struct.std::_Vector_base.137" = type { %"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.141" = type { %"struct.std::_Vector_base.142" }
%"struct.std::_Vector_base.142" = type { %"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::ExprNode_Match" = type { %"class.HIR::ExprNode.base", %"class.std::unique_ptr.173", %"class.std::vector.181" }
%"class.HIR::ExprNode.base" = type <{ ptr, %struct.Span, %"class.HIR::TypeRef", i32 }>
%struct.Span = type { ptr }
%"class.std::unique_ptr.173" = type { %"struct.std::__uniq_ptr_data.174" }
%"struct.std::__uniq_ptr_data.174" = type { %"class.std::__uniq_ptr_impl.175" }
%"class.std::__uniq_ptr_impl.175" = type { %"class.std::tuple.176" }
%"class.std::tuple.176" = type { %"struct.std::_Tuple_impl.177" }
%"struct.std::_Tuple_impl.177" = type { %"struct.std::_Head_base.180" }
%"struct.std::_Head_base.180" = type { ptr }
%"class.std::vector.181" = type { %"struct.std::_Vector_base.182" }
%"struct.std::_Vector_base.182" = type { %"struct.std::_Vector_base<HIR::ExprNode_Match::Arm, std::allocator<HIR::ExprNode_Match::Arm>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ExprNode_Match::Arm, std::allocator<HIR::ExprNode_Match::Arm>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ExprNode_Match::Arm, std::allocator<HIR::ExprNode_Match::Arm>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ExprNode_Match::Arm, std::allocator<HIR::ExprNode_Match::Arm>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ArmCode = type { i8, %"class.std::vector.166" }
%"class.std::vector.166" = type { %"struct.std::_Vector_base.167" }
%"struct.std::_Vector_base.167" = type { %"struct.std::_Vector_base<ArmCode::Pattern, std::allocator<ArmCode::Pattern>>::_Vector_impl" }
%"struct.std::_Vector_base<ArmCode::Pattern, std::allocator<ArmCode::Pattern>>::_Vector_impl" = type { %"struct.std::_Vector_base<ArmCode::Pattern, std::allocator<ArmCode::Pattern>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ArmCode::Pattern, std::allocator<ArmCode::Pattern>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::ExprNode_Match::Arm" = type { %"class.std::vector.110", %"class.std::vector.188", %"class.std::unique_ptr.173" }
%"class.std::vector.110" = type { %"struct.std::_Vector_base.111" }
%"struct.std::_Vector_base.111" = type { %"struct.std::_Vector_base<HIR::Pattern, std::allocator<HIR::Pattern>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::Pattern, std::allocator<HIR::Pattern>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::Pattern, std::allocator<HIR::Pattern>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::Pattern, std::allocator<HIR::Pattern>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.188" = type { %"struct.std::_Vector_base.189" }
%"struct.std::_Vector_base.189" = type { %"struct.std::_Vector_base<HIR::ExprNode_Match::Guard, std::allocator<HIR::ExprNode_Match::Guard>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ExprNode_Match::Guard, std::allocator<HIR::ExprNode_Match::Guard>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ExprNode_Match::Guard, std::allocator<HIR::ExprNode_Match::Guard>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ExprNode_Match::Guard, std::allocator<HIR::ExprNode_Match::Guard>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::ExprNode" = type <{ ptr, %struct.Span, %"class.HIR::TypeRef", i32, [4 x i8] }>
%"struct.ArmCode::Pattern" = type { i32, i32 }

@g_debug_indent_level = external global i32, align 4
@__func__._Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj = external hidden unnamed_addr constant [26 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

declare void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #1

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) #0

declare noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440)) #1

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

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

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

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

declare void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440), i32 noundef) #1

declare void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind noalias writable sret(%"class.MIR::Terminator") align 8, i32 noundef) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %class.TraceLog, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.MIR::Terminator", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.MIR::Terminator", align 8
  %29 = alloca %"class.MIR::Terminator", align 8
  %30 = alloca %"class.MIR::Terminator", align 8
  %31 = alloca %"struct.MIR::Terminator::Data_Diverge", align 1
  %32 = alloca %"class.MIR::Terminator", align 8
  %33 = alloca %"struct.MIR::Terminator::Data_Diverge", align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #7
  %34 = call noundef zeroext i1 @_Z13debug_enabledv()
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, ptr @__func__._Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj, ptr null
  call void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %36)
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load i32, ptr %14, align 4, !tbaa !9
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %37, i32 noundef %38)
          to label %39 unwind label %61

39:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %40)
          to label %42 unwind label %65

42:                                               ; preds = %39
  store i32 %41, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %43 = call noundef zeroext i1 @_ZNKSt6vectorI14PatternRulesetSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br i1 %43, label %48, label %44

44:                                               ; preds = %42
  %45 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %46 = getelementptr inbounds %struct.PatternRuleset, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !11
  br label %49

48:                                               ; preds = %42
  br label %49

49:                                               ; preds = %48, %44
  %50 = phi i32 [ %47, %44 ], [ 0, %48 ]
  %51 = zext i32 %50 to i64
  store i64 %51, ptr %19, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store ptr %4, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  %53 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.197", ptr %21, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  %56 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.197", ptr %22, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  br label %58

58:                                               ; preds = %235, %49
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %59, label %69, label %60

60:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %239

61:                                               ; preds = %7
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %16, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %17, align 4
  br label %263

65:                                               ; preds = %39
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %16, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %17, align 4
  br label %262

69:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %70 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  store ptr %70, ptr %23, align 8, !tbaa !5
  %71 = load ptr, ptr %23, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.PatternRuleset, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = load i64, ptr %19, align 8, !tbaa !21
  %76 = icmp ne i64 %74, %75
  br i1 %76, label %77, label %128

77:                                               ; preds = %69
  br label %78

78:                                               ; preds = %77
  %79 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %80 unwind label %103

80:                                               ; preds = %78
  br i1 %79, label %81, label %107

81:                                               ; preds = %80
  %82 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %82, ptr noundef @__func__._Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj)
          to label %84 unwind label %103

84:                                               ; preds = %81
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef @.str.72)
          to label %86 unwind label %103

86:                                               ; preds = %84
  %87 = load i64, ptr %19, align 8, !tbaa !21
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %85, i64 noundef %87)
          to label %89 unwind label %103

89:                                               ; preds = %86
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.73)
          to label %91 unwind label %103

91:                                               ; preds = %89
  %92 = load ptr, ptr %23, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.PatternRuleset, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !11
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %90, i32 noundef %94)
          to label %96 unwind label %103

96:                                               ; preds = %91
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @.str.74)
          to label %98 unwind label %103

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @_ZSt3decRSt8ios_base)
          to label %100 unwind label %103

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %102 unwind label %103

102:                                              ; preds = %100
  br label %107

103:                                              ; preds = %120, %117, %109, %100, %98, %96, %91, %89, %86, %84, %81, %78
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %16, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %17, align 4
  br label %238

107:                                              ; preds = %102, %80
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.PatternRuleset, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !11
  %113 = zext i32 %112 to i64
  store i64 %113, ptr %19, align 8, !tbaa !21
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %24, i32 noundef %115)
          to label %116 unwind label %103

116:                                              ; preds = %109
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %114, ptr noundef %24)
          to label %117 unwind label %124

117:                                              ; preds = %116
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %24) #7
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %118, i32 noundef %119)
          to label %120 unwind label %103

120:                                              ; preds = %117
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %121)
          to label %123 unwind label %103

123:                                              ; preds = %120
  store i32 %122, ptr %18, align 4, !tbaa !9
  br label %128

124:                                              ; preds = %116
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %16, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %17, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %24) #7
  br label %238

128:                                              ; preds = %123, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.HIR::ExprNode_Match", ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %23, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.PatternRuleset, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 8, !tbaa !11
  %134 = zext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN3HIR14ExprNode_Match3ArmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %134) #7
  store ptr %135, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %136 = load ptr, ptr %23, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.PatternRuleset, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !11
  %139 = zext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI7ArmCodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %139) #7
  %141 = getelementptr inbounds %struct.ArmCode, ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %23, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.PatternRuleset, ptr %142, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !23
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7ArmCode7PatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %145) #7
  store ptr %146, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %147)
          to label %149 unwind label %175

149:                                              ; preds = %128
  store i32 %148, ptr %27, align 4, !tbaa !9
  %150 = load ptr, ptr %23, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.PatternRuleset, ptr %150, i32 0, i32 2
  %152 = call noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #7
  %153 = icmp ugt i64 %152, 0
  br i1 %153, label %154, label %179

154:                                              ; preds = %149
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load ptr, ptr %25, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.HIR::ExprNode_Match::Arm", ptr %156, i32 0, i32 2
  %158 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %157) #7
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(28) %158)
          to label %160 unwind label %175

160:                                              ; preds = %154
  %161 = load ptr, ptr %23, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.PatternRuleset, ptr %161, i32 0, i32 2
  %163 = call noundef ptr @_ZNKSt6vectorI11PatternRuleSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #7
  %164 = load ptr, ptr %23, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.PatternRuleset, ptr %164, i32 0, i32 2
  %166 = call noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #7
  %167 = trunc i64 %166 to i32
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.HIR::ExprNode_Match", ptr %168, i32 0, i32 1
  %170 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %169) #7
  %171 = getelementptr inbounds %"class.HIR::ExprNode", ptr %170, i32 0, i32 2
  %172 = load i32, ptr %27, align 4, !tbaa !9
  %173 = invoke noundef i32 @_Z42MIR_LowerHIR_Match_Simple__GeneratePatternR10MirBuilderRK4SpanPK11PatternRulejRKN3HIR7TypeRefERKN3MIR6LValueEjj(ptr noundef nonnull align 8 dereferenceable(440) %155, ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef %163, i32 noundef %167, ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0, i32 noundef %172)
          to label %174 unwind label %175

174:                                              ; preds = %160
  br label %179

175:                                              ; preds = %231, %218, %213, %179, %160, %154, %128
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %16, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %17, align 4
  br label %237

179:                                              ; preds = %174, %149
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load ptr, ptr %26, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.ArmCode::Pattern", ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !24
  invoke void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %28, i32 noundef %183)
          to label %184 unwind label %175

184:                                              ; preds = %179
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %180, ptr noundef %28)
          to label %185 unwind label %223

185:                                              ; preds = %184
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %28) #7
  %186 = load ptr, ptr %23, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.PatternRuleset, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 8, !tbaa !11
  %189 = zext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI7ArmCodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %189) #7
  %191 = getelementptr inbounds %struct.ArmCode, ptr %190, i32 0, i32 0
  %192 = load i8, ptr %191, align 8, !tbaa !26, !range !33, !noundef !34
  %193 = trunc i8 %192 to i1
  br i1 %193, label %194, label %231

194:                                              ; preds = %185
  %195 = load ptr, ptr %23, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.PatternRuleset, ptr %195, i32 0, i32 1
  %197 = load i32, ptr %196, align 4, !tbaa !23
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %213, label %199

199:                                              ; preds = %194
  %200 = load ptr, ptr %26, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.ArmCode::Pattern", ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !35
  %203 = load ptr, ptr %23, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.PatternRuleset, ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 8, !tbaa !11
  %206 = zext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI7ArmCodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %206) #7
  %208 = getelementptr inbounds %struct.ArmCode, ptr %207, i32 0, i32 1
  %209 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7ArmCode7PatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef 0) #7
  %210 = getelementptr inbounds %"struct.ArmCode::Pattern", ptr %209, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !35
  %212 = icmp ne i32 %202, %211
  br i1 %212, label %213, label %231

213:                                              ; preds = %199, %194
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %26, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.ArmCode::Pattern", ptr %215, i32 0, i32 1
  %217 = load i32, ptr %216, align 4, !tbaa !35
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %214, i32 noundef %217)
          to label %218 unwind label %175

218:                                              ; preds = %213
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %29, i32 noundef %220)
          to label %221 unwind label %175

221:                                              ; preds = %218
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %219, ptr noundef %29)
          to label %222 unwind label %227

222:                                              ; preds = %221
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %29) #7
  br label %231

223:                                              ; preds = %184
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %16, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %17, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %28) #7
  br label %237

227:                                              ; preds = %221
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %16, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %17, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %29) #7
  br label %237

231:                                              ; preds = %222, %199, %185
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = load i32, ptr %27, align 4, !tbaa !9
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %232, i32 noundef %233)
          to label %234 unwind label %175

234:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %235

235:                                              ; preds = %234
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %58

237:                                              ; preds = %227, %223, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %238

238:                                              ; preds = %237, %124, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %261

239:                                              ; preds = %60
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %30)
          to label %241 unwind label %249

241:                                              ; preds = %239
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %240, ptr noundef %30)
          to label %242 unwind label %253

242:                                              ; preds = %241
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %30) #7
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %243, i32 noundef %244)
          to label %245 unwind label %249

245:                                              ; preds = %242
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %32)
          to label %247 unwind label %249

247:                                              ; preds = %245
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %246, ptr noundef %32)
          to label %248 unwind label %257

248:                                              ; preds = %247
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  ret void

249:                                              ; preds = %245, %242, %239
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %16, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %17, align 4
  br label %261

253:                                              ; preds = %241
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %16, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %17, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %30) #7
  br label %261

257:                                              ; preds = %247
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %16, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %17, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %32) #7
  br label %261

261:                                              ; preds = %257, %253, %249, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %262

262:                                              ; preds = %261, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %263

263:                                              ; preds = %262, %61
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %16, align 8
  %266 = load i32, ptr %17, align 4
  %267 = insertvalue { ptr, i32 } poison, ptr %265, 0
  %268 = insertvalue { ptr, i32 } %267, i32 %266, 1
  resume { ptr, i32 } %268
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z42MIR_LowerHIR_Match_Simple__GeneratePatternR10MirBuilderRK4SpanPK11PatternRulejRKN3HIR7TypeRefERKN3MIR6LValueEjj(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Terminator") align 8) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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 = { 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 = { 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 #7 = { 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, !10, i64 0}
!12 = !{!"_ZTS14PatternRuleset", !10, i64 0, !10, i64 4, !13, i64 8, !17, i64 32}
!13 = !{!"_ZTSSt6vectorI11PatternRuleSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI11PatternRuleSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorI14PatternBindingSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI14PatternBindingSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!12, !10, i64 4}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTSN7ArmCode7PatternE", !10, i64 0, !10, i64 4}
!26 = !{!27, !28, i64 0}
!27 = !{!"_ZTS7ArmCode", !28, i64 0, !29, i64 8}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSSt6vectorIN7ArmCode7PatternESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN7ArmCode7PatternESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7ArmCode7PatternESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7ArmCode7PatternESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!25, !10, i64 4}


; 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.MIR::Terminator" = type { i32, %"union.MIR::Terminator::DataUnion" }
%"union.MIR::Terminator::DataUnion" = type { %"struct.MIR::Terminator::Data_Call" }
%"struct.MIR::Terminator::Data_Call" = type { i32, i32, %"struct.MIR::LValue", %"class.MIR::CallTarget", %"class.std::vector.18" }
%"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 }
%"class.MIR::CallTarget" = type { i32, %"union.MIR::CallTarget::DataUnion" }
%"union.MIR::CallTarget::DataUnion" = type { %"class.HIR::Path" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.115" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.23, %class.ThinVector.24, %class.ThinVector.25 }
%class.ThinVector.23 = type { ptr }
%class.ThinVector.24 = type { ptr }
%class.ThinVector.25 = type { ptr }
%"class.std::unique_ptr.115" = type { %"struct.std::__uniq_ptr_data.116" }
%"struct.std::__uniq_ptr_data.116" = type { %"class.std::__uniq_ptr_impl.117" }
%"class.std::__uniq_ptr_impl.117" = type { %"class.std::tuple.118" }
%"class.std::tuple.118" = type { %"struct.std::_Tuple_impl.119" }
%"struct.std::_Tuple_impl.119" = type { %"struct.std::_Head_base.122" }
%"struct.std::_Head_base.122" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"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.__gnu_cxx::__normal_iterator.197" = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__func__._Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj = external hidden unnamed_addr constant [26 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

declare void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #1

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) #0

declare noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440)) local_unnamed_addr #1

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

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

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

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

declare void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440), i32 noundef) local_unnamed_addr #1

declare void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind noalias writable sret(%"class.MIR::Terminator") align 8, i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(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_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) 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_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.TraceLog, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %11 = alloca %"class.MIR::Terminator", align 8
  %12 = alloca %"class.MIR::Terminator", align 8
  %13 = alloca %"class.MIR::Terminator", align 8
  %14 = alloca %"class.MIR::Terminator", align 8
  %15 = alloca %"class.MIR::Terminator", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  %16 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %17 = select i1 %16, ptr @__func__._Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj, ptr null
  call void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef %17)
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %6)
          to label %18 unwind label %33

18:                                               ; preds = %7
  %19 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %0)
          to label %20 unwind label %35

20:                                               ; preds = %18
  %21 = call noundef zeroext i1 @_ZNKSt6vectorI14PatternRulesetSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br i1 %21, label %26, label %22

22:                                               ; preds = %20
  %23 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %24 = load i32, ptr %23, align 8, !tbaa !5
  %25 = zext i32 %24 to i64
  br label %26

26:                                               ; preds = %20, %22
  %27 = phi i64 [ %25, %22 ], [ 0, %20 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %28 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %28, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %29 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %29, ptr %10, align 8
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %26
  %31 = getelementptr inbounds i8, ptr %2, i64 40
  %32 = getelementptr inbounds i8, ptr %2, i64 32
  br label %37

._crit_edge:                                      ; preds = %132, %26
  %.049.lcssa = phi i32 [ %19, %26 ], [ %.150, %132 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  invoke void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %14)
          to label %136 unwind label %141

33:                                               ; preds = %7
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %147

35:                                               ; preds = %18
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %147

37:                                               ; preds = %.lr.ph, %132
  %.04966 = phi i32 [ %19, %.lr.ph ], [ %.150, %132 ]
  %.05165 = phi i64 [ %27, %.lr.ph ], [ %.152, %132 ]
  %38 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %39 = load i32, ptr %38, align 8, !tbaa !5
  %40 = zext i32 %39 to i64
  %.not = icmp eq i64 %.05165, %40
  br i1 %.not, label %73, label %41

41:                                               ; preds = %37
  %42 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %43 unwind label %62

43:                                               ; preds = %41
  br i1 %42, label %44, label %64

44:                                               ; preds = %43
  %45 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !19
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %45, ptr noundef nonnull @__func__._Z25MIR_LowerHIR_Match_SimpleR10MirBuilderR12MirConverterRN3HIR14ExprNode_MatchEN3MIR6LValueESt6vectorI14PatternRulesetSaIS9_EES8_I7ArmCodeSaISC_EEj)
          to label %47 unwind label %62

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.72)
          to label %49 unwind label %62

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %48, i64 noundef %.05165)
          to label %51 unwind label %62

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.73)
          to label %53 unwind label %62

53:                                               ; preds = %51
  %54 = load i32, ptr %38, align 8, !tbaa !5
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef %54)
          to label %56 unwind label %62

56:                                               ; preds = %53
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.74)
          to label %58 unwind label %62

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %60 unwind label %62

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %64 unwind label %62

62:                                               ; preds = %69, %68, %64, %60, %58, %56, %53, %51, %49, %47, %44, %41
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %135

64:                                               ; preds = %60, %43
  %65 = load i32, ptr %38, align 8, !tbaa !5
  %66 = zext i32 %65 to i64
  invoke void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %11, i32 noundef %.04966)
          to label %67 unwind label %62

67:                                               ; preds = %64
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull %11)
          to label %68 unwind label %71

68:                                               ; preds = %67
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %11) #7
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %.04966)
          to label %69 unwind label %62

69:                                               ; preds = %68
  %70 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %0)
          to label %._crit_edge70 unwind label %62

._crit_edge70:                                    ; preds = %69
  %.pre = load i32, ptr %38, align 8, !tbaa !5
  %.pre71 = zext i32 %.pre to i64
  br label %73

71:                                               ; preds = %67
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %11) #7
  br label %135

73:                                               ; preds = %._crit_edge70, %37
  %.pre-phi = phi i64 [ %.pre71, %._crit_edge70 ], [ %40, %37 ]
  %.152 = phi i64 [ %66, %._crit_edge70 ], [ %.05165, %37 ]
  %.150 = phi i32 [ %70, %._crit_edge70 ], [ %.04966, %37 ]
  %74 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN3HIR14ExprNode_Match3ArmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.pre-phi) #7
  %75 = load i32, ptr %38, align 8, !tbaa !5
  %76 = zext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI7ArmCodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %76) #7
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = getelementptr inbounds i8, ptr %38, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !20
  %81 = zext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7ArmCode7PatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %81) #7
  %83 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %0)
          to label %84 unwind label %97

84:                                               ; preds = %73
  %85 = getelementptr inbounds i8, ptr %38, i64 8
  %86 = call noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %.not53 = icmp eq i64 %86, 0
  br i1 %.not53, label %99, label %87

87:                                               ; preds = %84
  %88 = getelementptr inbounds i8, ptr %74, i64 48
  %89 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %88) #7
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(28) %89)
  %91 = call noundef ptr @_ZNKSt6vectorI11PatternRuleSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %92 = call noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %93 = trunc i64 %92 to i32
  %94 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %96 = invoke noundef i32 @_Z42MIR_LowerHIR_Match_Simple__GeneratePatternR10MirBuilderRK4SpanPK11PatternRulejRKN3HIR7TypeRefERKN3MIR6LValueEjj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef %91, i32 noundef %93, ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0, i32 noundef %83)
          to label %99 unwind label %97

97:                                               ; preds = %131, %124, %121, %99, %87, %73
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %135

99:                                               ; preds = %87, %84
  %100 = load i32, ptr %82, align 4, !tbaa !21
  invoke void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %12, i32 noundef %100)
          to label %101 unwind label %97

101:                                              ; preds = %99
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull %12)
          to label %102 unwind label %127

102:                                              ; preds = %101
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %12) #7
  %103 = load i32, ptr %38, align 8, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI7ArmCodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %104) #7
  %106 = load i8, ptr %105, align 8, !tbaa !23, !range !30, !noundef !31
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %108, label %131

108:                                              ; preds = %102
  %109 = load i32, ptr %79, align 4, !tbaa !20
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %121, label %111

111:                                              ; preds = %108
  %112 = getelementptr inbounds i8, ptr %82, i64 4
  %113 = load i32, ptr %112, align 4, !tbaa !32
  %114 = load i32, ptr %38, align 8, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI7ArmCodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %115) #7
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7ArmCode7PatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef 0) #7
  %119 = getelementptr inbounds i8, ptr %118, i64 4
  %120 = load i32, ptr %119, align 4, !tbaa !32
  %.not54 = icmp eq i32 %113, %120
  br i1 %.not54, label %131, label %121

121:                                              ; preds = %111, %108
  %122 = getelementptr inbounds i8, ptr %82, i64 4
  %123 = load i32, ptr %122, align 4, !tbaa !32
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %123)
          to label %124 unwind label %97

124:                                              ; preds = %121
  invoke void @_ZN3MIR10Terminator9make_GotoEj(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %13, i32 noundef %.150)
          to label %125 unwind label %97

125:                                              ; preds = %124
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull %13)
          to label %126 unwind label %129

126:                                              ; preds = %125
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %13) #7
  br label %131

127:                                              ; preds = %101
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %12) #7
  br label %135

129:                                              ; preds = %125
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %13) #7
  br label %135

131:                                              ; preds = %126, %111, %102
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %83)
          to label %132 unwind label %97

132:                                              ; preds = %131
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %134 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %134, label %37, label %._crit_edge

135:                                              ; preds = %97, %127, %129, %71, %62
  %.pn.pn = phi { ptr, i32 } [ %63, %62 ], [ %72, %71 ], [ %98, %97 ], [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %147

136:                                              ; preds = %._crit_edge
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull %14)
          to label %137 unwind label %143

137:                                              ; preds = %136
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %14) #7
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %.049.lcssa)
          to label %138 unwind label %141

138:                                              ; preds = %137
  invoke void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %15)
          to label %139 unwind label %141

139:                                              ; preds = %138
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull %15)
          to label %140 unwind label %145

140:                                              ; preds = %139
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %15) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  ret void

141:                                              ; preds = %138, %137, %._crit_edge
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %147

143:                                              ; preds = %136
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %14) #7
  br label %147

145:                                              ; preds = %139
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %15) #7
  br label %147

147:                                              ; preds = %35, %145, %143, %141, %135, %33
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %34, %33 ], [ %36, %35 ], [ %.pn.pn, %135 ], [ %146, %145 ], [ %142, %141 ], [ %144, %143 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z42MIR_LowerHIR_Match_Simple__GeneratePatternR10MirBuilderRK4SpanPK11PatternRulejRKN3HIR7TypeRefERKN3MIR6LValueEjj(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Terminator") align 8) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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 = { 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 = { 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS14PatternRuleset", !7, i64 0, !7, i64 4, !10, i64 8, !15, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorI11PatternRuleSaIS0_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseI11PatternRuleSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorI14PatternBindingSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI14PatternBindingSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !7, i64 4}
!21 = !{!22, !7, i64 0}
!22 = !{!"_ZTSN7ArmCode7PatternE", !7, i64 0, !7, i64 4}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS7ArmCode", !25, i64 0, !26, i64 8}
!25 = !{!"bool", !8, i64 0}
!26 = !{!"_ZTSSt6vectorIN7ArmCode7PatternESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7ArmCode7PatternESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7ArmCode7PatternESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7ArmCode7PatternESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!22, !7, i64 4}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass