; LLVM IR from ShahjalalShohag/code-library :: Data Structures (Segment Tree with Arithmetic Progression)

; 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.ST = type { [4040 x %struct.modint], [4040 x %"struct.ST::Int"] }
%struct.modint = type { i32 }
%"struct.ST::Int" = type { %struct.modint, %struct.modint }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl" }
%"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl" = type { %"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::pair" = type { %struct.modint, %struct.modint }

@n = external dso_local global i32, align 4
@t = external dso_local global %struct.ST, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z1Ci(i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca %struct.modint, align 4
  %13 = alloca %struct.modint, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca %struct.modint, align 4
  %18 = alloca %struct.modint, align 4
  %19 = alloca %struct.modint, align 4
  %20 = alloca %struct.modint, align 4
  %21 = alloca %struct.modint, align 4
  %22 = alloca %"struct.std::pair", align 4
  %23 = alloca %struct.modint, align 4
  %24 = alloca %struct.modint, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair", align 4
  %27 = alloca %"struct.std::pair", align 4
  %28 = alloca %struct.modint, align 4
  %29 = alloca %struct.modint, align 4
  %30 = alloca %struct.modint, align 4
  %31 = alloca %struct.modint, align 4
  %32 = alloca %struct.modint, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"struct.std::pair", align 4
  %35 = alloca %"struct.std::pair", align 4
  %36 = alloca %struct.modint, align 4
  %37 = alloca %struct.modint, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %struct.modint, align 4
  %41 = alloca i32, align 4
  %42 = alloca %struct.modint, align 4
  %43 = alloca %struct.modint, align 4
  %44 = alloca %struct.modint, align 4
  store i32 0, ptr %1, align 4
  %45 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %46 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %47 = getelementptr i8, ptr %46, i64 -24
  %48 = load i64, ptr %47, align 8
  %49 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %48
  %50 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %49, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
  %53 = load i32, ptr @n, align 4, !tbaa !8
  %54 = add nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %56 unwind label %62

56:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !8
  br label %57

57:                                               ; preds = %72, %56
  %58 = load i32, ptr %7, align 4, !tbaa !8
  %59 = load i32, ptr @n, align 4, !tbaa !8
  %60 = icmp sle i32 %58, %59
  br i1 %60, label %66, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %79

62:                                               ; preds = %0
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  br label %403

66:                                               ; preds = %57
  %67 = load i32, ptr %7, align 4, !tbaa !8
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %68) #7
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZrsILi1000000007EERSiS0_R6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %69)
          to label %71 unwind label %75

71:                                               ; preds = %66
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %7, align 4, !tbaa !8
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !8
  br label %57, !llvm.loop !11

75:                                               ; preds = %66
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %402

79:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %80

80:                                               ; preds = %354, %79
  %81 = load i32, ptr %8, align 4, !tbaa !8
  %82 = load i32, ptr %2, align 4, !tbaa !8
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %358

85:                                               ; preds = %80
  %86 = load i32, ptr @n, align 4, !tbaa !8
  invoke void @_ZN2ST5buildEiii(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %86)
          to label %87 unwind label %93

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %88

88:                                               ; preds = %326, %87
  %89 = load i32, ptr %10, align 4, !tbaa !8
  %90 = load i32, ptr @n, align 4, !tbaa !8
  %91 = icmp sle i32 %89, %90
  br i1 %91, label %97, label %92

92:                                               ; preds = %88
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %330

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

97:                                               ; preds = %88
  %98 = load i32, ptr @n, align 4, !tbaa !8
  %99 = load i32, ptr %10, align 4, !tbaa !8
  %100 = load i32, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %101 = load i32, ptr %10, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %102) #7
  %104 = load i32, ptr %10, align 4, !tbaa !8
  %105 = sub nsw i32 %104, 1
  %106 = call noundef i32 @_Z1Ci(i32 noundef %105)
  %107 = load i32, ptr @n, align 4, !tbaa !8
  %108 = load i32, ptr %10, align 4, !tbaa !8
  %109 = sub nsw i32 %107, %108
  %110 = call noundef i32 @_Z1Ci(i32 noundef %109)
  %111 = add nsw i32 %106, %110
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef %111)
          to label %112 unwind label %179

112:                                              ; preds = %97
  %113 = getelementptr inbounds %struct.modint, ptr %13, i32 0, i32 0
  %114 = load i32, ptr %113, align 4
  %115 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %103, i32 %114)
          to label %116 unwind label %179

116:                                              ; preds = %112
  %117 = getelementptr inbounds %struct.modint, ptr %12, i32 0, i32 0
  store i32 %115, ptr %117, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !8
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %118 unwind label %183

118:                                              ; preds = %116
  %119 = load i64, ptr %11, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %98, i32 noundef %99, i32 noundef %100, i64 %119)
          to label %120 unwind label %183

120:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %121 = load i32, ptr %10, align 4, !tbaa !8
  %122 = mul nsw i32 %121, 2
  %123 = load i32, ptr @n, align 4, !tbaa !8
  %124 = icmp sle i32 %122, %123
  br i1 %124, label %125, label %228

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %126 = load i32, ptr @n, align 4, !tbaa !8
  %127 = load i32, ptr %10, align 4, !tbaa !8
  %128 = sub nsw i32 %126, %127
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !8
  %130 = load i32, ptr @n, align 4, !tbaa !8
  %131 = load i32, ptr %15, align 4, !tbaa !8
  %132 = load i32, ptr @n, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %133 = load i32, ptr %10, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %134) #7
  %136 = load i32, ptr @n, align 4, !tbaa !8
  %137 = load i32, ptr %15, align 4, !tbaa !8
  %138 = sub nsw i32 %136, %137
  %139 = add nsw i32 %138, 1
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %139)
          to label %140 unwind label %188

140:                                              ; preds = %125
  %141 = getelementptr inbounds %struct.modint, ptr %18, i32 0, i32 0
  %142 = load i32, ptr %141, align 4
  %143 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %135, i32 %142)
          to label %144 unwind label %188

144:                                              ; preds = %140
  %145 = getelementptr inbounds %struct.modint, ptr %17, i32 0, i32 0
  store i32 %143, ptr %145, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 1000000007)
          to label %146 unwind label %192

146:                                              ; preds = %144
  %147 = load i32, ptr %10, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %148) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %149, i64 4, i1 false), !tbaa.struct !13
  %150 = getelementptr inbounds %struct.modint, ptr %21, i32 0, i32 0
  %151 = load i32, ptr %150, align 4
  %152 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %151)
          to label %153 unwind label %192

153:                                              ; preds = %146
  %154 = getelementptr inbounds %struct.modint, ptr %19, i32 0, i32 0
  store i32 %152, ptr %154, align 4
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %155 unwind label %192

155:                                              ; preds = %153
  %156 = load i64, ptr %16, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %130, i32 noundef %131, i32 noundef %132, i64 %156)
          to label %157 unwind label %192

157:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %158 = load i32, ptr %10, align 4, !tbaa !8
  %159 = load i32, ptr %15, align 4, !tbaa !8
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %161, label %206

161:                                              ; preds = %157
  %162 = load i32, ptr @n, align 4, !tbaa !8
  %163 = load i32, ptr %10, align 4, !tbaa !8
  %164 = load i32, ptr %15, align 4, !tbaa !8
  %165 = sub nsw i32 %164, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %166 = load i32, ptr %10, align 4, !tbaa !8
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %167) #7
  %169 = load i32, ptr %10, align 4, !tbaa !8
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 noundef %169)
          to label %170 unwind label %197

170:                                              ; preds = %161
  %171 = getelementptr inbounds %struct.modint, ptr %24, i32 0, i32 0
  %172 = load i32, ptr %171, align 4
  %173 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %168, i32 %172)
          to label %174 unwind label %197

174:                                              ; preds = %170
  %175 = getelementptr inbounds %struct.modint, ptr %23, i32 0, i32 0
  store i32 %173, ptr %175, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !8
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %176 unwind label %201

176:                                              ; preds = %174
  %177 = load i64, ptr %22, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %162, i32 noundef %163, i32 noundef %165, i64 %177)
          to label %178 unwind label %201

178:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %206

179:                                              ; preds = %112, %97
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %5, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %6, align 4
  br label %187

183:                                              ; preds = %118, %116
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %5, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %187

187:                                              ; preds = %183, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %329

188:                                              ; preds = %140, %125
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %5, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %6, align 4
  br label %196

192:                                              ; preds = %155, %153, %146, %144
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %5, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %196

196:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %227

197:                                              ; preds = %170, %161
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %5, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %6, align 4
  br label %205

201:                                              ; preds = %176, %174
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %5, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %205

205:                                              ; preds = %201, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %227

206:                                              ; preds = %178, %157
  %207 = load i32, ptr %10, align 4, !tbaa !8
  %208 = icmp sgt i32 %207, 1
  br i1 %208, label %209, label %226

209:                                              ; preds = %206
  %210 = load i32, ptr @n, align 4, !tbaa !8
  %211 = load i32, ptr %10, align 4, !tbaa !8
  %212 = sub nsw i32 %211, 1
  %213 = load i32, ptr %10, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %214) #7
  %216 = load i32, ptr %10, align 4, !tbaa !8
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %217) #7
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IRS1_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %218)
          to label %219 unwind label %222

219:                                              ; preds = %209
  %220 = load i64, ptr %26, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %210, i32 noundef 1, i32 noundef %212, i64 %220)
          to label %221 unwind label %222

221:                                              ; preds = %219
  br label %226

222:                                              ; preds = %219, %209
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %5, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %6, align 4
  br label %227

226:                                              ; preds = %221, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %325

227:                                              ; preds = %222, %205, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %329

228:                                              ; preds = %120
  %229 = load i32, ptr %10, align 4, !tbaa !8
  %230 = load i32, ptr @n, align 4, !tbaa !8
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %232, label %270

232:                                              ; preds = %228
  %233 = load i32, ptr @n, align 4, !tbaa !8
  %234 = load i32, ptr %10, align 4, !tbaa !8
  %235 = add nsw i32 %234, 1
  %236 = load i32, ptr @n, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %237 = load i32, ptr %10, align 4, !tbaa !8
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %238) #7
  %240 = load i32, ptr @n, align 4, !tbaa !8
  %241 = load i32, ptr %10, align 4, !tbaa !8
  %242 = sub nsw i32 %240, %241
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %29, i32 noundef %242)
          to label %243 unwind label %261

243:                                              ; preds = %232
  %244 = getelementptr inbounds %struct.modint, ptr %29, i32 0, i32 0
  %245 = load i32, ptr %244, align 4
  %246 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %239, i32 %245)
          to label %247 unwind label %261

247:                                              ; preds = %243
  %248 = getelementptr inbounds %struct.modint, ptr %28, i32 0, i32 0
  store i32 %246, ptr %248, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 1000000007)
          to label %249 unwind label %265

249:                                              ; preds = %247
  %250 = load i32, ptr %10, align 4, !tbaa !8
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %251) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %252, i64 4, i1 false), !tbaa.struct !13
  %253 = getelementptr inbounds %struct.modint, ptr %32, i32 0, i32 0
  %254 = load i32, ptr %253, align 4
  %255 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 %254)
          to label %256 unwind label %265

256:                                              ; preds = %249
  %257 = getelementptr inbounds %struct.modint, ptr %30, i32 0, i32 0
  store i32 %255, ptr %257, align 4
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %258 unwind label %265

258:                                              ; preds = %256
  %259 = load i64, ptr %27, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %233, i32 noundef %235, i32 noundef %236, i64 %259)
          to label %260 unwind label %265

260:                                              ; preds = %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %270

261:                                              ; preds = %243, %232
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %5, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %6, align 4
  br label %269

265:                                              ; preds = %258, %256, %249, %247
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %5, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %269

269:                                              ; preds = %265, %261
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %329

270:                                              ; preds = %260, %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %271 = load i32, ptr @n, align 4, !tbaa !8
  %272 = load i32, ptr %10, align 4, !tbaa !8
  %273 = sub nsw i32 %271, %272
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %33, align 4, !tbaa !8
  %275 = load i32, ptr @n, align 4, !tbaa !8
  %276 = load i32, ptr %33, align 4, !tbaa !8
  %277 = load i32, ptr %10, align 4, !tbaa !8
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %278) #7
  %280 = load i32, ptr %10, align 4, !tbaa !8
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %281) #7
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IRS1_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %279, ptr noundef nonnull align 4 dereferenceable(4) %282)
          to label %283 unwind label %310

283:                                              ; preds = %270
  %284 = load i64, ptr %34, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %275, i32 noundef 1, i32 noundef %276, i64 %284)
          to label %285 unwind label %310

285:                                              ; preds = %283
  %286 = load i32, ptr %33, align 4, !tbaa !8
  %287 = load i32, ptr %10, align 4, !tbaa !8
  %288 = icmp slt i32 %286, %287
  br i1 %288, label %289, label %323

289:                                              ; preds = %285
  %290 = load i32, ptr @n, align 4, !tbaa !8
  %291 = load i32, ptr %33, align 4, !tbaa !8
  %292 = add nsw i32 %291, 1
  %293 = load i32, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %294 = load i32, ptr %10, align 4, !tbaa !8
  %295 = sext i32 %294 to i64
  %296 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %295) #7
  %297 = load i32, ptr @n, align 4, !tbaa !8
  %298 = load i32, ptr %10, align 4, !tbaa !8
  %299 = sub nsw i32 %297, %298
  %300 = add nsw i32 %299, 1
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %37, i32 noundef %300)
          to label %301 unwind label %314

301:                                              ; preds = %289
  %302 = getelementptr inbounds %struct.modint, ptr %37, i32 0, i32 0
  %303 = load i32, ptr %302, align 4
  %304 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %296, i32 %303)
          to label %305 unwind label %314

305:                                              ; preds = %301
  %306 = getelementptr inbounds %struct.modint, ptr %36, i32 0, i32 0
  store i32 %304, ptr %306, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 0, ptr %38, align 4, !tbaa !8
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %307 unwind label %318

307:                                              ; preds = %305
  %308 = load i64, ptr %35, align 4
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %290, i32 noundef %292, i32 noundef %293, i64 %308)
          to label %309 unwind label %318

309:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %323

310:                                              ; preds = %283, %270
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %5, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %6, align 4
  br label %324

314:                                              ; preds = %301, %289
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %5, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %6, align 4
  br label %322

318:                                              ; preds = %307, %305
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %5, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %322

322:                                              ; preds = %318, %314
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %324

323:                                              ; preds = %309, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %325

324:                                              ; preds = %322, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %329

325:                                              ; preds = %323, %226
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %10, align 4, !tbaa !8
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %10, align 4, !tbaa !8
  br label %88, !llvm.loop !14

329:                                              ; preds = %324, %269, %227, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %357

330:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 1, ptr %39, align 4, !tbaa !8
  br label %331

331:                                              ; preds = %346, %330
  %332 = load i32, ptr %39, align 4, !tbaa !8
  %333 = load i32, ptr @n, align 4, !tbaa !8
  %334 = icmp sle i32 %332, %333
  br i1 %334, label %336, label %335

335:                                              ; preds = %331
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %353

336:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %337 = load i32, ptr @n, align 4, !tbaa !8
  %338 = load i32, ptr %39, align 4, !tbaa !8
  %339 = load i32, ptr %39, align 4, !tbaa !8
  %340 = invoke i32 @_ZN2ST5queryEiiiii(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %337, i32 noundef %338, i32 noundef %339)
          to label %341 unwind label %349

341:                                              ; preds = %336
  %342 = getelementptr inbounds %struct.modint, ptr %40, i32 0, i32 0
  store i32 %340, ptr %342, align 4
  %343 = load i32, ptr %39, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %344) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %345, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %346

346:                                              ; preds = %341
  %347 = load i32, ptr %39, align 4, !tbaa !8
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %39, align 4, !tbaa !8
  br label %331, !llvm.loop !15

349:                                              ; preds = %336
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %5, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %357

353:                                              ; preds = %335
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr %8, align 4, !tbaa !8
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %8, align 4, !tbaa !8
  br label %80, !llvm.loop !16

357:                                              ; preds = %349, %329, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %402

358:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 1, ptr %41, align 4, !tbaa !8
  br label %359

359:                                              ; preds = %387, %358
  %360 = load i32, ptr %41, align 4, !tbaa !8
  %361 = load i32, ptr @n, align 4, !tbaa !8
  %362 = icmp sle i32 %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %359
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %394

364:                                              ; preds = %359
  %365 = load i32, ptr %41, align 4, !tbaa !8
  %366 = sext i32 %365 to i64
  %367 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %366) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %368 = load i32, ptr @n, align 4, !tbaa !8
  %369 = call noundef i32 @_Z1Ci(i32 noundef %368)
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 noundef %369)
          to label %370 unwind label %390

370:                                              ; preds = %364
  %371 = load i32, ptr %2, align 4, !tbaa !8
  %372 = sext i32 %371 to i64
  %373 = invoke i32 @_ZNK6modintILi1000000007EE3powEm(ptr noundef nonnull align 4 dereferenceable(4) %44, i64 noundef %372)
          to label %374 unwind label %390

374:                                              ; preds = %370
  %375 = getelementptr inbounds %struct.modint, ptr %43, i32 0, i32 0
  store i32 %373, ptr %375, align 4
  %376 = getelementptr inbounds %struct.modint, ptr %43, i32 0, i32 0
  %377 = load i32, ptr %376, align 4
  %378 = invoke i32 @_ZNK6modintILi1000000007EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %367, i32 %377)
          to label %379 unwind label %390

379:                                              ; preds = %374
  %380 = getelementptr inbounds %struct.modint, ptr %42, i32 0, i32 0
  store i32 %378, ptr %380, align 4
  %381 = getelementptr inbounds %struct.modint, ptr %42, i32 0, i32 0
  %382 = load i32, ptr %381, align 4
  %383 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILi1000000007EERSoS0_6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %382)
          to label %384 unwind label %390

384:                                              ; preds = %379
  %385 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %383, i8 noundef signext 32)
          to label %386 unwind label %390

386:                                              ; preds = %384
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %387

387:                                              ; preds = %386
  %388 = load i32, ptr %41, align 4, !tbaa !8
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %41, align 4, !tbaa !8
  br label %359, !llvm.loop !17

390:                                              ; preds = %384, %379, %374, %370, %364
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %5, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %402

394:                                              ; preds = %363
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %396 unwind label %398

396:                                              ; preds = %394
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %397 = load i32, ptr %1, align 4
  ret i32 %397

398:                                              ; preds = %394
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %5, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %6, align 4
  br label %402

402:                                              ; preds = %398, %390, %357, %75
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %403

403:                                              ; preds = %402, %62
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %404

404:                                              ; preds = %403
  %405 = load ptr, ptr %5, align 8
  %406 = load i32, ptr %6, align 4
  %407 = insertvalue { ptr, i32 } poison, ptr %405, 0
  %408 = insertvalue { ptr, i32 } %407, i32 %406, 1
  resume { ptr, i32 } %408
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS2_(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) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZrsILi1000000007EERSiS0_R6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

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

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

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

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

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

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

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

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


; 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.ST = type { [4040 x %struct.modint], [4040 x %"struct.ST::Int"] }
%struct.modint = type { i32 }
%"struct.ST::Int" = type { %struct.modint, %struct.modint }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl" }
%"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl" = type { %"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<modint<1000000007>, std::allocator<modint<1000000007>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::pair" = type { %struct.modint, %struct.modint }

@n = external dso_local global i32, align 4
@t = external dso_local global %struct.ST, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z1Ci(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %struct.modint, align 4
  %6 = alloca %struct.modint, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %struct.modint, align 4
  %10 = alloca %struct.modint, align 4
  %11 = alloca %struct.modint, align 4
  %12 = alloca %struct.modint, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %struct.modint, align 4
  %15 = alloca %struct.modint, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %struct.modint, align 4
  %20 = alloca %struct.modint, align 4
  %21 = alloca %struct.modint, align 4
  %22 = alloca %struct.modint, align 4
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"struct.std::pair", align 8
  %25 = alloca %struct.modint, align 4
  %26 = alloca %struct.modint, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.modint, align 4
  %29 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %30 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %32
  %34 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %33, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %35 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %37 = load i32, ptr @n, align 4, !tbaa !8
  %38 = add nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %39, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %40 unwind label %45

40:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %41 = load i32, ptr @n, align 4, !tbaa !8
  %.not103 = icmp slt i32 %41, 1
  br i1 %.not103, label %.preheader102, label %.lr.ph

.preheader102:                                    ; preds = %49, %40
  %42 = phi i32 [ %41, %40 ], [ %50, %49 ]
  %43 = load i32, ptr %1, align 4, !tbaa !8
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph112, label %.preheader

45:                                               ; preds = %0
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %214

.lr.ph:                                           ; preds = %40, %49
  %indvars.iv = phi i64 [ %indvars.iv.next, %49 ], [ 1, %40 ]
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #6
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZrsILi1000000007EERSiS0_R6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %49 unwind label %52

49:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = load i32, ptr @n, align 4, !tbaa !8
  %51 = sext i32 %50 to i64
  %.not.not = icmp slt i64 %indvars.iv, %51
  br i1 %.not.not, label %.lr.ph, label %.preheader102, !llvm.loop !11

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %213

.preheader:                                       ; preds = %._crit_edge, %.preheader102
  %54 = phi i32 [ %42, %.preheader102 ], [ %179, %._crit_edge ]
  %.not78113 = icmp slt i32 %54, 1
  br i1 %.not78113, label %._crit_edge116, label %.lr.ph115

.lr.ph112:                                        ; preds = %.preheader102, %._crit_edge
  %55 = phi i32 [ %179, %._crit_edge ], [ %42, %.preheader102 ]
  %.071111 = phi i32 [ %180, %._crit_edge ], [ 0, %.preheader102 ]
  invoke void @_ZN2ST5buildEiii(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %55)
          to label %.preheader101 unwind label %57

.preheader101:                                    ; preds = %.lr.ph112
  %56 = load i32, ptr @n, align 4, !tbaa !8
  %.not79105 = icmp slt i32 %56, 1
  br i1 %.not79105, label %._crit_edge, label %.lr.ph107

.preheader100:                                    ; preds = %176
  %.not80108 = icmp slt i32 %177, 1
  br i1 %.not80108, label %._crit_edge, label %.lr.ph110

57:                                               ; preds = %.lr.ph112
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %213

.lr.ph107:                                        ; preds = %.preheader101, %176
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %176 ], [ 1, %.preheader101 ]
  %59 = phi i32 [ %177, %176 ], [ %56, %.preheader101 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %61 = trunc i64 %indvars.iv118 to i32
  %62 = add i32 %61, -1
  %63 = call noundef i32 @_Z1Ci(i32 noundef %62)
  %64 = load i32, ptr @n, align 4, !tbaa !8
  %65 = trunc nuw nsw i64 %indvars.iv118 to i32
  %66 = sub nsw i32 %64, %65
  %67 = call noundef i32 @_Z1Ci(i32 noundef %66)
  %68 = add nsw i32 %67, %63
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %68)
  %69 = load i32, ptr %6, align 4
  %70 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %60, i32 %69)
          to label %71 unwind label %101

71:                                               ; preds = %.lr.ph107
  store i32 %70, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 0, ptr %7, align 4, !tbaa !8
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %72 unwind label %103

72:                                               ; preds = %71
  %73 = load i64, ptr %4, align 8
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %59, i32 noundef %65, i32 noundef %65, i64 %73)
          to label %74 unwind label %103

74:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %75 = load i32, ptr @n, align 4, !tbaa !8
  %indvars.iv118.tr = trunc i64 %indvars.iv118 to i32
  %76 = shl i32 %indvars.iv118.tr, 1
  %.not82 = icmp sgt i32 %76, %75
  br i1 %.not82, label %125, label %77

77:                                               ; preds = %74
  %78 = sub nsw i32 %75, %65
  %79 = add nsw i32 %78, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %81 = load i32, ptr @n, align 4, !tbaa !8
  %82 = sub i32 %81, %78
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %82)
  %83 = load i32, ptr %10, align 4
  %84 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %80, i32 %83)
          to label %85 unwind label %106

85:                                               ; preds = %77
  store i32 %84, ptr %9, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 1000000007)
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %.sroa.014.0.copyload = load i32, ptr %86, align 4, !tbaa !8
  %87 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.014.0.copyload)
          to label %88 unwind label %108

88:                                               ; preds = %85
  store i32 %87, ptr %11, align 4
  call void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %89 = load i64, ptr %8, align 8
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %75, i32 noundef %79, i32 noundef %75, i64 %89)
          to label %90 unwind label %108

90:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %91 = sext i32 %78 to i64
  %.not90 = icmp sgt i64 %indvars.iv118, %91
  br i1 %.not90, label %116, label %92

92:                                               ; preds = %90
  %93 = load i32, ptr @n, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %65)
  %95 = load i32, ptr %15, align 4
  %96 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %94, i32 %95)
          to label %97 unwind label %111

97:                                               ; preds = %92
  store i32 %96, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 0, ptr %16, align 4, !tbaa !8
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %98 unwind label %113

98:                                               ; preds = %97
  %99 = load i64, ptr %13, align 8
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %93, i32 noundef %65, i32 noundef %78, i64 %99)
          to label %100 unwind label %113

100:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %116

101:                                              ; preds = %.lr.ph107
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %105

103:                                              ; preds = %72, %71
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %105

105:                                              ; preds = %103, %101
  %.pn = phi { ptr, i32 } [ %104, %103 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %213

106:                                              ; preds = %77
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %88, %85
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %110

110:                                              ; preds = %108, %106
  %.pn88 = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %213

111:                                              ; preds = %92
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %115

113:                                              ; preds = %98, %97
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %115

115:                                              ; preds = %113, %111
  %.pn91 = phi { ptr, i32 } [ %114, %113 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %213

116:                                              ; preds = %100, %90
  %117 = icmp ugt i64 %indvars.iv118, 1
  br i1 %117, label %118, label %176

118:                                              ; preds = %116
  %119 = load i32, ptr @n, align 4, !tbaa !8
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  call void @_ZNSt4pairI6modintILi1000000007EES1_EC2IRS1_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %120, ptr noundef nonnull align 4 dereferenceable(4) %121)
  %122 = load i64, ptr %17, align 8
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %119, i32 noundef 1, i32 noundef %62, i64 %122)
          to label %176 unwind label %123

123:                                              ; preds = %118
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %213

125:                                              ; preds = %74
  %126 = sext i32 %75 to i64
  %127 = icmp slt i64 %indvars.iv118, %126
  br i1 %127, label %128, label %147

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %130 = load i32, ptr @n, align 4, !tbaa !8
  %131 = sub nsw i32 %130, %65
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %131)
  %132 = load i32, ptr %20, align 4
  %133 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %129, i32 %132)
          to label %134 unwind label %142

134:                                              ; preds = %128
  store i32 %133, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef 1000000007)
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %.sroa.013.0.copyload = load i32, ptr %135, align 4, !tbaa !8
  %136 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 %.sroa.013.0.copyload)
          to label %137 unwind label %144

137:                                              ; preds = %134
  store i32 %136, ptr %21, align 4
  call void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %138 = load i64, ptr %18, align 8
  %139 = trunc i64 %indvars.iv118 to i32
  %140 = add i32 %139, 1
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %75, i32 noundef %140, i32 noundef %75, i64 %138)
          to label %141 unwind label %144

141:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %147

142:                                              ; preds = %128
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %137, %134
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  br label %146

146:                                              ; preds = %144, %142
  %.pn83 = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  br label %213

147:                                              ; preds = %141, %125
  %148 = phi i32 [ %.pre, %141 ], [ %75, %125 ]
  %149 = sub nsw i32 %148, %65
  %150 = add nsw i32 %149, 1
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  call void @_ZNSt4pairI6modintILi1000000007EES1_EC2IRS1_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %151, ptr noundef nonnull align 4 dereferenceable(4) %152)
  %153 = load i64, ptr %23, align 8
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %148, i32 noundef 1, i32 noundef %150, i64 %153)
          to label %154 unwind label %169

154:                                              ; preds = %147
  %155 = sext i32 %150 to i64
  %156 = icmp sgt i64 %indvars.iv118, %155
  br i1 %156, label %157, label %176

157:                                              ; preds = %154
  %158 = load i32, ptr @n, align 4, !tbaa !8
  %159 = add nsw i32 %149, 2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv118) #6
  %161 = load i32, ptr @n, align 4, !tbaa !8
  %reass.sub = sub i32 %161, %65
  %162 = add i32 %reass.sub, 1
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 noundef %162)
  %163 = load i32, ptr %26, align 4
  %164 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %160, i32 %163)
          to label %165 unwind label %171

165:                                              ; preds = %157
  store i32 %164, ptr %25, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  store i32 0, ptr %27, align 4, !tbaa !8
  invoke void @_ZNSt4pairI6modintILi1000000007EES1_EC2IS1_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %166 unwind label %173

166:                                              ; preds = %165
  %167 = load i64, ptr %24, align 8
  invoke void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %158, i32 noundef %159, i32 noundef %65, i64 %167)
          to label %168 unwind label %173

168:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  br label %176

169:                                              ; preds = %147
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %213

171:                                              ; preds = %157
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %166, %165
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  br label %175

175:                                              ; preds = %173, %171
  %.pn85 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  br label %213

176:                                              ; preds = %154, %168, %116, %118
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %177 = load i32, ptr @n, align 4, !tbaa !8
  %178 = sext i32 %177 to i64
  %.not79.not = icmp slt i64 %indvars.iv118, %178
  br i1 %.not79.not, label %.lr.ph107, label %.preheader100, !llvm.loop !13

._crit_edge:                                      ; preds = %186, %.preheader101, %.preheader100
  %179 = phi i32 [ %177, %.preheader100 ], [ %56, %.preheader101 ], [ %188, %186 ]
  %180 = add nuw nsw i32 %.071111, 1
  %181 = load i32, ptr %1, align 4, !tbaa !8
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %.lr.ph112, label %.preheader, !llvm.loop !14

.lr.ph110:                                        ; preds = %.preheader100, %186
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %186 ], [ 1, %.preheader100 ]
  %183 = phi i32 [ %188, %186 ], [ %177, %.preheader100 ]
  %184 = trunc nuw nsw i64 %indvars.iv121 to i32
  %185 = invoke i32 @_ZN2ST5queryEiiiii(ptr noundef nonnull align 4 dereferenceable(48480) @t, i32 noundef 1, i32 noundef 1, i32 noundef %183, i32 noundef %184, i32 noundef %184)
          to label %186 unwind label %190

186:                                              ; preds = %.lr.ph110
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv121) #6
  store i32 %185, ptr %187, align 4, !tbaa !8
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %188 = load i32, ptr @n, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %.not80.not = icmp slt i64 %indvars.iv121, %189
  br i1 %.not80.not, label %.lr.ph110, label %._crit_edge, !llvm.loop !15

190:                                              ; preds = %.lr.ph110
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %213

._crit_edge116:                                   ; preds = %205, %.preheader
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %210 unwind label %211

.lr.ph115:                                        ; preds = %.preheader, %205
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %205 ], [ 1, %.preheader ]
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv124) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  %194 = load i32, ptr @n, align 4, !tbaa !8
  %195 = call noundef i32 @_Z1Ci(i32 noundef %194)
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 noundef %195)
  %196 = load i32, ptr %1, align 4, !tbaa !8
  %197 = sext i32 %196 to i64
  %198 = invoke i32 @_ZNK6modintILi1000000007EE3powEm(ptr noundef nonnull align 4 dereferenceable(4) %28, i64 noundef %197)
          to label %199 unwind label %208

199:                                              ; preds = %.lr.ph115
  %200 = invoke i32 @_ZNK6modintILi1000000007EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %193, i32 %198)
          to label %201 unwind label %208

201:                                              ; preds = %199
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILi1000000007EERSoS0_6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %200)
          to label %203 unwind label %208

203:                                              ; preds = %201
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %202, i8 noundef signext 32)
          to label %205 unwind label %208

205:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %206 = load i32, ptr @n, align 4, !tbaa !8
  %207 = sext i32 %206 to i64
  %.not78.not = icmp slt i64 %indvars.iv124, %207
  br i1 %.not78.not, label %.lr.ph115, label %._crit_edge116, !llvm.loop !16

208:                                              ; preds = %203, %201, %199, %.lr.ph115
  %209 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  br label %213

210:                                              ; preds = %._crit_edge116
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

211:                                              ; preds = %._crit_edge116
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %213

213:                                              ; preds = %57, %190, %169, %175, %110, %115, %123, %146, %105, %211, %208, %52
  %.pn97 = phi { ptr, i32 } [ %53, %52 ], [ %209, %208 ], [ %212, %211 ], [ %191, %190 ], [ %58, %57 ], [ %.pn83, %146 ], [ %.pn, %105 ], [ %124, %123 ], [ %.pn91, %115 ], [ %.pn88, %110 ], [ %.pn85, %175 ], [ %170, %169 ]
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %214

214:                                              ; preds = %213, %45
  %.pn97.pn = phi { ptr, i32 } [ %.pn97, %213 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn97.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS2_(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) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ST3updEiiiiiSt4pairI6modintILi1000000007EES2_E(ptr noundef nonnull align 4 dereferenceable(48480), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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