; LLVM IR from MtSaka/library :: test/yosupo/data_structure/range_set_range_composite.test (main)

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

%"struct.fastio::Scanner" = type <{ i32, [131073 x i8], [3 x i8], i32, i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.RangeAssignSegmnetTree = type <{ i32, [4 x i8], %struct.LazySegmentTree, %"class.std::vector", i32, [4 x i8] }>
%struct.LazySegmentTree = type { i32, i32, i32, %"class.std::vector", %"class.std::vector.1", %"class.std::vector.6" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"struct.std::pair" = type { %struct.StaticModInt, %struct.StaticModInt }
%struct.StaticModInt = type { i32 }

@_ZN6fastio2scE = external dso_local global %"struct.fastio::Scanner", align 4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.RangeAssignSegmnetTree, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.std::pair", align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %struct.StaticModInt, align 4
  %23 = alloca %struct.StaticModInt, align 4
  %24 = alloca %struct.StaticModInt, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @_Z4scanIxJxEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  %25 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @_ZNSaISt4pairI12StaticModIntIjLj998244353EES1_EEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorISt4pairI12StaticModIntIjLj998244353EES2_ESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %25, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %26 unwind label %35

26:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt4pairI12StaticModIntIjLj998244353EES2_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  %27 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsISt6vectorISt4pairI12StaticModIntIjLj998244353EES6_ESaIS7_EEEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %28 unwind label %39

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 144, ptr %8) #6
  invoke void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEEC2ERKSt6vectorISt4pairIS3_S3_ESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(140) %8, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %29 unwind label %43

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %108, %29
  %31 = load i64, ptr %9, align 8, !tbaa !5
  %32 = load i64, ptr %3, align 8, !tbaa !5
  %33 = icmp slt i64 %31, %32
  br i1 %33, label %47, label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %112

35:                                               ; preds = %0
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %6, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %7, align 4
  call void @_ZNSt15__new_allocatorISt4pairI12StaticModIntIjLj998244353EES2_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  br label %116

39:                                               ; preds = %26
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %6, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %7, align 4
  br label %115

43:                                               ; preds = %28
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  br label %114

47:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  invoke void @_Z4scanIxJEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %48 unwind label %59

48:                                               ; preds = %47
  %49 = load i64, ptr %10, align 8, !tbaa !5
  %50 = icmp eq i64 %49, 0
  br i1 %50, label %51, label %72

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  invoke void @_Z4scanIxJxxxEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %52 unwind label %63

52:                                               ; preds = %51
  %53 = load i64, ptr %11, align 8, !tbaa !5
  %54 = trunc i64 %53 to i32
  %55 = load i64, ptr %12, align 8, !tbaa !5
  %56 = trunc i64 %55 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  invoke void @_ZNSt4pairI12StaticModIntIjLj998244353EES1_EC2IRxS4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %57 unwind label %67

57:                                               ; preds = %52
  invoke void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE3setEiiRKSt4pairIS3_S3_E(ptr noundef nonnull align 8 dereferenceable(140) %8, i32 noundef %54, i32 noundef %56, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %58 unwind label %67

58:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %107

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  br label %111

63:                                               ; preds = %51
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  br label %71

67:                                               ; preds = %57, %52
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %6, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %71

71:                                               ; preds = %67, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %111

72:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  invoke void @_Z4scanIxJxxEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %73 unwind label %93

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %74 = load i64, ptr %16, align 8, !tbaa !5
  %75 = trunc i64 %74 to i32
  %76 = load i64, ptr %17, align 8, !tbaa !5
  %77 = trunc i64 %76 to i32
  %78 = invoke i64 @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE4prodEii(ptr noundef nonnull align 8 dereferenceable(140) %8, i32 noundef %75, i32 noundef %77)
          to label %79 unwind label %97

79:                                               ; preds = %73
  store i64 %78, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0E12StaticModIntIjLj998244353EES1_EONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS6_(ptr noundef nonnull align 4 dereferenceable(8) %19) #6
  store ptr %80, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1E12StaticModIntIjLj998244353EES1_EONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS6_(ptr noundef nonnull align 4 dereferenceable(8) %19) #6
  store ptr %81, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %82 = load ptr, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %83 = load i64, ptr %18, align 8, !tbaa !5
  invoke void @_ZN12StaticModIntIjLj998244353EEC2IxTnPNSt9enable_ifIXaasr11is_integralIT_EE5valuesr9is_signedIS3_EE5valueEvE4typeELPv0EEES3_(ptr noundef nonnull align 4 dereferenceable(4) %24, i64 noundef %83)
          to label %84 unwind label %101

84:                                               ; preds = %79
  %85 = invoke i32 @_ZmlRK12StaticModIntIjLj998244353EES2_(ptr noundef nonnull align 4 dereferenceable(4) %82, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %86 unwind label %101

86:                                               ; preds = %84
  %87 = getelementptr inbounds %struct.StaticModInt, ptr %23, i32 0, i32 0
  store i32 %85, ptr %87, align 4
  %88 = load ptr, ptr %21, align 8, !tbaa !9
  %89 = invoke i32 @_ZplRK12StaticModIntIjLj998244353EES2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %88)
          to label %90 unwind label %101

90:                                               ; preds = %86
  %91 = getelementptr inbounds %struct.StaticModInt, ptr %22, i32 0, i32 0
  store i32 %89, ptr %91, align 4
  invoke void @_Z5printI12StaticModIntIjLj998244353EEEvRKT_(ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %92 unwind label %101

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %107

93:                                               ; preds = %72
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %6, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %7, align 4
  br label %106

97:                                               ; preds = %73
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  br label %105

101:                                              ; preds = %90, %86, %84, %79
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %6, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %105

105:                                              ; preds = %101, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %106

106:                                              ; preds = %105, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %111

107:                                              ; preds = %92, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %108

108:                                              ; preds = %107
  %109 = load i64, ptr %9, align 8, !tbaa !5
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %9, align 8, !tbaa !5
  br label %30, !llvm.loop !11

111:                                              ; preds = %106, %71, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(140) %8) #6
  br label %114

112:                                              ; preds = %34
  call void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(140) %8) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %8) #6
  call void @_ZNSt6vectorISt4pairI12StaticModIntIjLj998244353EES2_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %113 = load i32, ptr %1, align 4
  ret i32 %113

114:                                              ; preds = %111, %43
  call void @llvm.lifetime.end.p0(i64 144, ptr %8) #6
  br label %115

115:                                              ; preds = %114, %39
  call void @_ZNSt6vectorISt4pairI12StaticModIntIjLj998244353EES2_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %116

116:                                              ; preds = %115, %35
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %6, align 8
  %119 = load i32, ptr %7, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE3setEiiRKSt4pairIS3_S3_E(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE4prodEii(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef, i32 noundef) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5printI12StaticModIntIjLj998244353EEEvRKT_(ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZplRK12StaticModIntIjLj998244353EES2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZmlRK12StaticModIntIjLj998244353EES2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12StaticModIntIjLj998244353EEC2IxTnPNSt9enable_ifIXaasr11is_integralIT_EE5valuesr9is_signedIS3_EE5valueEvE4typeELPv0EEES3_(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(140)) unnamed_addr #5 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"struct.fastio::Scanner" = type <{ i32, [131073 x i8], [3 x i8], i32, i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.RangeAssignSegmnetTree = type <{ i32, [4 x i8], %struct.LazySegmentTree, %"class.std::vector", i32, [4 x i8] }>
%struct.LazySegmentTree = type { i32, i32, i32, %"class.std::vector", %"class.std::vector.1", %"class.std::vector.6" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *, std::allocator<std::pair<StaticModInt<unsigned int, 998244353>, StaticModInt<unsigned int, 998244353>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"struct.std::pair" = type { %struct.StaticModInt, %struct.StaticModInt }
%struct.StaticModInt = type { i32 }

@_ZN6fastio2scE = external dso_local global %"struct.fastio::Scanner", align 4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %struct.RangeAssignSegmnetTree, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %struct.StaticModInt, align 4
  %17 = alloca %struct.StaticModInt, align 4
  %18 = alloca %struct.StaticModInt, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @_Z4scanIxJxEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %19 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaISt4pairI12StaticModIntIjLj998244353EES1_EEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorISt4pairI12StaticModIntIjLj998244353EES2_ESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %20 unwind label %25

20:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt4pairI12StaticModIntIjLj998244353EES2_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %21 = invoke noundef nonnull align 4 dereferenceable(131089) ptr @_ZN6fastio7ScannerILm131072ELi16EErsISt6vectorISt4pairI12StaticModIntIjLj998244353EES6_ESaIS7_EEEERS1_RT_(ptr noundef nonnull align 4 dereferenceable(131089) @_ZN6fastio2scE, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %22 unwind label %27

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #6
  invoke void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEEC2ERKSt6vectorISt4pairIS3_S3_ESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(140) %5, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %.preheader unwind label %29

.preheader:                                       ; preds = %22
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %73, %.preheader
  call void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(140) %5) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #6
  call void @_ZNSt6vectorISt4pairI12StaticModIntIjLj998244353EES2_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

25:                                               ; preds = %0
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairI12StaticModIntIjLj998244353EES2_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %80

27:                                               ; preds = %20
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %79

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph:                                           ; preds = %.preheader, %73
  %.01322 = phi i64 [ %74, %73 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_Z4scanIxJEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %31 unwind label %42

31:                                               ; preds = %.lr.ph
  %32 = load i64, ptr %6, align 8, !tbaa !5
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %34, label %49

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  invoke void @_Z4scanIxJxxxEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %35 unwind label %44

35:                                               ; preds = %34
  %36 = load i64, ptr %7, align 8, !tbaa !5
  %37 = load i64, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  invoke void @_ZNSt4pairI12StaticModIntIjLj998244353EES1_EC2IRxS4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %38 unwind label %46

38:                                               ; preds = %35
  %39 = trunc i64 %37 to i32
  %40 = trunc i64 %36 to i32
  invoke void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE3setEiiRKSt4pairIS3_S3_E(ptr noundef nonnull align 8 dereferenceable(140) %5, i32 noundef %40, i32 noundef %39, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %41 unwind label %46

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %73

42:                                               ; preds = %.lr.ph
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %77

44:                                               ; preds = %34
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %38, %35
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %48

48:                                               ; preds = %46, %44
  %.pn16 = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %77

49:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  invoke void @_Z4scanIxJxxEEvRT_DpRT0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %50 unwind label %65

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %51 = load i64, ptr %12, align 8, !tbaa !5
  %52 = trunc i64 %51 to i32
  %53 = load i64, ptr %13, align 8, !tbaa !5
  %54 = trunc i64 %53 to i32
  %55 = invoke i64 @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE4prodEii(ptr noundef nonnull align 8 dereferenceable(140) %5, i32 noundef %52, i32 noundef %54)
          to label %56 unwind label %67

56:                                               ; preds = %50
  store i64 %55, ptr %15, align 8
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0E12StaticModIntIjLj998244353EES1_EONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS6_(ptr noundef nonnull align 4 dereferenceable(8) %15) #6
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1E12StaticModIntIjLj998244353EES1_EONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS6_(ptr noundef nonnull align 4 dereferenceable(8) %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %59 = load i64, ptr %14, align 8, !tbaa !5
  call void @_ZN12StaticModIntIjLj998244353EEC2IxTnPNSt9enable_ifIXaasr11is_integralIT_EE5valuesr9is_signedIS3_EE5valueEvE4typeELPv0EEES3_(ptr noundef nonnull align 4 dereferenceable(4) %18, i64 noundef %59)
  %60 = invoke i32 @_ZmlRK12StaticModIntIjLj998244353EES2_(ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %61 unwind label %69

61:                                               ; preds = %56
  store i32 %60, ptr %17, align 4
  %62 = invoke i32 @_ZplRK12StaticModIntIjLj998244353EES2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %58)
          to label %63 unwind label %69

63:                                               ; preds = %61
  store i32 %62, ptr %16, align 4
  invoke void @_Z5printI12StaticModIntIjLj998244353EEEvRKT_(ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %64 unwind label %69

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %73

65:                                               ; preds = %49
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %72

67:                                               ; preds = %50
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %63, %61, %56
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %71

71:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %72

72:                                               ; preds = %71, %65
  %.pn.pn = phi { ptr, i32 } [ %.pn, %71 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %77

73:                                               ; preds = %64, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %74 = add nuw nsw i64 %.01322, 1
  %75 = load i64, ptr %2, align 8, !tbaa !5
  %76 = icmp slt i64 %74, %75
  br i1 %76, label %.lr.ph, label %._crit_edge, !llvm.loop !9

77:                                               ; preds = %72, %48, %42
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %48 ], [ %.pn.pn, %72 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(140) %5) #6
  br label %78

78:                                               ; preds = %77, %29
  %.pn16.pn.pn = phi { ptr, i32 } [ %.pn16.pn, %77 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #6
  br label %79

79:                                               ; preds = %78, %27
  %.pn16.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn, %78 ], [ %28, %27 ]
  call void @_ZNSt6vectorISt4pairI12StaticModIntIjLj998244353EES2_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %80

80:                                               ; preds = %79, %25
  %.pn16.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn.pn, %79 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn16.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE3setEiiRKSt4pairIS3_S3_E(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEE4prodEii(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5printI12StaticModIntIjLj998244353EEEvRKT_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12StaticModIntIjLj998244353EEC2IxTnPNSt9enable_ifIXaasr11is_integralIT_EE5valuesr9is_signedIS3_EE5valueEvE4typeELPv0EEES3_(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN22RangeAssignSegmnetTreeIN6Monoid9CompositeI12StaticModIntIjLj998244353EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(140)) unnamed_addr #5 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass