; LLVM IR from ShahjalalShohag/code-library :: Math (Lagrange Interpolation)

; 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.modint = type { i32 }
%"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 }

; Function Attrs: mustprogress uwtable
define dso_local i32 @_Z8LagrangeRKSt6vectorI6modintILi1000000007EESaIS1_EES1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 %1, i32 %2, i32 %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.modint, align 4
  %6 = alloca %struct.modint, align 4
  %7 = alloca %struct.modint, align 4
  %8 = alloca %struct.modint, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.modint, align 4
  %12 = alloca %struct.modint, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %struct.modint, align 4
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %struct.modint, align 4
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca i32, align 4
  %23 = alloca %struct.modint, align 4
  %24 = alloca %struct.modint, align 4
  %25 = alloca %struct.modint, align 4
  %26 = alloca %struct.modint, align 4
  %27 = alloca %struct.modint, align 4
  %28 = alloca i32, 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 %struct.modint, align 4
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca %struct.modint, align 4
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca %struct.modint, align 4
  %39 = alloca %"class.std::allocator", align 1
  %40 = alloca i32, align 4
  %41 = alloca %struct.modint, align 4
  %42 = alloca %struct.modint, align 4
  %43 = alloca %struct.modint, align 4
  %44 = alloca %struct.modint, align 4
  %45 = alloca %struct.modint, align 4
  %46 = alloca %struct.modint, align 4
  %47 = alloca i32, align 4
  %48 = alloca %struct.modint, align 4
  %49 = alloca %struct.modint, align 4
  %50 = alloca %struct.modint, align 4
  %51 = alloca %struct.modint, align 4
  %52 = alloca i32, align 4
  %53 = alloca %struct.modint, align 4
  %54 = alloca %struct.modint, align 4
  %55 = alloca %struct.modint, align 4
  %56 = alloca %struct.modint, align 4
  %57 = alloca %struct.modint, align 4
  %58 = alloca %struct.modint, align 4
  %59 = alloca %struct.modint, align 4
  %60 = alloca %struct.modint, align 4
  %61 = alloca %struct.modint, align 4
  %62 = alloca %struct.modint, align 4
  %63 = getelementptr inbounds %struct.modint, ptr %6, i32 0, i32 0
  store i32 %1, ptr %63, align 4
  %64 = getelementptr inbounds %struct.modint, ptr %7, i32 0, i32 0
  store i32 %2, ptr %64, align 4
  %65 = getelementptr inbounds %struct.modint, ptr %8, i32 0, i32 0
  store i32 %3, ptr %65, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call noundef i64 @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #6
  %68 = sub i64 %67, 1
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %10, align 4, !tbaa !9
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef 0)
  %70 = getelementptr inbounds %struct.modint, ptr %11, i32 0, i32 0
  %71 = load i32, ptr %70, align 4
  %72 = call noundef zeroext i1 @_ZNK6modintILi1000000007EEeqES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %71)
  br i1 %72, label %73, label %88

73:                                               ; preds = %4
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 1)
  %74 = getelementptr inbounds %struct.modint, ptr %12, i32 0, i32 0
  %75 = load i32, ptr %74, align 4
  %76 = call noundef zeroext i1 @_ZNK6modintILi1000000007EEeqES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %75)
  br i1 %76, label %77, label %88

77:                                               ; preds = %73
  %78 = getelementptr inbounds %struct.modint, ptr %6, i32 0, i32 0
  %79 = load i32, ptr %78, align 4, !tbaa !11
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %82, label %88

82:                                               ; preds = %77
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.modint, ptr %6, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %86) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %87, i64 4, i1 false), !tbaa.struct !13
  store i32 1, ptr %13, align 4
  br label %386

88:                                               ; preds = %77, %73, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %91, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %92 unwind label %103

92:                                               ; preds = %88
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 1)
          to label %96 unwind label %107

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %95, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %97 unwind label %111

97:                                               ; preds = %96
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %146, %97
  %99 = load i32, ptr %22, align 4, !tbaa !9
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %116, label %102

102:                                              ; preds = %98
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %153

103:                                              ; preds = %88
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %17, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %18, align 4
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %385

107:                                              ; preds = %92
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %17, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %18, align 4
  br label %115

111:                                              ; preds = %96
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %17, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %18, align 4
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %115

115:                                              ; preds = %111, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %384

116:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %117 = load i32, ptr %22, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %118) #6
  %120 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef %120)
          to label %121 unwind label %149

121:                                              ; preds = %116
  %122 = getelementptr inbounds %struct.modint, ptr %27, i32 0, i32 0
  %123 = load i32, ptr %122, align 4
  %124 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %123)
          to label %125 unwind label %149

125:                                              ; preds = %121
  %126 = getelementptr inbounds %struct.modint, ptr %26, i32 0, i32 0
  store i32 %124, ptr %126, align 4
  %127 = getelementptr inbounds %struct.modint, ptr %26, i32 0, i32 0
  %128 = load i32, ptr %127, align 4
  %129 = invoke i32 @_ZNK6modintILi1000000007EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %128)
          to label %130 unwind label %149

130:                                              ; preds = %125
  %131 = getelementptr inbounds %struct.modint, ptr %25, i32 0, i32 0
  store i32 %129, ptr %131, align 4
  %132 = getelementptr inbounds %struct.modint, ptr %25, i32 0, i32 0
  %133 = load i32, ptr %132, align 4
  %134 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %133)
          to label %135 unwind label %149

135:                                              ; preds = %130
  %136 = getelementptr inbounds %struct.modint, ptr %24, i32 0, i32 0
  store i32 %134, ptr %136, align 4
  %137 = getelementptr inbounds %struct.modint, ptr %24, i32 0, i32 0
  %138 = load i32, ptr %137, align 4
  %139 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %119, i32 %138)
          to label %140 unwind label %149

140:                                              ; preds = %135
  %141 = getelementptr inbounds %struct.modint, ptr %23, i32 0, i32 0
  store i32 %139, ptr %141, align 4
  %142 = load i32, ptr %22, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %144) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %145, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %146

146:                                              ; preds = %140
  %147 = load i32, ptr %22, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %22, align 4, !tbaa !9
  br label %98, !llvm.loop !14

149:                                              ; preds = %135, %130, %125, %121, %116
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %17, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %383

153:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %154 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %154, ptr %28, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %189, %153
  %156 = load i32, ptr %28, align 4, !tbaa !9
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %196

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %160 = load i32, ptr %28, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %161) #6
  %163 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %33, i32 noundef %163)
          to label %164 unwind label %192

164:                                              ; preds = %159
  %165 = getelementptr inbounds %struct.modint, ptr %33, i32 0, i32 0
  %166 = load i32, ptr %165, align 4
  %167 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %166)
          to label %168 unwind label %192

168:                                              ; preds = %164
  %169 = getelementptr inbounds %struct.modint, ptr %32, i32 0, i32 0
  store i32 %167, ptr %169, align 4
  %170 = getelementptr inbounds %struct.modint, ptr %32, i32 0, i32 0
  %171 = load i32, ptr %170, align 4
  %172 = invoke i32 @_ZNK6modintILi1000000007EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %171)
          to label %173 unwind label %192

173:                                              ; preds = %168
  %174 = getelementptr inbounds %struct.modint, ptr %31, i32 0, i32 0
  store i32 %172, ptr %174, align 4
  %175 = getelementptr inbounds %struct.modint, ptr %31, i32 0, i32 0
  %176 = load i32, ptr %175, align 4
  %177 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %176)
          to label %178 unwind label %192

178:                                              ; preds = %173
  %179 = getelementptr inbounds %struct.modint, ptr %30, i32 0, i32 0
  store i32 %177, ptr %179, align 4
  %180 = getelementptr inbounds %struct.modint, ptr %30, i32 0, i32 0
  %181 = load i32, ptr %180, align 4
  %182 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %162, i32 %181)
          to label %183 unwind label %192

183:                                              ; preds = %178
  %184 = getelementptr inbounds %struct.modint, ptr %29, i32 0, i32 0
  store i32 %182, ptr %184, align 4
  %185 = load i32, ptr %28, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %187) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %188, ptr align 4 %29, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %189

189:                                              ; preds = %183
  %190 = load i32, ptr %28, align 4, !tbaa !9
  %191 = add nsw i32 %190, -1
  store i32 %191, ptr %28, align 4, !tbaa !9
  br label %155, !llvm.loop !16

192:                                              ; preds = %178, %173, %168, %164, %159
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %17, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %383

196:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %35, i32 noundef 1)
          to label %200 unwind label %212

200:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %199, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %201 unwind label %216

201:                                              ; preds = %200
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #6
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 noundef 1)
          to label %205 unwind label %221

205:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %204, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %206 unwind label %225

206:                                              ; preds = %205
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 1, ptr %40, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %250, %206
  %208 = load i32, ptr %40, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = icmp sle i32 %208, %209
  br i1 %210, label %230, label %211

211:                                              ; preds = %207
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %257

212:                                              ; preds = %196
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %17, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %18, align 4
  br label %220

216:                                              ; preds = %200
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %17, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %18, align 4
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  br label %220

220:                                              ; preds = %216, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %382

221:                                              ; preds = %201
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %17, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %18, align 4
  br label %229

225:                                              ; preds = %205
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %17, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %18, align 4
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  br label %229

229:                                              ; preds = %225, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %381

230:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %231 = load i32, ptr %40, align 4, !tbaa !9
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %233) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !13
  %235 = getelementptr inbounds %struct.modint, ptr %43, i32 0, i32 0
  %236 = load i32, ptr %235, align 4
  %237 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %234, i32 %236)
          to label %238 unwind label %253

238:                                              ; preds = %230
  %239 = getelementptr inbounds %struct.modint, ptr %42, i32 0, i32 0
  store i32 %237, ptr %239, align 4
  %240 = load i32, ptr %40, align 4, !tbaa !9
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 noundef %240)
          to label %241 unwind label %253

241:                                              ; preds = %238
  %242 = getelementptr inbounds %struct.modint, ptr %44, i32 0, i32 0
  %243 = load i32, ptr %242, align 4
  %244 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %42, i32 %243)
          to label %245 unwind label %253

245:                                              ; preds = %241
  %246 = getelementptr inbounds %struct.modint, ptr %41, i32 0, i32 0
  store i32 %244, ptr %246, align 4
  %247 = load i32, ptr %40, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %248) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %249, ptr align 4 %41, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %250

250:                                              ; preds = %245
  %251 = load i32, ptr %40, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %40, align 4, !tbaa !9
  br label %207, !llvm.loop !17

253:                                              ; preds = %241, %238, %230
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %17, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %380

257:                                              ; preds = %211
  %258 = load i32, ptr %10, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %259) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %260, i64 4, i1 false), !tbaa.struct !13
  %261 = load i32, ptr %10, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %262) #6
  %264 = getelementptr inbounds %struct.modint, ptr %45, i32 0, i32 0
  %265 = load i32, ptr %264, align 4
  %266 = invoke i32 @_ZN6modintILi1000000007EEdVES0_(ptr noundef nonnull align 4 dereferenceable(4) %263, i32 %265)
          to label %267 unwind label %274

267:                                              ; preds = %257
  %268 = getelementptr inbounds %struct.modint, ptr %46, i32 0, i32 0
  store i32 %266, ptr %268, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %269 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %269, ptr %47, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %298, %267
  %271 = load i32, ptr %47, align 4, !tbaa !9
  %272 = icmp sge i32 %271, 1
  br i1 %272, label %278, label %273

273:                                              ; preds = %270
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %305

274:                                              ; preds = %305, %257
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %17, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %18, align 4
  br label %380

278:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  %279 = load i32, ptr %47, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %280) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !13
  %282 = getelementptr inbounds %struct.modint, ptr %50, i32 0, i32 0
  %283 = load i32, ptr %282, align 4
  %284 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %281, i32 %283)
          to label %285 unwind label %301

285:                                              ; preds = %278
  %286 = getelementptr inbounds %struct.modint, ptr %49, i32 0, i32 0
  store i32 %284, ptr %286, align 4
  %287 = load i32, ptr %47, align 4, !tbaa !9
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %51, i32 noundef %287)
          to label %288 unwind label %301

288:                                              ; preds = %285
  %289 = getelementptr inbounds %struct.modint, ptr %51, i32 0, i32 0
  %290 = load i32, ptr %289, align 4
  %291 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %49, i32 %290)
          to label %292 unwind label %301

292:                                              ; preds = %288
  %293 = getelementptr inbounds %struct.modint, ptr %48, i32 0, i32 0
  store i32 %291, ptr %293, align 4
  %294 = load i32, ptr %47, align 4, !tbaa !9
  %295 = sub nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %296) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %297, ptr align 4 %48, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  br label %298

298:                                              ; preds = %292
  %299 = load i32, ptr %47, align 4, !tbaa !9
  %300 = add nsw i32 %299, -1
  store i32 %300, ptr %47, align 4, !tbaa !9
  br label %270, !llvm.loop !18

301:                                              ; preds = %288, %285, %278
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %17, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %380

305:                                              ; preds = %273
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 0)
          to label %306 unwind label %274

306:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %375, %306
  %308 = load i32, ptr %52, align 4, !tbaa !9
  %309 = load i32, ptr %10, align 4, !tbaa !9
  %310 = icmp sle i32 %308, %309
  br i1 %310, label %312, label %311

311:                                              ; preds = %307
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %379

312:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = load i32, ptr %52, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %313, i64 noundef %315) #6
  %317 = load i32, ptr %52, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %318) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %319, i64 4, i1 false), !tbaa.struct !13
  %320 = getelementptr inbounds %struct.modint, ptr %57, i32 0, i32 0
  %321 = load i32, ptr %320, align 4
  %322 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %316, i32 %321)
          to label %323 unwind label %361

323:                                              ; preds = %312
  %324 = getelementptr inbounds %struct.modint, ptr %56, i32 0, i32 0
  store i32 %322, ptr %324, align 4
  %325 = load i32, ptr %52, align 4, !tbaa !9
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %326) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %327, i64 4, i1 false), !tbaa.struct !13
  %328 = getelementptr inbounds %struct.modint, ptr %58, i32 0, i32 0
  %329 = load i32, ptr %328, align 4
  %330 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %56, i32 %329)
          to label %331 unwind label %361

331:                                              ; preds = %323
  %332 = getelementptr inbounds %struct.modint, ptr %55, i32 0, i32 0
  store i32 %330, ptr %332, align 4
  %333 = load i32, ptr %52, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %334) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %335, i64 4, i1 false), !tbaa.struct !13
  %336 = getelementptr inbounds %struct.modint, ptr %59, i32 0, i32 0
  %337 = load i32, ptr %336, align 4
  %338 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %55, i32 %337)
          to label %339 unwind label %361

339:                                              ; preds = %331
  %340 = getelementptr inbounds %struct.modint, ptr %54, i32 0, i32 0
  store i32 %338, ptr %340, align 4
  %341 = load i32, ptr %10, align 4, !tbaa !9
  %342 = load i32, ptr %52, align 4, !tbaa !9
  %343 = sub nsw i32 %341, %342
  %344 = sext i32 %343 to i64
  %345 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %344) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %345, i64 4, i1 false), !tbaa.struct !13
  %346 = getelementptr inbounds %struct.modint, ptr %60, i32 0, i32 0
  %347 = load i32, ptr %346, align 4
  %348 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %54, i32 %347)
          to label %349 unwind label %361

349:                                              ; preds = %339
  %350 = getelementptr inbounds %struct.modint, ptr %53, i32 0, i32 0
  store i32 %348, ptr %350, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  %351 = load i32, ptr %10, align 4, !tbaa !9
  %352 = load i32, ptr %52, align 4, !tbaa !9
  %353 = sub nsw i32 %351, %352
  %354 = and i32 %353, 1
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %356, label %369

356:                                              ; preds = %349
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %53, i64 4, i1 false), !tbaa.struct !13
  %357 = getelementptr inbounds %struct.modint, ptr %61, i32 0, i32 0
  %358 = load i32, ptr %357, align 4
  %359 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi1000000007EEmIES0_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %358)
          to label %360 unwind label %365

360:                                              ; preds = %356
  br label %374

361:                                              ; preds = %339, %331, %323, %312
  %362 = landingpad { ptr, i32 }
          cleanup
  %363 = extractvalue { ptr, i32 } %362, 0
  store ptr %363, ptr %17, align 8
  %364 = extractvalue { ptr, i32 } %362, 1
  store i32 %364, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  br label %378

365:                                              ; preds = %369, %356
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %17, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %18, align 4
  br label %378

369:                                              ; preds = %349
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 4 %53, i64 4, i1 false), !tbaa.struct !13
  %370 = getelementptr inbounds %struct.modint, ptr %62, i32 0, i32 0
  %371 = load i32, ptr %370, align 4
  %372 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi1000000007EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %371)
          to label %373 unwind label %365

373:                                              ; preds = %369
  br label %374

374:                                              ; preds = %373, %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %52, align 4, !tbaa !9
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %52, align 4, !tbaa !9
  br label %307, !llvm.loop !19

378:                                              ; preds = %365, %361
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %380

379:                                              ; preds = %311
  store i32 1, ptr %13, align 4
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %386

380:                                              ; preds = %378, %301, %274, %253
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  br label %381

381:                                              ; preds = %380, %229
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  br label %382

382:                                              ; preds = %381, %220
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  br label %383

383:                                              ; preds = %382, %192, %149
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %384

384:                                              ; preds = %383, %115
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %385

385:                                              ; preds = %384, %103
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %389

386:                                              ; preds = %379, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %387 = getelementptr inbounds %struct.modint, ptr %5, i32 0, i32 0
  %388 = load i32, ptr %387, align 4
  ret i32 %388

389:                                              ; preds = %385
  %390 = load ptr, ptr %17, align 8
  %391 = load i32, ptr %18, align 4
  %392 = insertvalue { ptr, i32 } poison, ptr %390, 0
  %393 = insertvalue { ptr, i32 } %392, i32 %391, 1
  resume { ptr, i32 } %393
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6modintILi1000000007EEeqES0_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4), i32) #5 align 2

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

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

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

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

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

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

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


; 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.modint = type { i32 }
%"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 }

; Function Attrs: mustprogress uwtable
define dso_local i32 @_Z8LagrangeRKSt6vectorI6modintILi1000000007EESaIS1_EES1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 %1, i32 %2, i32 %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.modint, align 4
  %6 = alloca %struct.modint, align 4
  %7 = alloca %struct.modint, align 4
  %8 = alloca %struct.modint, align 4
  %9 = alloca %struct.modint, align 4
  %10 = alloca %struct.modint, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %struct.modint, align 4
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %struct.modint, align 4
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %struct.modint, align 4
  %18 = alloca %struct.modint, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %struct.modint, align 4
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %struct.modint, align 4
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %struct.modint, align 4
  %26 = alloca %struct.modint, align 4
  %27 = alloca %struct.modint, 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
  store i32 %1, ptr %6, align 4
  store i32 %2, ptr %7, align 4
  store i32 %3, ptr %8, align 4
  %32 = tail call noundef i64 @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %33 = trunc i64 %32 to i32
  %34 = add i32 %33, -1
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0)
  %35 = load i32, ptr %9, align 4
  %36 = call noundef zeroext i1 @_ZNK6modintILi1000000007EEeqES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %35)
  br i1 %36, label %37, label %45

37:                                               ; preds = %4
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 1)
  %38 = load i32, ptr %10, align 4
  %39 = call noundef zeroext i1 @_ZNK6modintILi1000000007EEeqES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %38)
  br i1 %39, label %40, label %45

40:                                               ; preds = %37
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %.not = icmp sgt i32 %41, %34
  br i1 %.not, label %45, label %42

42:                                               ; preds = %40
  %43 = sext i32 %41 to i64
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %43) #5
  br label %147

45:                                               ; preds = %40, %37, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %sext = shl i64 %32, 32
  %46 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %46, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %47 unwind label %51

47:                                               ; preds = %45
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %46, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %48 unwind label %53

48:                                               ; preds = %47
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  %49 = icmp sgt i32 %34, 0
  br i1 %49, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %48
  %wide.trip.count = zext nneg i32 %34 to i64
  br label %.lr.ph

.preheader90:                                     ; preds = %65
  br i1 %49, label %.lr.ph93.preheader, label %._crit_edge

.lr.ph93.preheader:                               ; preds = %.preheader90
  %50 = zext nneg i32 %34 to i64
  br label %.lr.ph93

51:                                               ; preds = %45
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %146

53:                                               ; preds = %47
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br label %145

.lr.ph:                                           ; preds = %.lr.ph.preheader, %65
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %65 ]
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #5
  %56 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %56)
  %57 = load i32, ptr %17, align 4
  %58 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %57)
          to label %59 unwind label %67

59:                                               ; preds = %.lr.ph
  %60 = invoke i32 @_ZNK6modintILi1000000007EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %58)
          to label %61 unwind label %67

61:                                               ; preds = %59
  %62 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %60)
          to label %63 unwind label %67

63:                                               ; preds = %61
  %64 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %55, i32 %62)
          to label %65 unwind label %67

65:                                               ; preds = %63
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv.next) #5
  store i32 %64, ptr %66, align 4, !tbaa !10
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader90, label %.lr.ph, !llvm.loop !11

67:                                               ; preds = %63, %61, %59, %.lr.ph
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %144

._crit_edge:                                      ; preds = %79, %48, %.preheader90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #5
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %46, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %84 unwind label %91

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %79
  %indvars.iv108 = phi i64 [ %50, %.lr.ph93.preheader ], [ %indvars.iv.next109, %79 ]
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv108) #5
  %70 = trunc nuw nsw i64 %indvars.iv108 to i32
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %70)
  %71 = load i32, ptr %18, align 4
  %72 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %71)
          to label %73 unwind label %82

73:                                               ; preds = %.lr.ph93
  %74 = invoke i32 @_ZNK6modintILi1000000007EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %72)
          to label %75 unwind label %82

75:                                               ; preds = %73
  %76 = invoke i32 @_ZNK6modintILi1000000007EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %74)
          to label %77 unwind label %82

77:                                               ; preds = %75
  %78 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %69, i32 %76)
          to label %79 unwind label %82

79:                                               ; preds = %77
  %indvars.iv.next109 = add nsw i64 %indvars.iv108, -1
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv.next109) #5
  store i32 %78, ptr %80, align 4, !tbaa !10
  %81 = icmp sgt i64 %indvars.iv108, 1
  br i1 %81, label %.lr.ph93, label %._crit_edge, !llvm.loop !13

82:                                               ; preds = %77, %75, %73, %.lr.ph93
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %144

84:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #5
  call void @_ZNSaI6modintILi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %46, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %85 unwind label %93

85:                                               ; preds = %84
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #5
  %.not8094 = icmp slt i32 %34, 1
  br i1 %.not8094, label %._crit_edge98, label %.lr.ph97.preheader

.lr.ph97.preheader:                               ; preds = %85
  %wide.trip.count114 = and i64 %32, 4294967295
  br label %.lr.ph97

._crit_edge98:                                    ; preds = %102, %85
  %86 = sext i32 %34 to i64
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %86) #5
  %.sroa.023.0.copyload = load i32, ptr %87, align 4, !tbaa !10
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %86) #5
  %89 = invoke i32 @_ZN6modintILi1000000007EEdVES0_(ptr noundef nonnull align 4 dereferenceable(4) %88, i32 %.sroa.023.0.copyload)
          to label %.preheader unwind label %106

.preheader:                                       ; preds = %._crit_edge98
  br i1 %49, label %.lr.ph100.preheader, label %._crit_edge101

.lr.ph100.preheader:                              ; preds = %.preheader
  %90 = zext nneg i32 %34 to i64
  br label %.lr.ph100

91:                                               ; preds = %._crit_edge
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  br label %143

93:                                               ; preds = %84
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6modintILi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #5
  br label %142

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %102
  %indvars.iv111 = phi i64 [ 1, %.lr.ph97.preheader ], [ %indvars.iv.next112, %102 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #5
  %95 = add nsw i64 %indvars.iv111, -1
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %95) #5
  %.sroa.024.0.copyload = load i32, ptr %8, align 4, !tbaa !10
  %97 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %96, i32 %.sroa.024.0.copyload)
          to label %98 unwind label %104

98:                                               ; preds = %.lr.ph97
  store i32 %97, ptr %25, align 4
  %99 = trunc nuw nsw i64 %indvars.iv111 to i32
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 noundef %99)
  %100 = load i32, ptr %26, align 4
  %101 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 %100)
          to label %102 unwind label %104

102:                                              ; preds = %98
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv111) #5
  store i32 %101, ptr %103, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #5
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %._crit_edge98, label %.lr.ph97, !llvm.loop !14

104:                                              ; preds = %98, %.lr.ph97
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #5
  br label %141

._crit_edge101:                                   ; preds = %114, %.preheader
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 0)
  %.not81102 = icmp slt i32 %34, 0
  br i1 %.not81102, label %._crit_edge106, label %.lr.ph105.preheader

.lr.ph105.preheader:                              ; preds = %._crit_edge101
  %wide.trip.count122 = and i64 %32, 4294967295
  br label %.lr.ph105

106:                                              ; preds = %._crit_edge98
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %141

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %114
  %indvars.iv116 = phi i64 [ %90, %.lr.ph100.preheader ], [ %indvars.iv.next117, %114 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #5
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv116) #5
  %.sroa.015.0.copyload = load i32, ptr %8, align 4, !tbaa !10
  %109 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %108, i32 %.sroa.015.0.copyload)
          to label %110 unwind label %117

110:                                              ; preds = %.lr.ph100
  store i32 %109, ptr %27, align 4
  %111 = trunc nuw nsw i64 %indvars.iv116 to i32
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 noundef %111)
  %112 = load i32, ptr %28, align 4
  %113 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 %112)
          to label %114 unwind label %117

114:                                              ; preds = %110
  %indvars.iv.next117 = add nsw i64 %indvars.iv116, -1
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv.next117) #5
  store i32 %113, ptr %115, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #5
  %116 = icmp sgt i64 %indvars.iv116, 1
  br i1 %116, label %.lr.ph100, label %._crit_edge101, !llvm.loop !15

117:                                              ; preds = %110, %.lr.ph100
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #5
  br label %141

._crit_edge106:                                   ; preds = %140, %._crit_edge101
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %147

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %140
  %indvars.iv119 = phi i64 [ 0, %.lr.ph105.preheader ], [ %indvars.iv.next120, %140 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #5
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv119) #5
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv119) #5
  %.sroa.05.0.copyload = load i32, ptr %120, align 4, !tbaa !10
  %121 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %119, i32 %.sroa.05.0.copyload)
          to label %122 unwind label %136

122:                                              ; preds = %.lr.ph105
  store i32 %121, ptr %31, align 4
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv119) #5
  %.sroa.04.0.copyload = load i32, ptr %123, align 4, !tbaa !10
  %124 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 %.sroa.04.0.copyload)
          to label %125 unwind label %136

125:                                              ; preds = %122
  store i32 %124, ptr %30, align 4
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv119) #5
  %.sroa.03.0.copyload = load i32, ptr %126, align 4, !tbaa !10
  %127 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 %.sroa.03.0.copyload)
          to label %128 unwind label %136

128:                                              ; preds = %125
  store i32 %127, ptr %29, align 4
  %129 = sub nsw i64 %86, %indvars.iv119
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %129) #5
  %.sroa.02.0.copyload = load i32, ptr %130, align 4, !tbaa !10
  %131 = invoke i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %29, i32 %.sroa.02.0.copyload)
          to label %132 unwind label %136

132:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  %133 = and i64 %129, 1
  %.not82 = icmp eq i64 %133, 0
  br i1 %.not82, label %138, label %134

134:                                              ; preds = %132
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi1000000007EEmIES0_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %131)
  br label %140

136:                                              ; preds = %128, %125, %122, %.lr.ph105
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  br label %141

138:                                              ; preds = %132
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi1000000007EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %131)
  br label %140

140:                                              ; preds = %138, %134
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count122
  br i1 %exitcond123.not, label %._crit_edge106, label %.lr.ph105, !llvm.loop !16

141:                                              ; preds = %136, %117, %106, %104
  %.pn = phi { ptr, i32 } [ %105, %104 ], [ %118, %117 ], [ %137, %136 ], [ %107, %106 ]
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br label %142

142:                                              ; preds = %141, %93
  %.pn.pn = phi { ptr, i32 } [ %.pn, %141 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %143

143:                                              ; preds = %142, %91
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %142 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  br label %144

144:                                              ; preds = %143, %82, %67
  %.pn86 = phi { ptr, i32 } [ %68, %67 ], [ %83, %82 ], [ %.pn.pn.pn, %143 ]
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %145

145:                                              ; preds = %144, %53
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %144 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %146

146:                                              ; preds = %145, %51
  %.pn86.pn.pn = phi { ptr, i32 } [ %.pn86.pn, %145 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  resume { ptr, i32 } %.pn86.pn.pn

147:                                              ; preds = %._crit_edge106, %42
  %.in = phi ptr [ %5, %._crit_edge106 ], [ %44, %42 ]
  %148 = load i32, ptr %.in, align 4
  ret i32 %148
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6modintILi1000000007EEeqES0_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 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 #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6modintILi1000000007EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_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 #4 align 2

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS6modintILi1000000007EE", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !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: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass