; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ/5909（树形dp+FWT）.ll (Z3dfsii)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@val = external dso_local global [1100 x i32], align 16
@dp = external dso_local global [1100 x [1100 x i32]], align 16
@ans = external dso_local global [1100 x i32], align 16
@temp = external dso_local global [1100 x i32], align 16
@m = external dso_local global i32, align 4
@V = external dso_local global [2200 x %"class.std::vector"], align 16

; 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 nounwind uwtable
declare dso_local void @_Z5solvePiS_i(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsii(i32 noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %12
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [1100 x i32], ptr @val, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [1100 x i32], ptr %13, i64 0, i64 %18
  store i32 1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %105, %2
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [2200 x %"class.std::vector"], ptr @V, i64 0, i64 %24
  %26 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #3
  %27 = icmp ult i64 %22, %26
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [2200 x %"class.std::vector"], ptr @V, i64 0, i64 %31
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #3
  %36 = load i32, ptr %35, align 4, !tbaa !5
  store i32 %36, ptr %7, align 4, !tbaa !5
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp eq i32 %37, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %29
  store i32 4, ptr %6, align 4
  br label %102

41:                                               ; preds = %29
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef %42, i32 noundef %43)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %60, %41
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = load i32, ptr @m, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %44
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1100 x i32], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [1100 x i32], ptr @temp, i64 0, i64 %58
  store i32 %56, ptr %59, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %49
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %8, align 4, !tbaa !5
  br label %44, !llvm.loop !9

63:                                               ; preds = %48
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %65
  %67 = getelementptr inbounds [1100 x i32], ptr %66, i64 0, i64 0
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %69
  %71 = getelementptr inbounds [1100 x i32], ptr %70, i64 0, i64 0
  %72 = load i32, ptr @m, align 4, !tbaa !5
  call void @_Z5solvePiS_i(ptr noundef %67, ptr noundef %71, i32 noundef %72)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %98, %63
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = load i32, ptr @m, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %101

78:                                               ; preds = %73
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %80
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1100 x i32], ptr %81, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1100 x i32], ptr @temp, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %85, %89
  %91 = srem i32 %90, 1000000007
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %93
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1100 x i32], ptr %94, i64 0, i64 %96
  store i32 %91, ptr %97, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %78
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !5
  br label %73, !llvm.loop !11

101:                                              ; preds = %77
  store i32 0, ptr %6, align 4
  br label %102

102:                                              ; preds = %101, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %103 = load i32, ptr %6, align 4
  switch i32 %103, label %135 [
    i32 0, label %104
    i32 4, label %105
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104, %102
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %5, align 4, !tbaa !5
  br label %20, !llvm.loop !12

108:                                              ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %131, %108
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = load i32, ptr @m, align 4, !tbaa !5
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %134

114:                                              ; preds = %109
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [1100 x i32], ptr @ans, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %120
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1100 x i32], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %118, %125
  %127 = srem i32 %126, 1000000007
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1100 x i32], ptr @ans, i64 0, i64 %129
  store i32 %127, ptr %130, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %114
  %132 = load i32, ptr %10, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %10, align 4, !tbaa !5
  br label %109, !llvm.loop !13

134:                                              ; preds = %113
  ret void

135:                                              ; preds = %102
  unreachable
}

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

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

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


; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@val = external dso_local local_unnamed_addr global [1100 x i32], align 16
@dp = external dso_local global [1100 x [1100 x i32]], align 16
@ans = external dso_local local_unnamed_addr global [1100 x i32], align 16
@temp = external dso_local local_unnamed_addr global [1100 x i32], align 16
@m = external dso_local local_unnamed_addr global i32, align 4
@V = external dso_local global [2200 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5solvePiS_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z3dfsii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = sext i32 %0 to i64
  %4 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %3
  %5 = getelementptr inbounds [1100 x i32], ptr @val, i64 0, i64 %3
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %3, i64 %7
  store i32 1, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds [2200 x %"class.std::vector"], ptr @V, i64 0, i64 %3
  %10 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #2
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %.preheader, label %.lr.ph43.preheader

.lr.ph43.preheader:                               ; preds = %2
  %11 = mul nsw i64 %3, 4400
  %scevgep = getelementptr i8, ptr @dp, i64 %11
  br label %.lr.ph43

.preheader:                                       ; preds = %.loopexit, %2
  %12 = load i32, ptr @m, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph45.preheader, label %._crit_edge46

.lr.ph45.preheader:                               ; preds = %.preheader
  %wide.trip.count55 = zext nneg i32 %12 to i64
  %min.iters.check62 = icmp ult i32 %12, 8
  br i1 %min.iters.check62, label %.lr.ph45.preheader75, label %vector.ph63

.lr.ph45.preheader75:                             ; preds = %middle.block60, %.lr.ph45.preheader
  %indvars.iv52.ph = phi i64 [ 0, %.lr.ph45.preheader ], [ %n.vec65, %middle.block60 ]
  br label %.lr.ph45

vector.ph63:                                      ; preds = %.lr.ph45.preheader
  %n.vec65 = and i64 %wide.trip.count55, 2147483640
  br label %vector.body67

vector.body67:                                    ; preds = %vector.body67, %vector.ph63
  %index68 = phi i64 [ 0, %vector.ph63 ], [ %index.next73, %vector.body67 ]
  %14 = getelementptr inbounds [1100 x i32], ptr @ans, i64 0, i64 %index68
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load69 = load <4 x i32>, ptr %14, align 16, !tbaa !5
  %wide.load70 = load <4 x i32>, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %3, i64 %index68
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %wide.load71 = load <4 x i32>, ptr %16, align 16, !tbaa !5
  %wide.load72 = load <4 x i32>, ptr %17, align 16, !tbaa !5
  %18 = add nsw <4 x i32> %wide.load71, %wide.load69
  %19 = add nsw <4 x i32> %wide.load72, %wide.load70
  %20 = srem <4 x i32> %18, <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>
  %21 = srem <4 x i32> %19, <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>
  store <4 x i32> %20, ptr %14, align 16, !tbaa !5
  store <4 x i32> %21, ptr %15, align 16, !tbaa !5
  %index.next73 = add nuw i64 %index68, 8
  %22 = icmp eq i64 %index.next73, %n.vec65
  br i1 %22, label %middle.block60, label %vector.body67, !llvm.loop !9

middle.block60:                                   ; preds = %vector.body67
  %cmp.n74 = icmp eq i64 %n.vec65, %wide.trip.count55
  br i1 %cmp.n74, label %._crit_edge46, label %.lr.ph45.preheader75

.lr.ph43:                                         ; preds = %.lr.ph43.preheader, %.loopexit
  %indvars.iv49 = phi i64 [ 0, %.lr.ph43.preheader ], [ %indvars.iv.next50, %.loopexit ]
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv49) #2
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = icmp eq i32 %24, %1
  br i1 %25, label %.loopexit, label %26

26:                                               ; preds = %.lr.ph43
  tail call void @_Z3dfsii(i32 noundef %24, i32 noundef %0)
  %27 = load i32, ptr @m, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %26
  %29 = zext nneg i32 %27 to i64
  %30 = shl nuw nsw i64 %29, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @temp, ptr align 16 %scevgep, i64 %30, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %26
  %31 = sext i32 %24 to i64
  %32 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %31
  tail call void @_Z5solvePiS_i(ptr noundef nonnull %4, ptr noundef nonnull %32, i32 noundef %27)
  %33 = load i32, ptr @m, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph40.preheader, label %.loopexit

.lr.ph40.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %33 to i64
  %min.iters.check = icmp ult i32 %33, 8
  br i1 %min.iters.check, label %.lr.ph40.preheader76, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph40.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %35 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %3, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %wide.load = load <4 x i32>, ptr %35, align 16, !tbaa !5
  %wide.load57 = load <4 x i32>, ptr %36, align 16, !tbaa !5
  %37 = getelementptr inbounds [1100 x i32], ptr @temp, i64 0, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %wide.load58 = load <4 x i32>, ptr %37, align 16, !tbaa !5
  %wide.load59 = load <4 x i32>, ptr %38, align 16, !tbaa !5
  %39 = add nsw <4 x i32> %wide.load58, %wide.load
  %40 = add nsw <4 x i32> %wide.load59, %wide.load57
  %41 = srem <4 x i32> %39, <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>
  %42 = srem <4 x i32> %40, <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>
  store <4 x i32> %41, ptr %35, align 16, !tbaa !5
  store <4 x i32> %42, ptr %36, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %.lr.ph40.preheader76

.lr.ph40.preheader76:                             ; preds = %middle.block, %.lr.ph40.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph40.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph40

.lr.ph40:                                         ; preds = %.lr.ph40.preheader76, %.lr.ph40
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph40 ], [ %indvars.iv.ph, %.lr.ph40.preheader76 ]
  %44 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %3, i64 %indvars.iv
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = getelementptr inbounds [1100 x i32], ptr @temp, i64 0, i64 %indvars.iv
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %47, %45
  %49 = srem i32 %48, 1000000007
  store i32 %49, ptr %44, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph40, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph40, %middle.block, %._crit_edge, %.lr.ph43
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %50 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #2
  %51 = icmp ugt i64 %50, %indvars.iv.next50
  br i1 %51, label %.lr.ph43, label %.preheader, !llvm.loop !15

._crit_edge46:                                    ; preds = %.lr.ph45, %middle.block60, %.preheader
  ret void

.lr.ph45:                                         ; preds = %.lr.ph45.preheader75, %.lr.ph45
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.lr.ph45 ], [ %indvars.iv52.ph, %.lr.ph45.preheader75 ]
  %52 = getelementptr inbounds [1100 x i32], ptr @ans, i64 0, i64 %indvars.iv52
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds [1100 x [1100 x i32]], ptr @dp, i64 0, i64 %3, i64 %indvars.iv52
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %55, %53
  %57 = srem i32 %56, 1000000007
  store i32 %57, ptr %52, align 4, !tbaa !5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %wide.trip.count55
  br i1 %exitcond56.not, label %._crit_edge46, label %.lr.ph45, !llvm.loop !16
}

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !12, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass