; LLVM IR from reyadussalahin/problem-solving :: graph/lca/loj/F1101/Solution.ll (Z3dfsiii)

; 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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@mst = external dso_local global [100020 x %"class.std::vector"], align 16
@spt = external dso_local global [100020 x [20 x i32]], align 16
@lev = external dso_local global [100020 x i32], align 16

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

21:                                               ; preds = %58, %3
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 20
  br i1 %23, label %25, label %24

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

25:                                               ; preds = %21
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %27
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = sub nsw i32 %29, 1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [20 x i32], ptr %28, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp ne i32 %33, -1
  br i1 %34, label %35, label %57

35:                                               ; preds = %25
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %37
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [20 x i32], ptr %38, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [20 x i32], ptr %45, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %52
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [20 x i32], ptr %53, i64 0, i64 %55
  store i32 %50, ptr %56, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %35, %25
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %7, align 4, !tbaa !5
  br label %21, !llvm.loop !9

61:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100020 x %"class.std::vector"], ptr @mst, i64 0, i64 %63
  store ptr %64, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %65 = load ptr, ptr %8, align 8, !tbaa !11
  %66 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #4
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %68 = load ptr, ptr %8, align 8, !tbaa !11
  %69 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #4
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  br label %71

71:                                               ; preds = %81, %61
  %72 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %72, label %74, label %73

73:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %83

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %76 = load i32, ptr %75, align 4, !tbaa !5
  store i32 %76, ptr %11, align 4, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  call void @_Z3dfsiii(i32 noundef %77, i32 noundef %78, i32 noundef %80)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %81

81:                                               ; preds = %74
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %71

83:                                               ; preds = %73
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_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 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(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_iteratorIPiSt6vectorIiSaIiEEEppEv(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 = !{!"int", !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}


; 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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@mst = external dso_local global [100020 x %"class.std::vector"], align 16
@spt = external dso_local local_unnamed_addr global [100020 x [20 x i32]], align 16
@lev = external dso_local local_unnamed_addr global [100020 x i32], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z3dfsiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = sext i32 %0 to i64
  %7 = getelementptr inbounds [100020 x i32], ptr @lev, i64 0, i64 %6
  store i32 %2, ptr %7, align 4, !tbaa !5
  %8 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6
  store i32 %1, ptr %8, align 16, !tbaa !5
  %.not = icmp eq i32 %1, -1
  br i1 %.not, label %._crit_edge21, label %10

._crit_edge21:                                    ; preds = %3
  %.phi.trans.insert = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 1
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %15

.lr.ph:                                           ; preds = %141
  %9 = add nsw i32 %2, 1
  br label %146

10:                                               ; preds = %3
  %11 = sext i32 %1 to i64
  %12 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %11, i64 0
  %13 = load i32, ptr %12, align 16, !tbaa !5
  %14 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 1
  store i32 %13, ptr %14, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %._crit_edge21, %10
  %16 = phi i32 [ %.pre, %._crit_edge21 ], [ %13, %10 ]
  %.not.1 = icmp eq i32 %16, -1
  br i1 %.not.1, label %._crit_edge22, label %17

._crit_edge22:                                    ; preds = %15
  %.phi.trans.insert23 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 2
  %.pre24 = load i32, ptr %.phi.trans.insert23, align 8, !tbaa !5
  br label %22

17:                                               ; preds = %15
  %18 = sext i32 %16 to i64
  %19 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %18, i64 1
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 2
  store i32 %20, ptr %21, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %._crit_edge22, %17
  %23 = phi i32 [ %.pre24, %._crit_edge22 ], [ %20, %17 ]
  %.not.2 = icmp eq i32 %23, -1
  br i1 %.not.2, label %._crit_edge25, label %24

._crit_edge25:                                    ; preds = %22
  %.phi.trans.insert26 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 3
  %.pre27 = load i32, ptr %.phi.trans.insert26, align 4, !tbaa !5
  br label %29

24:                                               ; preds = %22
  %25 = sext i32 %23 to i64
  %26 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %25, i64 2
  %27 = load i32, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 3
  store i32 %27, ptr %28, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %._crit_edge25, %24
  %30 = phi i32 [ %.pre27, %._crit_edge25 ], [ %27, %24 ]
  %.not.3 = icmp eq i32 %30, -1
  br i1 %.not.3, label %._crit_edge28, label %31

._crit_edge28:                                    ; preds = %29
  %.phi.trans.insert29 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 4
  %.pre30 = load i32, ptr %.phi.trans.insert29, align 16, !tbaa !5
  br label %36

31:                                               ; preds = %29
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %32, i64 3
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 4
  store i32 %34, ptr %35, align 16, !tbaa !5
  br label %36

36:                                               ; preds = %._crit_edge28, %31
  %37 = phi i32 [ %.pre30, %._crit_edge28 ], [ %34, %31 ]
  %.not.4 = icmp eq i32 %37, -1
  br i1 %.not.4, label %._crit_edge31, label %38

._crit_edge31:                                    ; preds = %36
  %.phi.trans.insert32 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 5
  %.pre33 = load i32, ptr %.phi.trans.insert32, align 4, !tbaa !5
  br label %43

38:                                               ; preds = %36
  %39 = sext i32 %37 to i64
  %40 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %39, i64 4
  %41 = load i32, ptr %40, align 16, !tbaa !5
  %42 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 5
  store i32 %41, ptr %42, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %._crit_edge31, %38
  %44 = phi i32 [ %.pre33, %._crit_edge31 ], [ %41, %38 ]
  %.not.5 = icmp eq i32 %44, -1
  br i1 %.not.5, label %._crit_edge34, label %45

._crit_edge34:                                    ; preds = %43
  %.phi.trans.insert35 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 6
  %.pre36 = load i32, ptr %.phi.trans.insert35, align 8, !tbaa !5
  br label %50

45:                                               ; preds = %43
  %46 = sext i32 %44 to i64
  %47 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %46, i64 5
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 6
  store i32 %48, ptr %49, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %._crit_edge34, %45
  %51 = phi i32 [ %.pre36, %._crit_edge34 ], [ %48, %45 ]
  %.not.6 = icmp eq i32 %51, -1
  br i1 %.not.6, label %._crit_edge37, label %52

._crit_edge37:                                    ; preds = %50
  %.phi.trans.insert38 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 7
  %.pre39 = load i32, ptr %.phi.trans.insert38, align 4, !tbaa !5
  br label %57

52:                                               ; preds = %50
  %53 = sext i32 %51 to i64
  %54 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %53, i64 6
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 7
  store i32 %55, ptr %56, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %._crit_edge37, %52
  %58 = phi i32 [ %.pre39, %._crit_edge37 ], [ %55, %52 ]
  %.not.7 = icmp eq i32 %58, -1
  br i1 %.not.7, label %._crit_edge40, label %59

._crit_edge40:                                    ; preds = %57
  %.phi.trans.insert41 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 8
  %.pre42 = load i32, ptr %.phi.trans.insert41, align 16, !tbaa !5
  br label %64

59:                                               ; preds = %57
  %60 = sext i32 %58 to i64
  %61 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %60, i64 7
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 8
  store i32 %62, ptr %63, align 16, !tbaa !5
  br label %64

64:                                               ; preds = %._crit_edge40, %59
  %65 = phi i32 [ %.pre42, %._crit_edge40 ], [ %62, %59 ]
  %.not.8 = icmp eq i32 %65, -1
  br i1 %.not.8, label %._crit_edge43, label %66

._crit_edge43:                                    ; preds = %64
  %.phi.trans.insert44 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 9
  %.pre45 = load i32, ptr %.phi.trans.insert44, align 4, !tbaa !5
  br label %71

66:                                               ; preds = %64
  %67 = sext i32 %65 to i64
  %68 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %67, i64 8
  %69 = load i32, ptr %68, align 16, !tbaa !5
  %70 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 9
  store i32 %69, ptr %70, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %._crit_edge43, %66
  %72 = phi i32 [ %.pre45, %._crit_edge43 ], [ %69, %66 ]
  %.not.9 = icmp eq i32 %72, -1
  br i1 %.not.9, label %._crit_edge46, label %73

._crit_edge46:                                    ; preds = %71
  %.phi.trans.insert47 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 10
  %.pre48 = load i32, ptr %.phi.trans.insert47, align 8, !tbaa !5
  br label %78

73:                                               ; preds = %71
  %74 = sext i32 %72 to i64
  %75 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %74, i64 9
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 10
  store i32 %76, ptr %77, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %._crit_edge46, %73
  %79 = phi i32 [ %.pre48, %._crit_edge46 ], [ %76, %73 ]
  %.not.10 = icmp eq i32 %79, -1
  br i1 %.not.10, label %._crit_edge49, label %80

._crit_edge49:                                    ; preds = %78
  %.phi.trans.insert50 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 11
  %.pre51 = load i32, ptr %.phi.trans.insert50, align 4, !tbaa !5
  br label %85

80:                                               ; preds = %78
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %81, i64 10
  %83 = load i32, ptr %82, align 8, !tbaa !5
  %84 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 11
  store i32 %83, ptr %84, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %._crit_edge49, %80
  %86 = phi i32 [ %.pre51, %._crit_edge49 ], [ %83, %80 ]
  %.not.11 = icmp eq i32 %86, -1
  br i1 %.not.11, label %._crit_edge52, label %87

._crit_edge52:                                    ; preds = %85
  %.phi.trans.insert53 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 12
  %.pre54 = load i32, ptr %.phi.trans.insert53, align 16, !tbaa !5
  br label %92

87:                                               ; preds = %85
  %88 = sext i32 %86 to i64
  %89 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %88, i64 11
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 12
  store i32 %90, ptr %91, align 16, !tbaa !5
  br label %92

92:                                               ; preds = %._crit_edge52, %87
  %93 = phi i32 [ %.pre54, %._crit_edge52 ], [ %90, %87 ]
  %.not.12 = icmp eq i32 %93, -1
  br i1 %.not.12, label %._crit_edge55, label %94

._crit_edge55:                                    ; preds = %92
  %.phi.trans.insert56 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 13
  %.pre57 = load i32, ptr %.phi.trans.insert56, align 4, !tbaa !5
  br label %99

94:                                               ; preds = %92
  %95 = sext i32 %93 to i64
  %96 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %95, i64 12
  %97 = load i32, ptr %96, align 16, !tbaa !5
  %98 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 13
  store i32 %97, ptr %98, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %._crit_edge55, %94
  %100 = phi i32 [ %.pre57, %._crit_edge55 ], [ %97, %94 ]
  %.not.13 = icmp eq i32 %100, -1
  br i1 %.not.13, label %._crit_edge58, label %101

._crit_edge58:                                    ; preds = %99
  %.phi.trans.insert59 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 14
  %.pre60 = load i32, ptr %.phi.trans.insert59, align 8, !tbaa !5
  br label %106

101:                                              ; preds = %99
  %102 = sext i32 %100 to i64
  %103 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %102, i64 13
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 14
  store i32 %104, ptr %105, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %._crit_edge58, %101
  %107 = phi i32 [ %.pre60, %._crit_edge58 ], [ %104, %101 ]
  %.not.14 = icmp eq i32 %107, -1
  br i1 %.not.14, label %._crit_edge61, label %108

._crit_edge61:                                    ; preds = %106
  %.phi.trans.insert62 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 15
  %.pre63 = load i32, ptr %.phi.trans.insert62, align 4, !tbaa !5
  br label %113

108:                                              ; preds = %106
  %109 = sext i32 %107 to i64
  %110 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %109, i64 14
  %111 = load i32, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 15
  store i32 %111, ptr %112, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %._crit_edge61, %108
  %114 = phi i32 [ %.pre63, %._crit_edge61 ], [ %111, %108 ]
  %.not.15 = icmp eq i32 %114, -1
  br i1 %.not.15, label %._crit_edge64, label %115

._crit_edge64:                                    ; preds = %113
  %.phi.trans.insert65 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 16
  %.pre66 = load i32, ptr %.phi.trans.insert65, align 16, !tbaa !5
  br label %120

115:                                              ; preds = %113
  %116 = sext i32 %114 to i64
  %117 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %116, i64 15
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 16
  store i32 %118, ptr %119, align 16, !tbaa !5
  br label %120

120:                                              ; preds = %._crit_edge64, %115
  %121 = phi i32 [ %.pre66, %._crit_edge64 ], [ %118, %115 ]
  %.not.16 = icmp eq i32 %121, -1
  br i1 %.not.16, label %._crit_edge67, label %122

._crit_edge67:                                    ; preds = %120
  %.phi.trans.insert68 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 17
  %.pre69 = load i32, ptr %.phi.trans.insert68, align 4, !tbaa !5
  br label %127

122:                                              ; preds = %120
  %123 = sext i32 %121 to i64
  %124 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %123, i64 16
  %125 = load i32, ptr %124, align 16, !tbaa !5
  %126 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 17
  store i32 %125, ptr %126, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %._crit_edge67, %122
  %128 = phi i32 [ %.pre69, %._crit_edge67 ], [ %125, %122 ]
  %.not.17 = icmp eq i32 %128, -1
  br i1 %.not.17, label %._crit_edge70, label %129

._crit_edge70:                                    ; preds = %127
  %.phi.trans.insert71 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 18
  %.pre72 = load i32, ptr %.phi.trans.insert71, align 8, !tbaa !5
  br label %134

129:                                              ; preds = %127
  %130 = sext i32 %128 to i64
  %131 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %130, i64 17
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 18
  store i32 %132, ptr %133, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %._crit_edge70, %129
  %135 = phi i32 [ %.pre72, %._crit_edge70 ], [ %132, %129 ]
  %.not.18 = icmp eq i32 %135, -1
  br i1 %.not.18, label %141, label %136

136:                                              ; preds = %134
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %137, i64 18
  %139 = load i32, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds [100020 x [20 x i32]], ptr @spt, i64 0, i64 %6, i64 19
  store i32 %139, ptr %140, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %136, %134
  %142 = getelementptr inbounds [100020 x %"class.std::vector"], ptr @mst, i64 0, i64 %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %143 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #3
  store ptr %143, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %144 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #3
  store ptr %144, ptr %5, align 8
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %145, label %.lr.ph, label %._crit_edge

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

146:                                              ; preds = %.lr.ph, %146
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %148 = load i32, ptr %147, align 4, !tbaa !5
  call void @_Z3dfsiii(i32 noundef %148, i32 noundef %0, i32 noundef %9)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %150 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %150, label %146, label %._crit_edge
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(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_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_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 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(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_iteratorIPiSt6vectorIiSaIiEEEppEv(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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