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

; 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.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.anon.219 = type { ptr }
%"struct.PatternRulesetBuilder::Ruleset" = type { i8, %"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.Span = type { ptr }
%class.anon.220 = type { ptr, ptr }
%class.anon.221 = type { ptr, ptr }
%struct.PatternRulesetBuilder = type { ptr, ptr, %"class.std::vector.70", i64, i64, %struct.field_path_t }
%"class.std::vector.70" = type { %"struct.std::_Vector_base.71" }
%"struct.std::_Vector_base.71" = type { %"struct.std::_Vector_base<PatternRulesetBuilder::Ruleset, std::allocator<PatternRulesetBuilder::Ruleset>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternRulesetBuilder::Ruleset, std::allocator<PatternRulesetBuilder::Ruleset>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternRulesetBuilder::Ruleset, std::allocator<PatternRulesetBuilder::Ruleset>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternRulesetBuilder::Ruleset, std::allocator<PatternRulesetBuilder::Ruleset>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.field_path_t = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@g_debug_indent_level = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE = external hidden unnamed_addr constant [84 x i8], align 1
@__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [53 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 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

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI11PatternRuleERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #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 @_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 @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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

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

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

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

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

40:                                               ; preds = %3
  br label %43

41:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.42, ptr noundef @.str.17, i32 noundef 868, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  %44 = load i64, ptr %5, align 8, !tbaa !9
  %45 = icmp eq i64 %44, 1
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  call void @_ZNKSt8functionIFvmEEclEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  br label %528

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #9
  %48 = call noundef zeroext i1 @_Z13debug_enabledv()
  %49 = zext i1 %48 to i64
  %50 = select i1 %48, ptr @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %51 = getelementptr inbounds %class.anon.219, ptr %9, i32 0, i32 0
  store ptr %5, ptr %51, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN21PatternRulesetBuilder17multiply_rulesetsEmS_IFvmEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %50, ptr noundef %8)
          to label %52 unwind label %60

52:                                               ; preds = %47
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  %53 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %56 = load i64, ptr %55, align 8, !tbaa !22
  %57 = icmp ult i64 %54, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %52
  br label %65

59:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.39, ptr noundef @.str.17, i32 noundef 874, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

60:                                               ; preds = %47
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %10, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %531

64:                                               ; No predecessors!
  br label %65

65:                                               ; preds = %64, %58
  %66 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %67 = load i64, ptr %66, align 8, !tbaa !22
  %68 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %69 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #9
  %70 = icmp ule i64 %67, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %65
  br label %74

72:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.40, ptr noundef @.str.17, i32 noundef 875, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

73:                                               ; No predecessors!
  br label %74

74:                                               ; preds = %73, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %75 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %76 = load i64, ptr %75, align 8, !tbaa !22
  %77 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = sub i64 %76, %78
  store i64 %79, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %80 = load i64, ptr %5, align 8, !tbaa !9
  %81 = sub i64 %80, 1
  %82 = load i64, ptr %12, align 8, !tbaa !9
  %83 = mul i64 %81, %82
  store i64 %83, ptr %13, align 8, !tbaa !9
  %84 = load i64, ptr %13, align 8, !tbaa !9
  %85 = icmp ugt i64 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %74
  br label %89

87:                                               ; preds = %74
  call void @__assert_fail(ptr noundef @.str.43, ptr noundef @.str.17, i32 noundef 878, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

88:                                               ; No predecessors!
  br label %89

89:                                               ; preds = %88, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %90 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = load i64, ptr %5, align 8, !tbaa !9
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = mul i64 %92, %93
  %95 = add i64 %91, %94
  store i64 %95, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %96 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %97 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #9
  %98 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %99 = load i64, ptr %98, align 8, !tbaa !22
  %100 = sub i64 %97, %99
  store i64 %100, ptr %15, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %89
  %102 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %103 unwind label %127

103:                                              ; preds = %101
  br i1 %102, label %104, label %131

104:                                              ; preds = %103
  %105 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %105, ptr noundef @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %107 unwind label %127

107:                                              ; preds = %104
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef @.str.44)
          to label %109 unwind label %127

109:                                              ; preds = %107
  %110 = load i64, ptr %12, align 8, !tbaa !9
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %108, i64 noundef %110)
          to label %112 unwind label %127

112:                                              ; preds = %109
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @.str.45)
          to label %114 unwind label %127

114:                                              ; preds = %112
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %113, i64 noundef %115)
          to label %117 unwind label %127

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.46)
          to label %119 unwind label %127

119:                                              ; preds = %117
  %120 = load i64, ptr %15, align 8, !tbaa !9
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %118, i64 noundef %120)
          to label %122 unwind label %127

122:                                              ; preds = %119
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @_ZSt3decRSt8ios_base)
          to label %124 unwind label %127

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %126 unwind label %127

126:                                              ; preds = %124
  br label %131

127:                                              ; preds = %133, %124, %122, %119, %117, %114, %112, %109, %107, %104, %101
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %10, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %11, align 4
  br label %530

131:                                              ; preds = %126, %103
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %135 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %136 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #9
  %137 = load i64, ptr %5, align 8, !tbaa !9
  %138 = sub i64 %137, 1
  %139 = load i64, ptr %12, align 8, !tbaa !9
  %140 = mul i64 %138, %139
  %141 = add i64 %136, %140
  invoke void @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %141)
          to label %142 unwind label %127

142:                                              ; preds = %133
  %143 = load i64, ptr %14, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %145 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #9
  %146 = load i64, ptr %15, align 8, !tbaa !9
  %147 = sub i64 %145, %146
  %148 = icmp eq i64 %143, %147
  br i1 %148, label %149, label %150

149:                                              ; preds = %142
  br label %152

150:                                              ; preds = %142
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.17, i32 noundef 883, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

151:                                              ; No predecessors!
  br label %152

152:                                              ; preds = %151, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %153 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %154 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #9
  store i64 %154, ptr %16, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %161, %152
  %156 = load i64, ptr %16, align 8, !tbaa !9
  %157 = add i64 %156, -1
  store i64 %157, ptr %16, align 8, !tbaa !9
  %158 = load i64, ptr %14, align 8, !tbaa !9
  %159 = icmp ugt i64 %156, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %171

161:                                              ; preds = %155
  %162 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %163 = load i64, ptr %16, align 8, !tbaa !9
  %164 = load i64, ptr %13, align 8, !tbaa !9
  %165 = sub i64 %163, %164
  %166 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %165) #9
  %167 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %168 = load i64, ptr %16, align 8, !tbaa !9
  %169 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %168) #9
  %170 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN21PatternRulesetBuilder7RulesetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(56) %169, ptr noundef nonnull align 8 dereferenceable(56) %166) #9
  br label %155, !llvm.loop !25

171:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %211, %171
  %173 = load i64, ptr %17, align 8, !tbaa !9
  %174 = load i64, ptr %5, align 8, !tbaa !9
  %175 = icmp ult i64 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %214

177:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %203, %177
  %179 = load i64, ptr %19, align 8, !tbaa !9
  %180 = load i64, ptr %12, align 8, !tbaa !9
  %181 = icmp ult i64 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  store i32 9, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %210

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %184 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %185 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %186 = load i64, ptr %185, align 8, !tbaa !11
  %187 = load i64, ptr %19, align 8, !tbaa !9
  %188 = add i64 %186, %187
  %189 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %188) #9
  store ptr %189, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #9
  %190 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNK21PatternRulesetBuilder7Ruleset5cloneEv(ptr dead_on_unwind writable sret(%"struct.PatternRulesetBuilder::Ruleset") align 8 %21, ptr noundef nonnull align 8 dereferenceable(56) %190)
          to label %191 unwind label %206

191:                                              ; preds = %183
  %192 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %193 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %194 = load i64, ptr %193, align 8, !tbaa !11
  %195 = load i64, ptr %17, align 8, !tbaa !9
  %196 = load i64, ptr %12, align 8, !tbaa !9
  %197 = mul i64 %195, %196
  %198 = add i64 %194, %197
  %199 = load i64, ptr %19, align 8, !tbaa !9
  %200 = add i64 %198, %199
  %201 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %200) #9
  %202 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN21PatternRulesetBuilder7RulesetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(56) %201, ptr noundef nonnull align 8 dereferenceable(56) %21) #9
  call void @_ZN21PatternRulesetBuilder7RulesetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %203

203:                                              ; preds = %191
  %204 = load i64, ptr %19, align 8, !tbaa !9
  %205 = add i64 %204, 1
  store i64 %205, ptr %19, align 8, !tbaa !9
  br label %178, !llvm.loop !27

206:                                              ; preds = %183
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %10, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %530

210:                                              ; preds = %182
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %17, align 8, !tbaa !9
  %213 = add i64 %212, 1
  store i64 %213, ptr %17, align 8, !tbaa !9
  br label %172, !llvm.loop !28

214:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %215 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %216 = load i64, ptr %215, align 8, !tbaa !11
  %217 = load i64, ptr %12, align 8, !tbaa !9
  %218 = add i64 %216, %217
  store i64 %218, ptr %22, align 8, !tbaa !9
  br label %219

219:                                              ; preds = %315, %214
  %220 = load i64, ptr %22, align 8, !tbaa !9
  %221 = load i64, ptr %14, align 8, !tbaa !9
  %222 = icmp ult i64 %220, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %219
  store i32 12, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %319

224:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %310, %224
  %226 = load i64, ptr %23, align 8, !tbaa !9
  %227 = load i64, ptr %12, align 8, !tbaa !9
  %228 = icmp ult i64 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  store i32 15, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %314

230:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %231 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %232 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %233 = load i64, ptr %232, align 8, !tbaa !11
  %234 = load i64, ptr %23, align 8, !tbaa !9
  %235 = add i64 %233, %234
  %236 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %235) #9
  store ptr %236, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %237 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %238 = load i64, ptr %22, align 8, !tbaa !9
  %239 = load i64, ptr %23, align 8, !tbaa !9
  %240 = add i64 %238, %239
  %241 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %240) #9
  store ptr %241, ptr %25, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %230
  %243 = load ptr, ptr %25, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %243, i32 0, i32 1
  %245 = load ptr, ptr %24, align 8, !tbaa !5
  %246 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %245, i32 0, i32 1
  %247 = invoke noundef zeroext i1 @_ZSteqI11PatternRuleSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %244, ptr noundef nonnull align 8 dereferenceable(24) %246)
          to label %248 unwind label %258

248:                                              ; preds = %242
  br i1 %247, label %275, label %249

249:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  invoke void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %250 unwind label %262

250:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %251 = getelementptr inbounds %class.anon.220, ptr %28, i32 0, i32 0
  %252 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %252, ptr %251, align 8, !tbaa !5
  %253 = getelementptr inbounds %class.anon.220, ptr %28, i32 0, i32 1
  %254 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %254, ptr %253, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN21PatternRulesetBuilder17multiply_rulesetsEmS_IFvmEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %27)
          to label %255 unwind label %266

255:                                              ; preds = %250
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  %256 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %256, ptr noundef @.str.10)
          to label %257 unwind label %271

257:                                              ; preds = %255
  invoke void @__cxa_throw(ptr %256, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %537 unwind label %258

258:                                              ; preds = %293, %278, %257, %242
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %10, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %11, align 4
  br label %313

262:                                              ; preds = %249
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %10, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %11, align 4
  br label %270

266:                                              ; preds = %250
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %10, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br label %270

270:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %313

271:                                              ; preds = %255
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %10, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %11, align 4
  call void @__cxa_free_exception(ptr %256) #9
  br label %313

275:                                              ; preds = %248
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277
  %279 = load ptr, ptr %25, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %279, i32 0, i32 2
  %281 = load ptr, ptr %24, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %281, i32 0, i32 2
  %283 = invoke noundef zeroext i1 @_ZSteqI14PatternBindingSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %280, ptr noundef nonnull align 8 dereferenceable(24) %282)
          to label %284 unwind label %258

284:                                              ; preds = %278
  br i1 %283, label %307, label %285

285:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  invoke void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %286 unwind label %294

286:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  %287 = getelementptr inbounds %class.anon.221, ptr %31, i32 0, i32 0
  %288 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %288, ptr %287, align 8, !tbaa !5
  %289 = getelementptr inbounds %class.anon.221, ptr %31, i32 0, i32 1
  %290 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %290, ptr %289, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN21PatternRulesetBuilder17multiply_rulesetsEmS_IFvmEEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(16) %31) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %30)
          to label %291 unwind label %298

291:                                              ; preds = %286
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  %292 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %292, ptr noundef @.str.10)
          to label %293 unwind label %303

293:                                              ; preds = %291
  invoke void @__cxa_throw(ptr %292, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %537 unwind label %258

294:                                              ; preds = %285
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %10, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %11, align 4
  br label %302

298:                                              ; preds = %286
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %10, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  br label %302

302:                                              ; preds = %298, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %313

303:                                              ; preds = %291
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %10, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %11, align 4
  call void @__cxa_free_exception(ptr %292) #9
  br label %313

307:                                              ; preds = %284
  br label %308

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %310

310:                                              ; preds = %309
  %311 = load i64, ptr %23, align 8, !tbaa !9
  %312 = add i64 %311, 1
  store i64 %312, ptr %23, align 8, !tbaa !9
  br label %225, !llvm.loop !29

313:                                              ; preds = %303, %302, %271, %270, %258
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %530

314:                                              ; preds = %229
  br label %315

315:                                              ; preds = %314
  %316 = load i64, ptr %12, align 8, !tbaa !9
  %317 = load i64, ptr %22, align 8, !tbaa !9
  %318 = add i64 %317, %316
  store i64 %318, ptr %22, align 8, !tbaa !9
  br label %219, !llvm.loop !30

319:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %320 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %321 = load i64, ptr %320, align 8, !tbaa !11
  store i64 %321, ptr %32, align 8, !tbaa !9
  br label %322

322:                                              ; preds = %369, %319
  %323 = load i64, ptr %32, align 8, !tbaa !9
  %324 = load i64, ptr %14, align 8, !tbaa !9
  %325 = icmp ult i64 %323, %324
  br i1 %325, label %327, label %326

326:                                              ; preds = %322
  store i32 22, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %372

327:                                              ; preds = %322
  br label %328

328:                                              ; preds = %327
  %329 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %330 unwind label %362

330:                                              ; preds = %328
  br i1 %329, label %331, label %366

331:                                              ; preds = %330
  %332 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %332, ptr noundef @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %334 unwind label %362

334:                                              ; preds = %331
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %333, ptr noundef @.str.48)
          to label %336 unwind label %362

336:                                              ; preds = %334
  %337 = load i64, ptr %32, align 8, !tbaa !9
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %335, i64 noundef %337)
          to label %339 unwind label %362

339:                                              ; preds = %336
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef @.str.49)
          to label %341 unwind label %362

341:                                              ; preds = %339
  %342 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %343 = load i64, ptr %32, align 8, !tbaa !9
  %344 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %342, i64 noundef %343) #9
  %345 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %344, i32 0, i32 1
  %346 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI11PatternRuleERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %340, ptr noundef nonnull align 8 dereferenceable(24) %345)
          to label %347 unwind label %362

347:                                              ; preds = %341
  %348 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef @.str.50)
          to label %349 unwind label %362

349:                                              ; preds = %347
  %350 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %351 = load i64, ptr %32, align 8, !tbaa !9
  %352 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %350, i64 noundef %351) #9
  %353 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %352, i32 0, i32 2
  %354 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI14PatternBindingERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %348, ptr noundef nonnull align 8 dereferenceable(24) %353)
          to label %355 unwind label %362

355:                                              ; preds = %349
  %356 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %354, ptr noundef @.str.3)
          to label %357 unwind label %362

357:                                              ; preds = %355
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %356, ptr noundef @_ZSt3decRSt8ios_base)
          to label %359 unwind label %362

359:                                              ; preds = %357
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %358, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %361 unwind label %362

361:                                              ; preds = %359
  br label %366

362:                                              ; preds = %359, %357, %355, %349, %347, %341, %339, %336, %334, %331, %328
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %10, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %530

366:                                              ; preds = %361, %330
  br label %367

367:                                              ; preds = %366
  br label %368

368:                                              ; preds = %367
  br label %369

369:                                              ; preds = %368
  %370 = load i64, ptr %32, align 8, !tbaa !9
  %371 = add i64 %370, 1
  store i64 %371, ptr %32, align 8, !tbaa !9
  br label %322, !llvm.loop !31

372:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %373 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %374 = load i64, ptr %373, align 8, !tbaa !11
  store i64 %374, ptr %33, align 8, !tbaa !9
  %375 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %376 = load i64, ptr %375, align 8, !tbaa !11
  %377 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  store i64 %376, ptr %377, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  store i64 0, ptr %34, align 8, !tbaa !9
  br label %378

378:                                              ; preds = %468, %372
  %379 = load i64, ptr %34, align 8, !tbaa !9
  %380 = load i64, ptr %5, align 8, !tbaa !9
  %381 = icmp ult i64 %379, %380
  br i1 %381, label %383, label %382

382:                                              ; preds = %378
  store i32 27, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %471

383:                                              ; preds = %378
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %384 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %385 = load i64, ptr %384, align 8, !tbaa !11
  store i64 %385, ptr %35, align 8, !tbaa !9
  %386 = load i64, ptr %12, align 8, !tbaa !9
  %387 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %388 = load i64, ptr %387, align 8, !tbaa !22
  %389 = add i64 %388, %386
  store i64 %389, ptr %387, align 8, !tbaa !22
  br label %390

390:                                              ; preds = %383
  %391 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %392 unwind label %418

392:                                              ; preds = %390
  br i1 %391, label %393, label %422

393:                                              ; preds = %392
  %394 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %394, ptr noundef @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %396 unwind label %418

396:                                              ; preds = %393
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef @.str.51)
          to label %398 unwind label %418

398:                                              ; preds = %396
  %399 = load i64, ptr %34, align 8, !tbaa !9
  %400 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %397, i64 noundef %399)
          to label %401 unwind label %418

401:                                              ; preds = %398
  %402 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %400, ptr noundef @.str.1)
          to label %403 unwind label %418

403:                                              ; preds = %401
  %404 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %405 = load i64, ptr %404, align 8, !tbaa !11
  %406 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %402, i64 noundef %405)
          to label %407 unwind label %418

407:                                              ; preds = %403
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %406, ptr noundef @.str.52)
          to label %409 unwind label %418

409:                                              ; preds = %407
  %410 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %411 = load i64, ptr %410, align 8, !tbaa !22
  %412 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %408, i64 noundef %411)
          to label %413 unwind label %418

413:                                              ; preds = %409
  %414 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %412, ptr noundef @_ZSt3decRSt8ios_base)
          to label %415 unwind label %418

415:                                              ; preds = %413
  %416 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %414, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %417 unwind label %418

417:                                              ; preds = %415
  br label %422

418:                                              ; preds = %440, %438, %435, %433, %430, %427, %424, %415, %413, %409, %407, %403, %401, %398, %396, %393, %390
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %10, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %529

422:                                              ; preds = %417, %392
  br label %423

423:                                              ; preds = %422
  br label %424

424:                                              ; preds = %423
  %425 = load i64, ptr %34, align 8, !tbaa !9
  invoke void @_ZNKSt8functionIFvmEEclEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %425)
          to label %426 unwind label %418

426:                                              ; preds = %424
  br label %427

427:                                              ; preds = %426
  %428 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %429 unwind label %418

429:                                              ; preds = %427
  br i1 %428, label %430, label %443

430:                                              ; preds = %429
  %431 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %432 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %431, ptr noundef @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %433 unwind label %418

433:                                              ; preds = %430
  %434 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %432, ptr noundef @.str.53)
          to label %435 unwind label %418

435:                                              ; preds = %433
  %436 = load i64, ptr %34, align 8, !tbaa !9
  %437 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %434, i64 noundef %436)
          to label %438 unwind label %418

438:                                              ; preds = %435
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %437, ptr noundef @_ZSt3decRSt8ios_base)
          to label %440 unwind label %418

440:                                              ; preds = %438
  %441 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %439, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %442 unwind label %418

442:                                              ; preds = %440
  br label %443

443:                                              ; preds = %442, %429
  br label %444

444:                                              ; preds = %443
  br label %445

445:                                              ; preds = %444
  %446 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %447 = load i64, ptr %446, align 8, !tbaa !11
  %448 = load i64, ptr %35, align 8, !tbaa !9
  %449 = icmp eq i64 %447, %448
  br i1 %449, label %450, label %451

450:                                              ; preds = %445
  br label %453

451:                                              ; preds = %445
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.17, i32 noundef 923, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

452:                                              ; No predecessors!
  br label %453

453:                                              ; preds = %452, %450
  %454 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %455 = load i64, ptr %454, align 8, !tbaa !22
  %456 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %457 = load i64, ptr %456, align 8, !tbaa !11
  %458 = load i64, ptr %12, align 8, !tbaa !9
  %459 = add i64 %457, %458
  %460 = icmp uge i64 %455, %459
  br i1 %460, label %461, label %462

461:                                              ; preds = %453
  br label %464

462:                                              ; preds = %453
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.17, i32 noundef 924, ptr noundef @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

463:                                              ; No predecessors!
  br label %464

464:                                              ; preds = %463, %461
  %465 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %466 = load i64, ptr %465, align 8, !tbaa !22
  %467 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  store i64 %466, ptr %467, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %468

468:                                              ; preds = %464
  %469 = load i64, ptr %34, align 8, !tbaa !9
  %470 = add i64 %469, 1
  store i64 %470, ptr %34, align 8, !tbaa !9
  br label %378, !llvm.loop !32

471:                                              ; preds = %382
  %472 = load i64, ptr %33, align 8, !tbaa !9
  %473 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  store i64 %472, ptr %473, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %474 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 3
  %475 = load i64, ptr %474, align 8, !tbaa !11
  store i64 %475, ptr %36, align 8, !tbaa !9
  br label %476

476:                                              ; preds = %524, %471
  %477 = load i64, ptr %36, align 8, !tbaa !9
  %478 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 4
  %479 = load i64, ptr %478, align 8, !tbaa !22
  %480 = icmp ult i64 %477, %479
  br i1 %480, label %482, label %481

481:                                              ; preds = %476
  store i32 34, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %527

482:                                              ; preds = %476
  br label %483

483:                                              ; preds = %482
  %484 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %485 unwind label %517

485:                                              ; preds = %483
  br i1 %484, label %486, label %521

486:                                              ; preds = %485
  %487 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %488 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %487, ptr noundef @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %489 unwind label %517

489:                                              ; preds = %486
  %490 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %488, ptr noundef @.str.48)
          to label %491 unwind label %517

491:                                              ; preds = %489
  %492 = load i64, ptr %36, align 8, !tbaa !9
  %493 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %490, i64 noundef %492)
          to label %494 unwind label %517

494:                                              ; preds = %491
  %495 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %493, ptr noundef @.str.49)
          to label %496 unwind label %517

496:                                              ; preds = %494
  %497 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %498 = load i64, ptr %36, align 8, !tbaa !9
  %499 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %497, i64 noundef %498) #9
  %500 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %499, i32 0, i32 1
  %501 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI11PatternRuleERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %495, ptr noundef nonnull align 8 dereferenceable(24) %500)
          to label %502 unwind label %517

502:                                              ; preds = %496
  %503 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %501, ptr noundef @.str.50)
          to label %504 unwind label %517

504:                                              ; preds = %502
  %505 = getelementptr inbounds %struct.PatternRulesetBuilder, ptr %37, i32 0, i32 2
  %506 = load i64, ptr %36, align 8, !tbaa !9
  %507 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %505, i64 noundef %506) #9
  %508 = getelementptr inbounds %"struct.PatternRulesetBuilder::Ruleset", ptr %507, i32 0, i32 2
  %509 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI14PatternBindingERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %503, ptr noundef nonnull align 8 dereferenceable(24) %508)
          to label %510 unwind label %517

510:                                              ; preds = %504
  %511 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %509, ptr noundef @.str.3)
          to label %512 unwind label %517

512:                                              ; preds = %510
  %513 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %511, ptr noundef @_ZSt3decRSt8ios_base)
          to label %514 unwind label %517

514:                                              ; preds = %512
  %515 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %513, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %516 unwind label %517

516:                                              ; preds = %514
  br label %521

517:                                              ; preds = %514, %512, %510, %504, %502, %496, %494, %491, %489, %486, %483
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %10, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %529

521:                                              ; preds = %516, %485
  br label %522

522:                                              ; preds = %521
  br label %523

523:                                              ; preds = %522
  br label %524

524:                                              ; preds = %523
  %525 = load i64, ptr %36, align 8, !tbaa !9
  %526 = add i64 %525, 1
  store i64 %526, ptr %36, align 8, !tbaa !9
  br label %476, !llvm.loop !33

527:                                              ; preds = %481
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #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
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #9
  br label %528

528:                                              ; preds = %527, %46
  ret void

529:                                              ; preds = %517, %418
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %530

530:                                              ; preds = %529, %362, %313, %206, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #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
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #9
  br label %531

531:                                              ; preds = %530, %60
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #9
  br label %532

532:                                              ; preds = %531
  %533 = load ptr, ptr %10, align 8
  %534 = load i32, ptr %11, align 4
  %535 = insertvalue { ptr, i32 } poison, ptr %533, 0
  %536 = insertvalue { ptr, i32 } %535, i32 %534, 1
  resume { ptr, i32 } %536

537:                                              ; preds = %293, %257
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN21PatternRulesetBuilder7RulesetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21PatternRulesetBuilder7Ruleset5cloneEv(ptr dead_on_unwind noalias writable sret(%"struct.PatternRulesetBuilder::Ruleset") align 8, ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN21PatternRulesetBuilder7RulesetD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 = { noreturn nounwind }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"_ZTS21PatternRulesetBuilder", !6, i64 0, !6, i64 8, !13, i64 16, !10, i64 40, !10, i64 48, !17, i64 56}
!13 = !{!"_ZTSSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN21PatternRulesetBuilder7RulesetESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN21PatternRulesetBuilder7RulesetESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN21PatternRulesetBuilder7RulesetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTS12field_path_t", !18, i64 0}
!18 = !{!"_ZTSSt6vectorIhSaIhEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!12, !10, i64 48}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}


; 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.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.anon.219 = type { ptr }
%"struct.PatternRulesetBuilder::Ruleset" = type { i8, %"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.Span = type { ptr }
%class.anon.220 = type { ptr, ptr }
%class.anon.221 = type { ptr, ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE = external hidden unnamed_addr constant [84 x i8], align 1
@__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [53 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 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

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI11PatternRuleERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) 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 @_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 @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

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: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE(ptr noundef nonnull align 8 dereferenceable(80) %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca %class.TraceLog, align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %class.anon.219, align 8
  %8 = alloca %"struct.PatternRulesetBuilder::Ruleset", align 8
  %9 = alloca %struct.Span, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.220, align 8
  %12 = alloca %struct.Span, align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.221, align 8
  store i64 %1, ptr %4, align 8, !tbaa !5
  switch i64 %1, label %17 [
    i64 0, label %15
    i64 1, label %16
  ]

15:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.17, i32 noundef 868, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

16:                                               ; preds = %3
  tail call void @_ZNKSt8functionIFvmEEclEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  br label %267

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #9
  %18 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %19 = select i1 %18, ptr @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  store ptr %4, ptr %7, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZN21PatternRulesetBuilder17multiply_rulesetsEmS_IFvmEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %19, ptr noundef nonnull %6)
          to label %20 unwind label %27

20:                                               ; preds = %17
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = load i64, ptr %23, align 8, !tbaa !22
  %25 = icmp ult i64 %22, %24
  br i1 %25, label %29, label %26

26:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.17, i32 noundef 874, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %269

29:                                               ; preds = %20
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  %31 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  %.not85 = icmp ugt i64 %24, %31
  br i1 %.not85, label %32, label %33

32:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.17, i32 noundef 875, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

33:                                               ; preds = %29
  %34 = load i64, ptr %23, align 8, !tbaa !22
  %35 = load i64, ptr %21, align 8, !tbaa !11
  %36 = sub i64 %34, %35
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = add i64 %37, -1
  %39 = mul i64 %38, %36
  %.not86 = icmp eq i64 %39, 0
  br i1 %.not86, label %40, label %41

40:                                               ; preds = %33
  call void @__assert_fail(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.17, i32 noundef 878, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

41:                                               ; preds = %33
  %42 = mul i64 %37, %36
  %43 = add i64 %42, %35
  %44 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  %45 = load i64, ptr %23, align 8, !tbaa !22
  %46 = sub i64 %44, %45
  %47 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %48 unwind label %68

48:                                               ; preds = %41
  br i1 %47, label %49, label %70

49:                                               ; preds = %48
  %50 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %50, ptr noundef nonnull @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %52 unwind label %68

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

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %36)
          to label %56 unwind label %68

56:                                               ; preds = %54
  %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.45)
          to label %58 unwind label %68

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %57, i64 noundef %39)
          to label %60 unwind label %68

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @.str.46)
          to label %62 unwind label %68

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %61, i64 noundef %46)
          to label %64 unwind label %68

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %66 unwind label %68

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %70 unwind label %68

68:                                               ; preds = %70, %66, %64, %62, %60, %58, %56, %54, %52, %49, %41
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %268

70:                                               ; preds = %66, %48
  %71 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  %72 = load i64, ptr %4, align 8, !tbaa !5
  %73 = add i64 %72, -1
  %74 = mul i64 %73, %36
  %75 = add i64 %74, %71
  invoke void @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %75)
          to label %76 unwind label %68

76:                                               ; preds = %70
  %77 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  %78 = sub i64 %77, %46
  %79 = icmp eq i64 %43, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.17, i32 noundef 883, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

81:                                               ; preds = %76
  %82 = call noundef i64 @_ZNKSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  %83 = icmp ugt i64 %82, %43
  br i1 %83, label %.lr.ph, label %.preheader97

.preheader97:                                     ; preds = %.lr.ph, %81
  %84 = load i64, ptr %4, align 8, !tbaa !5
  %85 = icmp ult i64 %84, 2
  %.not = icmp eq i64 %34, %35
  %or.cond = or i1 %85, %.not
  br i1 %or.cond, label %._crit_edge107, label %.preheader96.us

.preheader96.us:                                  ; preds = %.preheader97, %._crit_edge.us
  %.073106.us = phi i64 [ %98, %._crit_edge.us ], [ 1, %.preheader97 ]
  %86 = mul i64 %.073106.us, %36
  br label %87

87:                                               ; preds = %.preheader96.us, %91
  %.076104.us = phi i64 [ 0, %.preheader96.us ], [ %97, %91 ]
  %88 = load i64, ptr %21, align 8, !tbaa !11
  %89 = add i64 %88, %.076104.us
  %90 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %89) #9
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #9
  invoke void @_ZNK21PatternRulesetBuilder7Ruleset5cloneEv(ptr dead_on_unwind nonnull writable sret(%"struct.PatternRulesetBuilder::Ruleset") align 8 %8, ptr noundef nonnull align 8 dereferenceable(56) %90)
          to label %91 unwind label %.split.us

91:                                               ; preds = %87
  %92 = load i64, ptr %21, align 8, !tbaa !11
  %93 = add i64 %.076104.us, %86
  %94 = add i64 %93, %92
  %95 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %94) #9
  %96 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN21PatternRulesetBuilder7RulesetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(56) %95, ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  call void @_ZN21PatternRulesetBuilder7RulesetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #9
  %97 = add nuw i64 %.076104.us, 1
  %exitcond.not = icmp eq i64 %97, %36
  br i1 %exitcond.not, label %._crit_edge.us, label %87, !llvm.loop !25

._crit_edge.us:                                   ; preds = %91
  %98 = add nuw i64 %.073106.us, 1
  %99 = load i64, ptr %4, align 8, !tbaa !5
  %100 = icmp ult i64 %98, %99
  br i1 %100, label %.preheader96.us, label %._crit_edge107, !llvm.loop !27

.split.us:                                        ; preds = %87
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #9
  br label %268

.lr.ph:                                           ; preds = %81, %.lr.ph
  %.072103 = phi i64 [ %102, %.lr.ph ], [ %82, %81 ]
  %102 = add i64 %.072103, -1
  %103 = sub i64 %102, %39
  %104 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %103) #9
  %105 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %102) #9
  %106 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN21PatternRulesetBuilder7RulesetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(56) %105, ptr noundef nonnull align 8 dereferenceable(56) %104) #9
  %107 = icmp ugt i64 %102, %43
  br i1 %107, label %.lr.ph, label %.preheader97, !llvm.loop !28

._crit_edge107:                                   ; preds = %._crit_edge.us, %.preheader97
  %108 = load i64, ptr %21, align 8, !tbaa !11
  %.075110 = add i64 %108, %36
  %109 = icmp uge i64 %.075110, %43
  %.not131 = icmp eq i64 %34, %35
  %or.cond152 = or i1 %109, %.not131
  br i1 %or.cond152, label %._crit_edge, label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge107, %..loopexit_crit_edge.us
  %.075111.us = phi i64 [ %.075.us, %..loopexit_crit_edge.us ], [ %.075110, %._crit_edge107 ]
  br label %112

110:                                              ; preds = %126
  %111 = add nuw i64 %.074108.us, 1
  %exitcond142.not = icmp eq i64 %111, %36
  br i1 %exitcond142.not, label %..loopexit_crit_edge.us, label %112, !llvm.loop !29

112:                                              ; preds = %.preheader.us, %110
  %.074108.us = phi i64 [ 0, %.preheader.us ], [ %111, %110 ]
  %113 = load i64, ptr %21, align 8, !tbaa !11
  %114 = add i64 %113, %.074108.us
  %115 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %114) #9
  %116 = add i64 %.074108.us, %.075111.us
  %117 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %116) #9
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  %119 = getelementptr inbounds i8, ptr %115, i64 8
  %120 = invoke noundef zeroext i1 @_ZSteqI11PatternRuleSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 8 dereferenceable(24) %119)
          to label %121 unwind label %.loopexit95.split.us

121:                                              ; preds = %112
  br i1 %120, label %122, label %.split.us112

122:                                              ; preds = %121
  %123 = getelementptr inbounds i8, ptr %117, i64 32
  %124 = getelementptr inbounds i8, ptr %115, i64 32
  %125 = invoke noundef zeroext i1 @_ZSteqI14PatternBindingSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %126 unwind label %.loopexit95.split.us

126:                                              ; preds = %122
  br i1 %125, label %110, label %.split116.us

..loopexit_crit_edge.us:                          ; preds = %110
  %.075.us = add i64 %.075111.us, %36
  %127 = icmp ult i64 %.075.us, %43
  br i1 %127, label %.preheader.us, label %._crit_edge.loopexit133, !llvm.loop !30

.loopexit95.split.us:                             ; preds = %122, %112
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %268

._crit_edge.loopexit133:                          ; preds = %..loopexit_crit_edge.us
  %.pre = load i64, ptr %21, align 8, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit133, %._crit_edge107
  %128 = phi i64 [ %.pre, %._crit_edge.loopexit133 ], [ %108, %._crit_edge107 ]
  %129 = icmp ult i64 %128, %43
  br i1 %129, label %.lr.ph121, label %._crit_edge122

.split.us112:                                     ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  store ptr %117, ptr %11, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %115, ptr %130, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZN21PatternRulesetBuilder17multiply_rulesetsEmS_IFvmEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %10)
          to label %131 unwind label %134

131:                                              ; preds = %.split.us112
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %132 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef nonnull @.str.10)
          to label %.invoke unwind label %136

.invoke:                                          ; preds = %131, %139
  %133 = phi ptr [ %140, %139 ], [ %132, %131 ]
  invoke void @__cxa_throw(ptr nonnull %133, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

.loopexit.split-lp:                               ; preds = %.invoke
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %268

134:                                              ; preds = %.split.us112
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %268

136:                                              ; preds = %131
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %132) #9
  br label %268

.split116.us:                                     ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  store ptr %117, ptr %14, align 8, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %115, ptr %138, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZN21PatternRulesetBuilder17multiply_rulesetsEmS_IFvmEEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13)
          to label %139 unwind label %141

139:                                              ; preds = %.split116.us
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  %140 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %140, ptr noundef nonnull @.str.10)
          to label %.invoke unwind label %143

141:                                              ; preds = %.split116.us
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %268

143:                                              ; preds = %139
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %140) #9
  br label %268

._crit_edge122.loopexit:                          ; preds = %176
  %.pre143 = load i64, ptr %21, align 8, !tbaa !11
  br label %._crit_edge122

._crit_edge122:                                   ; preds = %._crit_edge122.loopexit, %._crit_edge
  %145 = phi i64 [ %.pre143, %._crit_edge122.loopexit ], [ %128, %._crit_edge ]
  store i64 %145, ptr %23, align 8, !tbaa !22
  %146 = load i64, ptr %4, align 8, !tbaa !5
  %.not132 = icmp eq i64 %146, 0
  br i1 %.not132, label %._crit_edge126, label %.lr.ph125

.lr.ph121:                                        ; preds = %._crit_edge, %176
  %.071119 = phi i64 [ %177, %176 ], [ %128, %._crit_edge ]
  %147 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %148 unwind label %174

148:                                              ; preds = %.lr.ph121
  br i1 %147, label %149, label %176

149:                                              ; preds = %148
  %150 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %150, ptr noundef nonnull @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %152 unwind label %174

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull @.str.48)
          to label %154 unwind label %174

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %153, i64 noundef %.071119)
          to label %156 unwind label %174

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @.str.49)
          to label %158 unwind label %174

158:                                              ; preds = %156
  %159 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.071119) #9
  %160 = getelementptr inbounds i8, ptr %159, i64 8
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI11PatternRuleERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull align 8 dereferenceable(24) %160)
          to label %162 unwind label %174

162:                                              ; preds = %158
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull @.str.50)
          to label %164 unwind label %174

164:                                              ; preds = %162
  %165 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.071119) #9
  %166 = getelementptr inbounds i8, ptr %165, i64 32
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI14PatternBindingERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %168 unwind label %174

168:                                              ; preds = %164
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull @.str.3)
          to label %170 unwind label %174

170:                                              ; preds = %168
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %172 unwind label %174

172:                                              ; preds = %170
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %176 unwind label %174

174:                                              ; preds = %172, %170, %168, %164, %162, %158, %156, %154, %152, %149, %.lr.ph121
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %268

176:                                              ; preds = %148, %172
  %177 = add nuw i64 %.071119, 1
  %178 = icmp ult i64 %177, %43
  br i1 %178, label %.lr.ph121, label %._crit_edge122.loopexit, !llvm.loop !31

._crit_edge126:                                   ; preds = %230, %._crit_edge122
  %179 = phi i64 [ %145, %._crit_edge122 ], [ %228, %230 ]
  store i64 %145, ptr %21, align 8, !tbaa !11
  %180 = icmp ult i64 %145, %179
  br i1 %180, label %.lr.ph129, label %._crit_edge130

.lr.ph125:                                        ; preds = %._crit_edge122, %230
  %181 = phi i64 [ %228, %230 ], [ %145, %._crit_edge122 ]
  %.066123 = phi i64 [ %231, %230 ], [ 0, %._crit_edge122 ]
  %182 = add i64 %181, %36
  store i64 %182, ptr %23, align 8, !tbaa !22
  %183 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %184 unwind label %206

184:                                              ; preds = %.lr.ph125
  br i1 %183, label %185, label %208

185:                                              ; preds = %184
  %186 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %186, ptr noundef nonnull @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %188 unwind label %206

188:                                              ; preds = %185
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef nonnull @.str.51)
          to label %190 unwind label %206

190:                                              ; preds = %188
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %189, i64 noundef %.066123)
          to label %192 unwind label %206

192:                                              ; preds = %190
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef nonnull @.str.1)
          to label %194 unwind label %206

194:                                              ; preds = %192
  %195 = load i64, ptr %21, align 8, !tbaa !11
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %193, i64 noundef %195)
          to label %197 unwind label %206

197:                                              ; preds = %194
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @.str.52)
          to label %199 unwind label %206

199:                                              ; preds = %197
  %200 = load i64, ptr %23, align 8, !tbaa !22
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %198, i64 noundef %200)
          to label %202 unwind label %206

202:                                              ; preds = %199
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %204 unwind label %206

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %206

206:                                              ; preds = %221, %219, %217, %215, %212, %209, %208, %204, %202, %199, %197, %194, %192, %190, %188, %185, %.lr.ph125
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %268

208:                                              ; preds = %204, %184
  invoke void @_ZNKSt8functionIFvmEEclEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.066123)
          to label %209 unwind label %206

209:                                              ; preds = %208
  %210 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %211 unwind label %206

211:                                              ; preds = %209
  br i1 %210, label %212, label %223

212:                                              ; preds = %211
  %213 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %213, ptr noundef nonnull @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %215 unwind label %206

215:                                              ; preds = %212
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef nonnull @.str.53)
          to label %217 unwind label %206

217:                                              ; preds = %215
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %216, i64 noundef %.066123)
          to label %219 unwind label %206

219:                                              ; preds = %217
  %220 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %218, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %221 unwind label %206

221:                                              ; preds = %219
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %223 unwind label %206

223:                                              ; preds = %221, %211
  %224 = load i64, ptr %21, align 8, !tbaa !11
  %225 = icmp eq i64 %224, %181
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.17, i32 noundef 923, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

227:                                              ; preds = %223
  %228 = load i64, ptr %23, align 8, !tbaa !22
  %.not89 = icmp ult i64 %228, %182
  br i1 %.not89, label %229, label %230

229:                                              ; preds = %227
  call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.17, i32 noundef 924, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE) #8
  unreachable

230:                                              ; preds = %227
  store i64 %228, ptr %21, align 8, !tbaa !11
  %231 = add nuw i64 %.066123, 1
  %232 = load i64, ptr %4, align 8, !tbaa !5
  %233 = icmp ult i64 %231, %232
  br i1 %233, label %.lr.ph125, label %._crit_edge126, !llvm.loop !32

._crit_edge130:                                   ; preds = %263, %._crit_edge126
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #9
  br label %267

.lr.ph129:                                        ; preds = %._crit_edge126, %263
  %.0127 = phi i64 [ %264, %263 ], [ %145, %._crit_edge126 ]
  %234 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %235 unwind label %261

235:                                              ; preds = %.lr.ph129
  br i1 %234, label %236, label %263

236:                                              ; preds = %235
  %237 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %237, ptr noundef nonnull @__func__._ZN21PatternRulesetBuilder17multiply_rulesetsEmSt8functionIFvmEE)
          to label %239 unwind label %261

239:                                              ; preds = %236
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %238, ptr noundef nonnull @.str.48)
          to label %241 unwind label %261

241:                                              ; preds = %239
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %240, i64 noundef %.0127)
          to label %243 unwind label %261

243:                                              ; preds = %241
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef nonnull @.str.49)
          to label %245 unwind label %261

245:                                              ; preds = %243
  %246 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.0127) #9
  %247 = getelementptr inbounds i8, ptr %246, i64 8
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI11PatternRuleERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef nonnull align 8 dereferenceable(24) %247)
          to label %249 unwind label %261

249:                                              ; preds = %245
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef nonnull @.str.50)
          to label %251 unwind label %261

251:                                              ; preds = %249
  %252 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.0127) #9
  %253 = getelementptr inbounds i8, ptr %252, i64 32
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsI14PatternBindingERSoS1_RKSt6vectorIT_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull align 8 dereferenceable(24) %253)
          to label %255 unwind label %261

255:                                              ; preds = %251
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef nonnull @.str.3)
          to label %257 unwind label %261

257:                                              ; preds = %255
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %259 unwind label %261

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %263 unwind label %261

261:                                              ; preds = %259, %257, %255, %251, %249, %245, %243, %241, %239, %236, %.lr.ph129
  %262 = landingpad { ptr, i32 }
          cleanup
  br label %268

263:                                              ; preds = %235, %259
  %264 = add nuw i64 %.0127, 1
  %265 = load i64, ptr %23, align 8, !tbaa !22
  %266 = icmp ult i64 %264, %265
  br i1 %266, label %.lr.ph129, label %._crit_edge130, !llvm.loop !33

267:                                              ; preds = %._crit_edge130, %16
  ret void

268:                                              ; preds = %.loopexit95.split.us, %.loopexit.split-lp, %206, %261, %134, %136, %141, %143, %174, %.split.us, %68
  %.pn92 = phi { ptr, i32 } [ %101, %.split.us ], [ %175, %174 ], [ %69, %68 ], [ %144, %143 ], [ %142, %141 ], [ %137, %136 ], [ %135, %134 ], [ %207, %206 ], [ %262, %261 ], [ %lpad.loopexit.us, %.loopexit95.split.us ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #9
  br label %269

269:                                              ; preds = %268, %27
  %.pn92.pn = phi { ptr, i32 } [ %.pn92, %268 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn92.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN21PatternRulesetBuilder7RulesetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21PatternRulesetBuilder7Ruleset5cloneEv(ptr dead_on_unwind noalias writable sret(%"struct.PatternRulesetBuilder::Ruleset") align 8, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN21PatternRulesetBuilder7RulesetD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 = { noreturn nounwind }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"_ZTS21PatternRulesetBuilder", !10, i64 0, !10, i64 8, !13, i64 16, !6, i64 40, !6, i64 48, !17, i64 56}
!13 = !{!"_ZTSSt6vectorIN21PatternRulesetBuilder7RulesetESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN21PatternRulesetBuilder7RulesetESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN21PatternRulesetBuilder7RulesetESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN21PatternRulesetBuilder7RulesetESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTS12field_path_t", !18, i64 0}
!18 = !{!"_ZTSSt6vectorIhSaIhEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!22 = !{!12, !6, i64 48}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}


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