; LLVM IR from ShahjalalShohag/code-library :: Graph Theory/Cactus Graph.ll (Z4dfs2ii)

; 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { ptr }

@ct = external dso_local global [200009 x %"class.std::vector.0"], align 16
@id = external dso_local global i32, align 4
@par = external dso_local global [200009 x [19 x i32]], align 16
@dep = external dso_local global [200009 x i32], align 16
@cnt = external dso_local global [200009 x i32], align 16
@c = external dso_local global i32, align 4
@comp = external dso_local global [200009 x i32], 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 uwtable
define dso_local void @_Z4dfs2ii(i32 noundef %0, i32 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %9 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %12
  %14 = getelementptr inbounds [19 x i32], ptr %13, i64 0, i64 0
  store i32 %10, ptr %14, align 4, !tbaa !5
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [200009 x i32], ptr @dep, i64 0, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [200009 x i32], ptr @dep, i64 0, i64 %21
  store i32 %19, ptr %22, align 4, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [200009 x i32], ptr @cnt, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = load i32, ptr @id, align 4, !tbaa !5
  %29 = icmp sgt i32 %27, %28
  %30 = zext i1 %29 to i32
  %31 = add nsw i32 %26, %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [200009 x i32], ptr @cnt, i64 0, i64 %33
  store i32 %31, ptr %34, align 4, !tbaa !5
  %35 = load i32, ptr @c, align 4, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [200009 x i32], ptr @comp, i64 0, i64 %37
  store i32 %35, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %65, %2
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = icmp sle i32 %40, 18
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %68

43:                                               ; preds = %39
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %45
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sub nsw i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [19 x i32], ptr %46, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %52
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [19 x i32], ptr %53, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %60
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [19 x i32], ptr %61, i64 0, i64 %63
  store i32 %58, ptr %64, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %43
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %5, align 4, !tbaa !5
  br label %39, !llvm.loop !9

68:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @ct, i64 0, i64 %70
  store ptr %71, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %72 = load ptr, ptr %6, align 8, !tbaa !11
  %73 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #4
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %7, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %75 = load ptr, ptr %6, align 8, !tbaa !11
  %76 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #4
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %8, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  br label %78

78:                                               ; preds = %91, %68
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %79, label %81, label %80

80:                                               ; preds = %78
  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 %93

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %9, align 4, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = icmp ne i32 %84, %85
  br i1 %86, label %87, label %90

87:                                               ; preds = %81
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z4dfs2ii(i32 noundef %88, i32 noundef %89)
  br label %90

90:                                               ; preds = %87, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %91

91:                                               ; preds = %90
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br label %78

93:                                               ; preds = %80
  ret void
}

; 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { ptr }

@ct = external dso_local global [200009 x %"class.std::vector.0"], align 16
@id = external dso_local local_unnamed_addr global i32, align 4
@par = external dso_local local_unnamed_addr global [200009 x [19 x i32]], align 16
@dep = external dso_local local_unnamed_addr global [200009 x i32], align 16
@cnt = external dso_local local_unnamed_addr global [200009 x i32], align 16
@c = external dso_local local_unnamed_addr global i32, align 4
@comp = external dso_local local_unnamed_addr global [200009 x i32], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z4dfs2ii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %5 = sext i32 %0 to i64
  %6 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5
  store i32 %1, ptr %6, align 4, !tbaa !5
  %7 = sext i32 %1 to i64
  %8 = getelementptr inbounds [200009 x i32], ptr @dep, i64 0, i64 %7
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = add nsw i32 %9, 1
  %11 = getelementptr inbounds [200009 x i32], ptr @dep, i64 0, i64 %5
  store i32 %10, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds [200009 x i32], ptr @cnt, i64 0, i64 %7
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = load i32, ptr @id, align 4, !tbaa !5
  %15 = icmp slt i32 %14, %0
  %16 = zext i1 %15 to i32
  %17 = add nsw i32 %13, %16
  %18 = getelementptr inbounds [200009 x i32], ptr @cnt, i64 0, i64 %5
  store i32 %17, ptr %18, align 4, !tbaa !5
  %19 = load i32, ptr @c, align 4, !tbaa !5
  %20 = getelementptr inbounds [200009 x i32], ptr @comp, i64 0, i64 %5
  store i32 %19, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %7, i64 0
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 1
  store i32 %22, ptr %23, align 4, !tbaa !5
  %24 = sext i32 %22 to i64
  %25 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %24, i64 1
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 2
  store i32 %26, ptr %27, align 4, !tbaa !5
  %28 = sext i32 %26 to i64
  %29 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %28, i64 2
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 3
  store i32 %30, ptr %31, align 4, !tbaa !5
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %32, i64 3
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 4
  store i32 %34, ptr %35, align 4, !tbaa !5
  %36 = sext i32 %34 to i64
  %37 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %36, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 5
  store i32 %38, ptr %39, align 4, !tbaa !5
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %40, i64 5
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 6
  store i32 %42, ptr %43, align 4, !tbaa !5
  %44 = sext i32 %42 to i64
  %45 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %44, i64 6
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 7
  store i32 %46, ptr %47, align 4, !tbaa !5
  %48 = sext i32 %46 to i64
  %49 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %48, i64 7
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 8
  store i32 %50, ptr %51, align 4, !tbaa !5
  %52 = sext i32 %50 to i64
  %53 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %52, i64 8
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 9
  store i32 %54, ptr %55, align 4, !tbaa !5
  %56 = sext i32 %54 to i64
  %57 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %56, i64 9
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 10
  store i32 %58, ptr %59, align 4, !tbaa !5
  %60 = sext i32 %58 to i64
  %61 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %60, i64 10
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 11
  store i32 %62, ptr %63, align 4, !tbaa !5
  %64 = sext i32 %62 to i64
  %65 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %64, i64 11
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 12
  store i32 %66, ptr %67, align 4, !tbaa !5
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %68, i64 12
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 13
  store i32 %70, ptr %71, align 4, !tbaa !5
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %72, i64 13
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 14
  store i32 %74, ptr %75, align 4, !tbaa !5
  %76 = sext i32 %74 to i64
  %77 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %76, i64 14
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 15
  store i32 %78, ptr %79, align 4, !tbaa !5
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %80, i64 15
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 16
  store i32 %82, ptr %83, align 4, !tbaa !5
  %84 = sext i32 %82 to i64
  %85 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %84, i64 16
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 17
  store i32 %86, ptr %87, align 4, !tbaa !5
  %88 = sext i32 %86 to i64
  %89 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %88, i64 17
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = getelementptr inbounds [200009 x [19 x i32]], ptr @par, i64 0, i64 %5, i64 18
  store i32 %90, ptr %91, align 4, !tbaa !5
  %92 = getelementptr inbounds [200009 x %"class.std::vector.0"], ptr @ct, i64 0, i64 %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %93 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #3
  store ptr %93, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %94 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #3
  store ptr %94, ptr %4, align 8
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %95, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %99, %2
  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.ph:                                           ; preds = %2, %99
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not = icmp eq i32 %97, %1
  br i1 %.not, label %99, label %98

98:                                               ; preds = %.lr.ph
  call void @_Z4dfs2ii(i32 noundef %97, i32 noundef %0)
  br label %99

99:                                               ; preds = %98, %.lr.ph
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %101, label %.lr.ph, label %._crit_edge
}

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

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

attributes #0 = { mustprogress 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 = { 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: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass