; LLVM IR from ShahjalalShohag/code-library :: Number Theory/Generalized Floor Sum of Arithmetic Progressions.ll (Z4precv)

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

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

@ncr = external dso_local global [25 x [25 x i64]], align 16
@d = external dso_local global [25 x [25 x i64]], align 16
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [129 x i8], align 1
@__PRETTY_FUNCTION__._Z4precv = external hidden unnamed_addr constant [12 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8LagrangeRSt6vectorI6modintILi1000000007EESaIS1_EES4_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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: mustprogress nounwind uwtable
declare dso_local void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; 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 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 uwtable
define dso_local void @_Z4precv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  %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 %struct.modint, align 4
  %15 = alloca %struct.modint, align 4
  %16 = alloca %struct.modint, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %28, %0
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 25
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %31

23:                                               ; preds = %19
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %25
  %27 = getelementptr inbounds [25 x i64], ptr %26, i64 0, i64 0
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %23
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %1, align 4, !tbaa !5
  br label %19, !llvm.loop !11

31:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %71, %31
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 25
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %74

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %67, %36
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 25
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %70

41:                                               ; preds = %37
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sub nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %44
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [25 x i64], ptr %45, i64 0, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %53
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [25 x i64], ptr %54, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = add nsw i64 %50, %58
  %60 = srem i64 %59, 1000000007
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %62
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [25 x i64], ptr %63, i64 0, i64 %65
  store i64 %60, ptr %66, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %41
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %4, align 4, !tbaa !5
  br label %37, !llvm.loop !13

70:                                               ; preds = %40
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %2, align 4, !tbaa !5
  br label %32, !llvm.loop !14

74:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %173, %74
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = icmp slt i32 %76, 25
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %177

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 0)
          to label %80 unwind label %91

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef 0)
          to label %81 unwind label %95

81:                                               ; preds = %80
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %82 unwind label %95

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 0)
          to label %83 unwind label %99

83:                                               ; preds = %82
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %84 unwind label %99

84:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %119, %84
  %86 = load i32, ptr %13, align 4, !tbaa !5
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  %89 = icmp sle i32 %86, %88
  br i1 %89, label %103, label %90

90:                                               ; preds = %85
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %135

91:                                               ; preds = %79
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  br label %176

95:                                               ; preds = %81, %80
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %176

99:                                               ; preds = %83, %82
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %176

103:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %104 = load i32, ptr %13, align 4, !tbaa !5
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %104)
          to label %105 unwind label %122

105:                                              ; preds = %103
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = invoke i32 @_ZNK6modintILi1000000007EE3powEm(ptr noundef nonnull align 4 dereferenceable(4) %15, i64 noundef %107)
          to label %109 unwind label %122

109:                                              ; preds = %105
  %110 = getelementptr inbounds %struct.modint, ptr %14, i32 0, i32 0
  store i32 %108, ptr %110, align 4
  %111 = getelementptr inbounds %struct.modint, ptr %14, i32 0, i32 0
  %112 = load i32, ptr %111, align 4
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi1000000007EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %112)
          to label %114 unwind label %122

114:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %115 unwind label %126

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %116 = load i32, ptr %13, align 4, !tbaa !5
  invoke void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %116)
          to label %117 unwind label %130

117:                                              ; preds = %115
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %118 unwind label %130

118:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %13, align 4, !tbaa !5
  br label %85, !llvm.loop !15

122:                                              ; preds = %109, %105, %103
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %9, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %134

126:                                              ; preds = %114
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %9, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %10, align 4
  br label %134

130:                                              ; preds = %117, %115
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %9, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %134

134:                                              ; preds = %130, %126, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %176

135:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  invoke void @_Z8LagrangeRSt6vectorI6modintILi1000000007EESaIS1_EES4_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %136 unwind label %144

136:                                              ; preds = %135
  %137 = call noundef i64 @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = icmp ugt i64 %137, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %136
  br label %149

143:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 89, ptr noundef @__PRETTY_FUNCTION__._Z4precv) #6
  unreachable

144:                                              ; preds = %135
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  br label %176

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148, %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %169, %149
  %151 = load i32, ptr %18, align 4, !tbaa !5
  %152 = load i32, ptr %5, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  %154 = icmp sle i32 %151, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %150
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %172

156:                                              ; preds = %150
  %157 = load i32, ptr %18, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %158) #5
  %160 = getelementptr inbounds %struct.modint, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 4, !tbaa !16
  %162 = sext i32 %161 to i64
  %163 = load i32, ptr %5, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [25 x [25 x i64]], ptr @d, i64 0, i64 %164
  %166 = load i32, ptr %18, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [25 x i64], ptr %165, i64 0, i64 %167
  store i64 %162, ptr %168, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %156
  %170 = load i32, ptr %18, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %18, align 4, !tbaa !5
  br label %150, !llvm.loop !18

172:                                              ; preds = %155
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %5, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %5, align 4, !tbaa !5
  br label %75, !llvm.loop !19

176:                                              ; preds = %144, %134, %99, %95, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %178

177:                                              ; preds = %78
  store i64 1, ptr @d, align 16, !tbaa !9
  ret void

178:                                              ; preds = %176
  %179 = load ptr, ptr %9, align 8
  %180 = load i32, ptr %10, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

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

@ncr = external dso_local local_unnamed_addr global [25 x [25 x i64]], align 16
@d = external dso_local local_unnamed_addr global [25 x [25 x i64]], align 16
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [129 x i8], align 1
@__PRETTY_FUNCTION__._Z4precv = external hidden unnamed_addr constant [12 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8LagrangeRSt6vectorI6modintILi1000000007EESaIS1_EES4_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #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: mustprogress nounwind uwtable
declare dso_local void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; 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 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 uwtable
define dso_local void @_Z4precv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
.preheader42.preheader:
  %0 = alloca %"class.std::vector", align 8
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %struct.modint, align 4
  %3 = alloca %struct.modint, align 4
  %4 = alloca %struct.modint, align 4
  %5 = alloca %struct.modint, align 4
  %6 = alloca %struct.modint, align 4
  %7 = alloca %"class.std::vector", align 8
  store i64 1, ptr @ncr, align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 200), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 400), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 600), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 800), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 1000), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 1200), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 1400), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 1600), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 1800), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 2000), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 2200), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 2400), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 2600), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 2800), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 3000), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 3200), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 3400), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 3600), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 3800), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 4000), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 4200), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 4400), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 4600), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @ncr, i64 4800), align 16, !tbaa !5
  br label %.preheader42

.preheader42:                                     ; preds = %.preheader42.preheader, %.preheader42
  %indvars.iv55 = phi i64 [ 1, %.preheader42.preheader ], [ %indvars.iv.next56, %.preheader42 ]
  %8 = add nsw i64 %indvars.iv55, -1
  %.phi.trans.insert = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 0
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !5
  %9 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 1
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = add nsw i64 %10, %.pre
  %12 = srem i64 %11, 1000000007
  %13 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 1
  store i64 %12, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 2
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = add nsw i64 %15, %10
  %17 = srem i64 %16, 1000000007
  %18 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 2
  store i64 %17, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 3
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = add nsw i64 %20, %15
  %22 = srem i64 %21, 1000000007
  %23 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 3
  store i64 %22, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 4
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = add nsw i64 %25, %20
  %27 = srem i64 %26, 1000000007
  %28 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 4
  store i64 %27, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 5
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = add nsw i64 %30, %25
  %32 = srem i64 %31, 1000000007
  %33 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 5
  store i64 %32, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 6
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = add nsw i64 %35, %30
  %37 = srem i64 %36, 1000000007
  %38 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 6
  store i64 %37, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 7
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = add nsw i64 %40, %35
  %42 = srem i64 %41, 1000000007
  %43 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 7
  store i64 %42, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 8
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = add nsw i64 %45, %40
  %47 = srem i64 %46, 1000000007
  %48 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 8
  store i64 %47, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 9
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = add nsw i64 %50, %45
  %52 = srem i64 %51, 1000000007
  %53 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 9
  store i64 %52, ptr %53, align 8, !tbaa !5
  %54 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 10
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = add nsw i64 %55, %50
  %57 = srem i64 %56, 1000000007
  %58 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 10
  store i64 %57, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 11
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = add nsw i64 %60, %55
  %62 = srem i64 %61, 1000000007
  %63 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 11
  store i64 %62, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 12
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = add nsw i64 %65, %60
  %67 = srem i64 %66, 1000000007
  %68 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 12
  store i64 %67, ptr %68, align 8, !tbaa !5
  %69 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 13
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = add nsw i64 %70, %65
  %72 = srem i64 %71, 1000000007
  %73 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 13
  store i64 %72, ptr %73, align 8, !tbaa !5
  %74 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 14
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = add nsw i64 %75, %70
  %77 = srem i64 %76, 1000000007
  %78 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 14
  store i64 %77, ptr %78, align 8, !tbaa !5
  %79 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 15
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = add nsw i64 %80, %75
  %82 = srem i64 %81, 1000000007
  %83 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 15
  store i64 %82, ptr %83, align 8, !tbaa !5
  %84 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 16
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = add nsw i64 %85, %80
  %87 = srem i64 %86, 1000000007
  %88 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 16
  store i64 %87, ptr %88, align 8, !tbaa !5
  %89 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 17
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = add nsw i64 %90, %85
  %92 = srem i64 %91, 1000000007
  %93 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 17
  store i64 %92, ptr %93, align 8, !tbaa !5
  %94 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 18
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = add nsw i64 %95, %90
  %97 = srem i64 %96, 1000000007
  %98 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 18
  store i64 %97, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 19
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %101 = add nsw i64 %100, %95
  %102 = srem i64 %101, 1000000007
  %103 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 19
  store i64 %102, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 20
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = add nsw i64 %105, %100
  %107 = srem i64 %106, 1000000007
  %108 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 20
  store i64 %107, ptr %108, align 8, !tbaa !5
  %109 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 21
  %110 = load i64, ptr %109, align 8, !tbaa !5
  %111 = add nsw i64 %110, %105
  %112 = srem i64 %111, 1000000007
  %113 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 21
  store i64 %112, ptr %113, align 8, !tbaa !5
  %114 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 22
  %115 = load i64, ptr %114, align 8, !tbaa !5
  %116 = add nsw i64 %115, %110
  %117 = srem i64 %116, 1000000007
  %118 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 22
  store i64 %117, ptr %118, align 8, !tbaa !5
  %119 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 23
  %120 = load i64, ptr %119, align 8, !tbaa !5
  %121 = add nsw i64 %120, %115
  %122 = srem i64 %121, 1000000007
  %123 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 23
  store i64 %122, ptr %123, align 8, !tbaa !5
  %124 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %8, i64 24
  %125 = load i64, ptr %124, align 8, !tbaa !5
  %126 = add nsw i64 %125, %120
  %127 = srem i64 %126, 1000000007
  %128 = getelementptr inbounds [25 x [25 x i64]], ptr @ncr, i64 0, i64 %indvars.iv55, i64 24
  store i64 %127, ptr %128, align 8, !tbaa !5
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next56, 25
  br i1 %exitcond58.not, label %.preheader41, label %.preheader42, !llvm.loop !9

129:                                              ; preds = %157
  store i64 1, ptr @d, align 16, !tbaa !5
  ret void

.preheader41:                                     ; preds = %.preheader42, %157
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %157 ], [ 0, %.preheader42 ]
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %157 ], [ 2, %.preheader42 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %0) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 0)
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %130 unwind label %133

130:                                              ; preds = %.preheader41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 0)
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %131 unwind label %135

131:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  br label %137

132:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  invoke void @_Z8LagrangeRSt6vectorI6modintILi1000000007EESaIS1_EES4_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %151 unwind label %155

133:                                              ; preds = %.preheader41
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %162

135:                                              ; preds = %130
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %162

137:                                              ; preds = %131, %142
  %.03050 = phi i32 [ 1, %131 ], [ %143, %142 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %.03050)
  %138 = invoke i32 @_ZNK6modintILi1000000007EE3powEm(ptr noundef nonnull align 4 dereferenceable(4) %5, i64 noundef %indvars.iv68)
          to label %139 unwind label %145

139:                                              ; preds = %137
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi1000000007EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 %138)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %141 unwind label %147

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN6modintILi1000000007EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %.03050)
  invoke void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %142 unwind label %149

142:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %143 = add nuw nsw i32 %.03050, 1
  %144 = zext nneg i32 %143 to i64
  %exitcond61 = icmp eq i64 %indvars.iv66, %144
  br i1 %exitcond61, label %132, label %137, !llvm.loop !11

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

147:                                              ; preds = %139
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %162

149:                                              ; preds = %141
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %162

151:                                              ; preds = %132
  %152 = call noundef i64 @_ZNKSt6vectorI6modintILi1000000007EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %153 = icmp ugt i64 %152, %indvars.iv.next69
  br i1 %153, label %.preheader, label %154

154:                                              ; preds = %151
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 89, ptr noundef nonnull @__PRETTY_FUNCTION__._Z4precv) #6
  unreachable

155:                                              ; preds = %132
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %162

157:                                              ; preds = %.preheader
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %0) #5
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next69, 25
  br i1 %exitcond73.not, label %129, label %.preheader41, !llvm.loop !12

.preheader:                                       ; preds = %151, %.preheader
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.preheader ], [ 0, %151 ]
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi1000000007EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv62) #5
  %159 = load i32, ptr %158, align 4, !tbaa !13
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [25 x [25 x i64]], ptr @d, i64 0, i64 %indvars.iv68, i64 %indvars.iv62
  store i64 %160, ptr %161, align 8, !tbaa !5
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond65 = icmp eq i64 %indvars.iv.next63, %indvars.iv66
  br i1 %exitcond65, label %157, label %.preheader, !llvm.loop !16

162:                                              ; preds = %145, %147, %149, %155, %135, %133
  %.pn.pn = phi { ptr, i32 } [ %156, %155 ], [ %136, %135 ], [ %134, %133 ], [ %150, %149 ], [ %148, %147 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorI6modintILi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %0) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass