; LLVM IR from Tunghohin/Competitive_Coding :: Luogu/p3047.ll (Z5dfs_1xx)

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

@k = external dso_local global i64, align 8
@val = external dso_local global [100010 x i64], align 16
@dp = external dso_local global [100010 x [30 x i64]], align 16
@G = external dso_local global [100010 x %"class.std::vector"], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5dfs_1xx(i64 noundef %0, i64 noundef %1) #0 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store i64 %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %25, %2
  %13 = load i64, ptr %5, align 8, !tbaa !5
  %14 = load i64, ptr @k, align 8, !tbaa !5
  %15 = icmp sle i64 %13, %14
  br i1 %15, label %17, label %16

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

17:                                               ; preds = %12
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds [100010 x i64], ptr @val, i64 0, i64 %18
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = load i64, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %21
  %23 = load i64, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds [30 x i64], ptr %22, i64 0, i64 %23
  store i64 %20, ptr %24, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %17
  %26 = load i64, ptr %5, align 8, !tbaa !5
  %27 = add nsw i64 %26, 1
  store i64 %27, ptr %5, align 8, !tbaa !5
  br label %12, !llvm.loop !9

28:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @G, i64 0, i64 %29
  store ptr %30, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %31 = load ptr, ptr %6, align 8, !tbaa !11
  %32 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %34 = load ptr, ptr %6, align 8, !tbaa !11
  %35 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #4
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %37

37:                                               ; preds = %75, %28
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %42 = load i64, ptr %41, align 8, !tbaa !5
  store i64 %42, ptr %10, align 8, !tbaa !5
  %43 = load i64, ptr %10, align 8, !tbaa !5
  %44 = load i64, ptr %4, align 8, !tbaa !5
  %45 = icmp eq i64 %43, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %40
  store i32 6, ptr %9, align 4
  br label %72

47:                                               ; preds = %40
  %48 = load i64, ptr %10, align 8, !tbaa !5
  %49 = load i64, ptr %3, align 8, !tbaa !5
  call void @_Z5dfs_1xx(i64 noundef %48, i64 noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 1, ptr %11, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %68, %47
  %51 = load i64, ptr %11, align 8, !tbaa !5
  %52 = load i64, ptr @k, align 8, !tbaa !5
  %53 = icmp sle i64 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %71

55:                                               ; preds = %50
  %56 = load i64, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %56
  %58 = load i64, ptr %11, align 8, !tbaa !5
  %59 = sub nsw i64 %58, 1
  %60 = getelementptr inbounds [30 x i64], ptr %57, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %62
  %64 = load i64, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds [30 x i64], ptr %63, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = add nsw i64 %66, %61
  store i64 %67, ptr %65, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %55
  %69 = load i64, ptr %11, align 8, !tbaa !5
  %70 = add nsw i64 %69, 1
  store i64 %70, ptr %11, align 8, !tbaa !5
  br label %50, !llvm.loop !13

71:                                               ; preds = %54
  store i32 0, ptr %9, align 4
  br label %72

72:                                               ; preds = %71, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %73 = load i32, ptr %9, align 4
  switch i32 %73, label %78 [
    i32 0, label %74
    i32 6, label %75
  ]

74:                                               ; preds = %72
  br label %75

75:                                               ; preds = %74, %72
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br label %37

77:                                               ; preds = %39
  ret void

78:                                               ; preds = %72
  unreachable
}

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

; 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 ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@k = external dso_local local_unnamed_addr global i64, align 8
@val = external dso_local local_unnamed_addr global [100010 x i64], align 16
@dp = external dso_local local_unnamed_addr global [100010 x [30 x i64]], align 16
@G = external dso_local global [100010 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5dfs_1xx(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = load i64, ptr @k, align 8, !tbaa !5
  %.not20 = icmp slt i64 %5, 0
  br i1 %.not20, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %6 = getelementptr inbounds [100010 x i64], ptr @val, i64 0, i64 %0
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = add nuw i64 %5, 1
  %min.iters.check = icmp ult i64 %5, 3
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %.01721.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %8, -4
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %7, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %9 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %0, i64 %index
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  store <2 x i64> %broadcast.splat, ptr %9, align 16, !tbaa !5
  store <2 x i64> %broadcast.splat, ptr %10, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %11 = icmp eq i64 %index.next, %n.vec
  br i1 %11, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %8, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %2
  %12 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @G, i64 0, i64 %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %13 = tail call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  store ptr %13, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %14 = tail call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  store ptr %14, ptr %4, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %15, label %.lr.ph27.preheader, label %._crit_edge28

.lr.ph27.preheader:                               ; preds = %._crit_edge
  %16 = mul nsw i64 %0, 240
  %17 = or disjoint i64 %16, 8
  %scevgep = getelementptr i8, ptr @dp, i64 %17
  %scevgep30 = getelementptr i8, ptr @dp, i64 %17
  br label %.lr.ph27

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.01721 = phi i64 [ %19, %scalar.ph ], [ %.01721.ph, %scalar.ph.preheader ]
  %18 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %0, i64 %.01721
  store i64 %7, ptr %18, align 8, !tbaa !5
  %19 = add nuw i64 %.01721, 1
  %exitcond.not = icmp eq i64 %.01721, %5
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !13

._crit_edge28:                                    ; preds = %.loopexit, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void

.lr.ph27:                                         ; preds = %.lr.ph27.preheader, %.loopexit
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = icmp eq i64 %21, %1
  br i1 %22, label %.loopexit, label %23

23:                                               ; preds = %.lr.ph27
  call void @_Z5dfs_1xx(i64 noundef %21, i64 noundef %0)
  %24 = load i64, ptr @k, align 8, !tbaa !5
  %.not1922 = icmp slt i64 %24, 1
  br i1 %.not1922, label %.loopexit, label %.lr.ph25.preheader

.lr.ph25.preheader:                               ; preds = %23
  %min.iters.check36 = icmp ult i64 %24, 6
  br i1 %min.iters.check36, label %.lr.ph25.preheader48, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph25.preheader
  %25 = shl i64 %24, 3
  %scevgep31 = getelementptr i8, ptr %scevgep30, i64 %25
  %26 = mul nsw i64 %21, 240
  %scevgep32 = getelementptr i8, ptr @dp, i64 %26
  %27 = getelementptr i8, ptr @dp, i64 %26
  %scevgep33 = getelementptr i8, ptr %27, i64 %25
  %bound0 = icmp ult ptr %scevgep, %scevgep33
  %bound1 = icmp ult ptr %scevgep32, %scevgep31
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph25.preheader48, label %vector.ph37

vector.ph37:                                      ; preds = %vector.memcheck
  %n.vec39 = and i64 %24, 9223372036854775804
  %ind.end = or disjoint i64 %n.vec39, 1
  br label %vector.body41

vector.body41:                                    ; preds = %vector.body41, %vector.ph37
  %index42 = phi i64 [ 0, %vector.ph37 ], [ %index.next46, %vector.body41 ]
  %offset.idx = or disjoint i64 %index42, 1
  %28 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %21, i64 %index42
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %wide.load = load <2 x i64>, ptr %28, align 16, !tbaa !5, !alias.scope !14
  %wide.load43 = load <2 x i64>, ptr %29, align 16, !tbaa !5, !alias.scope !14
  %30 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %0, i64 %offset.idx
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load44 = load <2 x i64>, ptr %30, align 8, !tbaa !5, !alias.scope !17, !noalias !14
  %wide.load45 = load <2 x i64>, ptr %31, align 8, !tbaa !5, !alias.scope !17, !noalias !14
  %32 = add nsw <2 x i64> %wide.load44, %wide.load
  %33 = add nsw <2 x i64> %wide.load45, %wide.load43
  store <2 x i64> %32, ptr %30, align 8, !tbaa !5, !alias.scope !17, !noalias !14
  store <2 x i64> %33, ptr %31, align 8, !tbaa !5, !alias.scope !17, !noalias !14
  %index.next46 = add nuw i64 %index42, 4
  %34 = icmp eq i64 %index.next46, %n.vec39
  br i1 %34, label %middle.block34, label %vector.body41, !llvm.loop !19

middle.block34:                                   ; preds = %vector.body41
  %cmp.n47 = icmp eq i64 %24, %n.vec39
  br i1 %cmp.n47, label %.loopexit, label %.lr.ph25.preheader48

.lr.ph25.preheader48:                             ; preds = %middle.block34, %vector.memcheck, %.lr.ph25.preheader
  %.023.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph25.preheader ], [ %ind.end, %middle.block34 ]
  %xtraiter = and i64 %24, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph25.prol.loopexit, label %.lr.ph25.prol

.lr.ph25.prol:                                    ; preds = %.lr.ph25.preheader48
  %35 = add nsw i64 %.023.ph, -1
  %36 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %21, i64 %35
  %37 = load i64, ptr %36, align 16, !tbaa !5
  %38 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %0, i64 %.023.ph
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = add nsw i64 %39, %37
  store i64 %40, ptr %38, align 8, !tbaa !5
  %41 = add nuw i64 %.023.ph, 1
  br label %.lr.ph25.prol.loopexit

.lr.ph25.prol.loopexit:                           ; preds = %.lr.ph25.prol, %.lr.ph25.preheader48
  %.023.unr = phi i64 [ %.023.ph, %.lr.ph25.preheader48 ], [ %41, %.lr.ph25.prol ]
  %42 = icmp eq i64 %24, %.023.ph
  br i1 %42, label %.loopexit, label %.lr.ph25

.lr.ph25:                                         ; preds = %.lr.ph25.prol.loopexit, %.lr.ph25
  %.023 = phi i64 [ %55, %.lr.ph25 ], [ %.023.unr, %.lr.ph25.prol.loopexit ]
  %43 = add nsw i64 %.023, -1
  %44 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %21, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %0, i64 %.023
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = add nsw i64 %47, %45
  store i64 %48, ptr %46, align 8, !tbaa !5
  %49 = add nuw i64 %.023, 1
  %50 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %21, i64 %.023
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds [100010 x [30 x i64]], ptr @dp, i64 0, i64 %0, i64 %49
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = add nsw i64 %53, %51
  store i64 %54, ptr %52, align 8, !tbaa !5
  %55 = add nuw i64 %.023, 2
  %exitcond29.not.1 = icmp eq i64 %49, %24
  br i1 %exitcond29.not.1, label %.loopexit, label %.lr.ph25, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph25.prol.loopexit, %.lr.ph25, %middle.block34, %23, %.lr.ph27
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %57, label %.lr.ph27, label %._crit_edge28
}

; 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 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 ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

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

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


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