; LLVM IR from reyadussalahin/problem-solving :: graph/lca/codeforces/F208E/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 }

@adj = external dso_local global [100010 x %"class.std::vector"], align 16
@lev = external dso_local global [100010 x i32], align 16
@stp = external dso_local global [100010 x [19 x i32]], align 16
@stm = external dso_local global [100010 x i32], align 16
@etm = external dso_local global [100010 x i32], align 16
@dtm = external dso_local global i32, align 4
@b = external dso_local global [100010 x %"class.std::vector"], 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 @dtm, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr @dtm, align 4, !tbaa !5
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100010 x i32], ptr @stm, i64 0, i64 %15
  store i32 %12, ptr %16, align 4, !tbaa !5
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @b, i64 0, i64 %18
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100010 x i32], ptr @stm, i64 0, i64 %21
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100010 x i32], ptr @lev, i64 0, i64 %25
  store i32 %23, ptr %26, align 4, !tbaa !5
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %29
  %31 = getelementptr inbounds [19 x i32], ptr %30, i64 0, i64 0
  store i32 %27, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %69, %3
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 19
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %72

36:                                               ; preds = %32
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %38
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sub nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [19 x i32], ptr %39, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp ne i32 %44, -1
  br i1 %45, label %46, label %68

46:                                               ; preds = %36
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %48
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sub nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [19 x i32], ptr %49, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %55
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sub nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [19 x i32], ptr %56, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %63
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [19 x i32], ptr %64, i64 0, i64 %66
  store i32 %61, ptr %67, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %46, %36
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !5
  br label %32, !llvm.loop !9

72:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @adj, i64 0, i64 %74
  store ptr %75, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %76 = load ptr, ptr %8, align 8, !tbaa !11
  %77 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #4
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %79 = load ptr, ptr %8, align 8, !tbaa !11
  %80 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #4
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  br label %82

82:                                               ; preds = %92, %72
  %83 = 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 %83, label %85, label %84

84:                                               ; preds = %82
  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 %94

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %87 = load i32, ptr %86, align 4, !tbaa !5
  store i32 %87, ptr %11, align 4, !tbaa !5
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  call void @_Z3dfsiii(i32 noundef %88, i32 noundef %89, i32 noundef %91)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %92

92:                                               ; preds = %85
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %82

94:                                               ; preds = %84
  %95 = load i32, ptr @dtm, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr @dtm, align 4, !tbaa !5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100010 x i32], ptr @etm, i64 0, i64 %98
  store i32 %95, ptr %99, align 4, !tbaa !5
  ret void
}

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

; 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 }

@adj = external dso_local global [100010 x %"class.std::vector"], align 16
@lev = external dso_local local_unnamed_addr global [100010 x i32], align 16
@stp = external dso_local local_unnamed_addr global [100010 x [19 x i32]], align 16
@stm = external dso_local global [100010 x i32], align 16
@etm = external dso_local local_unnamed_addr global [100010 x i32], align 16
@dtm = external dso_local local_unnamed_addr global i32, align 4
@b = external dso_local global [100010 x %"class.std::vector"], align 16

; Function Attrs: mustprogress 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 = load i32, ptr @dtm, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr @dtm, align 4, !tbaa !5
  %8 = sext i32 %0 to i64
  %9 = getelementptr inbounds [100010 x i32], ptr @stm, i64 0, i64 %8
  store i32 %6, ptr %9, align 4, !tbaa !5
  %10 = sext i32 %2 to i64
  %11 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @b, i64 0, i64 %10
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %12 = getelementptr inbounds [100010 x i32], ptr @lev, i64 0, i64 %8
  store i32 %2, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8
  store i32 %1, ptr %13, align 4, !tbaa !5
  %.not = icmp eq i32 %1, -1
  br i1 %.not, label %._crit_edge25, label %15

._crit_edge25:                                    ; preds = %3
  %.phi.trans.insert = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 1
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %20

.lr.ph:                                           ; preds = %139
  %14 = add nsw i32 %2, 1
  br label %147

15:                                               ; preds = %3
  %16 = sext i32 %1 to i64
  %17 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %16, i64 0
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 1
  store i32 %18, ptr %19, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %._crit_edge25, %15
  %21 = phi i32 [ %.pre, %._crit_edge25 ], [ %18, %15 ]
  %.not.1 = icmp eq i32 %21, -1
  br i1 %.not.1, label %._crit_edge26, label %22

._crit_edge26:                                    ; preds = %20
  %.phi.trans.insert27 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 2
  %.pre28 = load i32, ptr %.phi.trans.insert27, align 4, !tbaa !5
  br label %27

22:                                               ; preds = %20
  %23 = sext i32 %21 to i64
  %24 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %23, i64 1
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 2
  store i32 %25, ptr %26, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %._crit_edge26, %22
  %28 = phi i32 [ %.pre28, %._crit_edge26 ], [ %25, %22 ]
  %.not.2 = icmp eq i32 %28, -1
  br i1 %.not.2, label %._crit_edge29, label %29

._crit_edge29:                                    ; preds = %27
  %.phi.trans.insert30 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 3
  %.pre31 = load i32, ptr %.phi.trans.insert30, align 4, !tbaa !5
  br label %34

29:                                               ; preds = %27
  %30 = sext i32 %28 to i64
  %31 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %30, i64 2
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 3
  store i32 %32, ptr %33, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %._crit_edge29, %29
  %35 = phi i32 [ %.pre31, %._crit_edge29 ], [ %32, %29 ]
  %.not.3 = icmp eq i32 %35, -1
  br i1 %.not.3, label %._crit_edge32, label %36

._crit_edge32:                                    ; preds = %34
  %.phi.trans.insert33 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 4
  %.pre34 = load i32, ptr %.phi.trans.insert33, align 4, !tbaa !5
  br label %41

36:                                               ; preds = %34
  %37 = sext i32 %35 to i64
  %38 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %37, i64 3
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 4
  store i32 %39, ptr %40, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %._crit_edge32, %36
  %42 = phi i32 [ %.pre34, %._crit_edge32 ], [ %39, %36 ]
  %.not.4 = icmp eq i32 %42, -1
  br i1 %.not.4, label %._crit_edge35, label %43

._crit_edge35:                                    ; preds = %41
  %.phi.trans.insert36 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 5
  %.pre37 = load i32, ptr %.phi.trans.insert36, align 4, !tbaa !5
  br label %48

43:                                               ; preds = %41
  %44 = sext i32 %42 to i64
  %45 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %44, i64 4
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 5
  store i32 %46, ptr %47, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %._crit_edge35, %43
  %49 = phi i32 [ %.pre37, %._crit_edge35 ], [ %46, %43 ]
  %.not.5 = icmp eq i32 %49, -1
  br i1 %.not.5, label %._crit_edge38, label %50

._crit_edge38:                                    ; preds = %48
  %.phi.trans.insert39 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 6
  %.pre40 = load i32, ptr %.phi.trans.insert39, align 4, !tbaa !5
  br label %55

50:                                               ; preds = %48
  %51 = sext i32 %49 to i64
  %52 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %51, i64 5
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 6
  store i32 %53, ptr %54, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %._crit_edge38, %50
  %56 = phi i32 [ %.pre40, %._crit_edge38 ], [ %53, %50 ]
  %.not.6 = icmp eq i32 %56, -1
  br i1 %.not.6, label %._crit_edge41, label %57

._crit_edge41:                                    ; preds = %55
  %.phi.trans.insert42 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 7
  %.pre43 = load i32, ptr %.phi.trans.insert42, align 4, !tbaa !5
  br label %62

57:                                               ; preds = %55
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %58, i64 6
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 7
  store i32 %60, ptr %61, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %._crit_edge41, %57
  %63 = phi i32 [ %.pre43, %._crit_edge41 ], [ %60, %57 ]
  %.not.7 = icmp eq i32 %63, -1
  br i1 %.not.7, label %._crit_edge44, label %64

._crit_edge44:                                    ; preds = %62
  %.phi.trans.insert45 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 8
  %.pre46 = load i32, ptr %.phi.trans.insert45, align 4, !tbaa !5
  br label %69

64:                                               ; preds = %62
  %65 = sext i32 %63 to i64
  %66 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %65, i64 7
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 8
  store i32 %67, ptr %68, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %._crit_edge44, %64
  %70 = phi i32 [ %.pre46, %._crit_edge44 ], [ %67, %64 ]
  %.not.8 = icmp eq i32 %70, -1
  br i1 %.not.8, label %._crit_edge47, label %71

._crit_edge47:                                    ; preds = %69
  %.phi.trans.insert48 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 9
  %.pre49 = load i32, ptr %.phi.trans.insert48, align 4, !tbaa !5
  br label %76

71:                                               ; preds = %69
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %72, i64 8
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 9
  store i32 %74, ptr %75, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %._crit_edge47, %71
  %77 = phi i32 [ %.pre49, %._crit_edge47 ], [ %74, %71 ]
  %.not.9 = icmp eq i32 %77, -1
  br i1 %.not.9, label %._crit_edge50, label %78

._crit_edge50:                                    ; preds = %76
  %.phi.trans.insert51 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 10
  %.pre52 = load i32, ptr %.phi.trans.insert51, align 4, !tbaa !5
  br label %83

78:                                               ; preds = %76
  %79 = sext i32 %77 to i64
  %80 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %79, i64 9
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 10
  store i32 %81, ptr %82, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %._crit_edge50, %78
  %84 = phi i32 [ %.pre52, %._crit_edge50 ], [ %81, %78 ]
  %.not.10 = icmp eq i32 %84, -1
  br i1 %.not.10, label %._crit_edge53, label %85

._crit_edge53:                                    ; preds = %83
  %.phi.trans.insert54 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 11
  %.pre55 = load i32, ptr %.phi.trans.insert54, align 4, !tbaa !5
  br label %90

85:                                               ; preds = %83
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %86, i64 10
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 11
  store i32 %88, ptr %89, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %._crit_edge53, %85
  %91 = phi i32 [ %.pre55, %._crit_edge53 ], [ %88, %85 ]
  %.not.11 = icmp eq i32 %91, -1
  br i1 %.not.11, label %._crit_edge56, label %92

._crit_edge56:                                    ; preds = %90
  %.phi.trans.insert57 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 12
  %.pre58 = load i32, ptr %.phi.trans.insert57, align 4, !tbaa !5
  br label %97

92:                                               ; preds = %90
  %93 = sext i32 %91 to i64
  %94 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %93, i64 11
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 12
  store i32 %95, ptr %96, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %._crit_edge56, %92
  %98 = phi i32 [ %.pre58, %._crit_edge56 ], [ %95, %92 ]
  %.not.12 = icmp eq i32 %98, -1
  br i1 %.not.12, label %._crit_edge59, label %99

._crit_edge59:                                    ; preds = %97
  %.phi.trans.insert60 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 13
  %.pre61 = load i32, ptr %.phi.trans.insert60, align 4, !tbaa !5
  br label %104

99:                                               ; preds = %97
  %100 = sext i32 %98 to i64
  %101 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %100, i64 12
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 13
  store i32 %102, ptr %103, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %._crit_edge59, %99
  %105 = phi i32 [ %.pre61, %._crit_edge59 ], [ %102, %99 ]
  %.not.13 = icmp eq i32 %105, -1
  br i1 %.not.13, label %._crit_edge62, label %106

._crit_edge62:                                    ; preds = %104
  %.phi.trans.insert63 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 14
  %.pre64 = load i32, ptr %.phi.trans.insert63, align 4, !tbaa !5
  br label %111

106:                                              ; preds = %104
  %107 = sext i32 %105 to i64
  %108 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %107, i64 13
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 14
  store i32 %109, ptr %110, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %._crit_edge62, %106
  %112 = phi i32 [ %.pre64, %._crit_edge62 ], [ %109, %106 ]
  %.not.14 = icmp eq i32 %112, -1
  br i1 %.not.14, label %._crit_edge65, label %113

._crit_edge65:                                    ; preds = %111
  %.phi.trans.insert66 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 15
  %.pre67 = load i32, ptr %.phi.trans.insert66, align 4, !tbaa !5
  br label %118

113:                                              ; preds = %111
  %114 = sext i32 %112 to i64
  %115 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %114, i64 14
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 15
  store i32 %116, ptr %117, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %._crit_edge65, %113
  %119 = phi i32 [ %.pre67, %._crit_edge65 ], [ %116, %113 ]
  %.not.15 = icmp eq i32 %119, -1
  br i1 %.not.15, label %._crit_edge68, label %120

._crit_edge68:                                    ; preds = %118
  %.phi.trans.insert69 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 16
  %.pre70 = load i32, ptr %.phi.trans.insert69, align 4, !tbaa !5
  br label %125

120:                                              ; preds = %118
  %121 = sext i32 %119 to i64
  %122 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %121, i64 15
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 16
  store i32 %123, ptr %124, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %._crit_edge68, %120
  %126 = phi i32 [ %.pre70, %._crit_edge68 ], [ %123, %120 ]
  %.not.16 = icmp eq i32 %126, -1
  br i1 %.not.16, label %._crit_edge71, label %127

._crit_edge71:                                    ; preds = %125
  %.phi.trans.insert72 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 17
  %.pre73 = load i32, ptr %.phi.trans.insert72, align 4, !tbaa !5
  br label %132

127:                                              ; preds = %125
  %128 = sext i32 %126 to i64
  %129 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %128, i64 16
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 17
  store i32 %130, ptr %131, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %._crit_edge71, %127
  %133 = phi i32 [ %.pre73, %._crit_edge71 ], [ %130, %127 ]
  %.not.17 = icmp eq i32 %133, -1
  br i1 %.not.17, label %139, label %134

134:                                              ; preds = %132
  %135 = sext i32 %133 to i64
  %136 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %135, i64 17
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = getelementptr inbounds [100010 x [19 x i32]], ptr @stp, i64 0, i64 %8, i64 18
  store i32 %137, ptr %138, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %134, %132
  %140 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @adj, i64 0, i64 %8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %141 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #4
  store ptr %141, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %142 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #4
  store ptr %142, ptr %5, align 8
  %143 = 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) #4
  br i1 %143, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %147, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %144 = load i32, ptr @dtm, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr @dtm, align 4, !tbaa !5
  %146 = getelementptr inbounds [100010 x i32], ptr @etm, i64 0, i64 %8
  store i32 %144, ptr %146, align 4, !tbaa !5
  ret void

147:                                              ; preds = %.lr.ph, %147
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %149 = load i32, ptr %148, align 4, !tbaa !5
  call void @_Z3dfsiii(i32 noundef %149, i32 noundef %0, i32 noundef %14)
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %151 = 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) #4
  br i1 %151, label %147, label %._crit_edge
}

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

; 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 #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_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 #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)) local_unnamed_addr #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)) local_unnamed_addr #2 align 2

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