; LLVM IR from eyangch/competitive-programming :: Codeforces/1527/d.ll (Z3dfsxxxx)

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

@de = external dso_local global [200000 x i64], align 16
@su = external dso_local global [200000 x i64], align 16
@up = external dso_local global [20 x [200000 x i64]], align 16
@c0 = external dso_local global [200000 x i64], align 16
@graph = external dso_local global [200000 x %"class.std::vector"], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3dfsxxxx(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !5
  %15 = load i64, ptr %8, align 8, !tbaa !5
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %4
  %18 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %18, ptr %8, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %17, %4
  %20 = load i64, ptr %7, align 8, !tbaa !5
  %21 = load i64, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds [200000 x i64], ptr @de, i64 0, i64 %21
  store i64 %20, ptr %22, align 8, !tbaa !5
  %23 = load i64, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds [200000 x i64], ptr @su, i64 0, i64 %23
  store i64 1, ptr %24, align 8, !tbaa !5
  %25 = load i64, ptr %8, align 8, !tbaa !5
  %26 = load i64, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds [200000 x i64], ptr @c0, i64 0, i64 %26
  store i64 %25, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 1, ptr %9, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %48, %19
  %29 = load i64, ptr %9, align 8, !tbaa !5
  %30 = icmp slt i64 %29, 20
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %28
  %33 = load i64, ptr %9, align 8, !tbaa !5
  %34 = sub nsw i64 %33, 1
  %35 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 %34
  %36 = load i64, ptr %9, align 8, !tbaa !5
  %37 = sub nsw i64 %36, 1
  %38 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 %37
  %39 = load i64, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds [200000 x i64], ptr %38, i64 0, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds [200000 x i64], ptr %35, i64 0, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = load i64, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 %44
  %46 = load i64, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds [200000 x i64], ptr %45, i64 0, i64 %46
  store i64 %43, ptr %47, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %32
  %49 = load i64, ptr %9, align 8, !tbaa !5
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr %9, align 8, !tbaa !5
  br label %28, !llvm.loop !9

51:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %52 = load i64, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %52
  store ptr %53, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %54 = load ptr, ptr %10, align 8, !tbaa !11
  %55 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #4
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %57 = load ptr, ptr %10, align 8, !tbaa !11
  %58 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #4
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  br label %60

60:                                               ; preds = %87, %51
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %61, label %63, label %62

62:                                               ; preds = %60
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %89

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %65 = load i64, ptr %64, align 8, !tbaa !5
  store i64 %65, ptr %14, align 8, !tbaa !5
  %66 = load i64, ptr %14, align 8, !tbaa !5
  %67 = load i64, ptr %6, align 8, !tbaa !5
  %68 = icmp eq i64 %66, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  store i32 6, ptr %13, align 4
  br label %84

70:                                               ; preds = %63
  %71 = load i64, ptr %5, align 8, !tbaa !5
  %72 = load i64, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds [200000 x i64], ptr @up, i64 0, i64 %72
  store i64 %71, ptr %73, align 8, !tbaa !5
  %74 = load i64, ptr %14, align 8, !tbaa !5
  %75 = load i64, ptr %5, align 8, !tbaa !5
  %76 = load i64, ptr %7, align 8, !tbaa !5
  %77 = add nsw i64 %76, 1
  %78 = load i64, ptr %8, align 8, !tbaa !5
  %79 = call noundef i64 @_Z3dfsxxxx(i64 noundef %74, i64 noundef %75, i64 noundef %77, i64 noundef %78)
  %80 = load i64, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds [200000 x i64], ptr @su, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = add nsw i64 %82, %79
  store i64 %83, ptr %81, align 8, !tbaa !5
  store i32 0, ptr %13, align 4
  br label %84

84:                                               ; preds = %70, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %85 = load i32, ptr %13, align 4
  switch i32 %85, label %93 [
    i32 0, label %86
    i32 6, label %87
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86, %84
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br label %60

89:                                               ; preds = %62
  %90 = load i64, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds [200000 x i64], ptr @su, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !5
  ret i64 %92

93:                                               ; preds = %84
  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}


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

@de = external dso_local local_unnamed_addr global [200000 x i64], align 16
@su = external dso_local local_unnamed_addr global [200000 x i64], align 16
@up = external dso_local local_unnamed_addr global [20 x [200000 x i64]], align 16
@c0 = external dso_local local_unnamed_addr global [200000 x i64], align 16
@graph = external dso_local global [200000 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_Z3dfsxxxx(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = icmp eq i64 %3, 0
  %spec.select = select i1 %7, i64 %0, i64 %3
  %8 = getelementptr inbounds [200000 x i64], ptr @de, i64 0, i64 %0
  store i64 %2, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds [200000 x i64], ptr @su, i64 0, i64 %0
  store i64 1, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds [200000 x i64], ptr @c0, i64 0, i64 %0
  store i64 %spec.select, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 0, i64 %0
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 0, i64 %12
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 1, i64 %0
  store i64 %14, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 1, i64 %14
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 2, i64 %0
  store i64 %17, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 2, i64 %17
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 3, i64 %0
  store i64 %20, ptr %21, align 8, !tbaa !5
  %22 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 3, i64 %20
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 4, i64 %0
  store i64 %23, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 4, i64 %23
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 5, i64 %0
  store i64 %26, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 5, i64 %26
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 6, i64 %0
  store i64 %29, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 6, i64 %29
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 7, i64 %0
  store i64 %32, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 7, i64 %32
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 8, i64 %0
  store i64 %35, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 8, i64 %35
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 9, i64 %0
  store i64 %38, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 9, i64 %38
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 10, i64 %0
  store i64 %41, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 10, i64 %41
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 11, i64 %0
  store i64 %44, ptr %45, align 8, !tbaa !5
  %46 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 11, i64 %44
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 12, i64 %0
  store i64 %47, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 12, i64 %47
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 13, i64 %0
  store i64 %50, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 13, i64 %50
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 14, i64 %0
  store i64 %53, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 14, i64 %53
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 15, i64 %0
  store i64 %56, ptr %57, align 8, !tbaa !5
  %58 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 15, i64 %56
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 16, i64 %0
  store i64 %59, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 16, i64 %59
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 17, i64 %0
  store i64 %62, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 17, i64 %62
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 18, i64 %0
  store i64 %65, ptr %66, align 8, !tbaa !5
  %67 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 18, i64 %65
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds [20 x [200000 x i64]], ptr @up, i64 0, i64 19, i64 %0
  store i64 %68, ptr %69, align 8, !tbaa !5
  %70 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %71 = tail call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #3
  store ptr %71, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %72 = tail call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #3
  store ptr %72, ptr %6, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  br i1 %73, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %74 = add nsw i64 %2, 1
  br label %76

._crit_edge:                                      ; preds = %85, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %75 = load i64, ptr %9, align 8, !tbaa !5
  ret i64 %75

76:                                               ; preds = %.lr.ph, %85
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = icmp eq i64 %78, %1
  br i1 %79, label %85, label %80

80:                                               ; preds = %76
  %81 = getelementptr inbounds [200000 x i64], ptr @up, i64 0, i64 %78
  store i64 %0, ptr %81, align 8, !tbaa !5
  %82 = call noundef i64 @_Z3dfsxxxx(i64 noundef %78, i64 noundef %0, i64 noundef %74, i64 noundef %spec.select)
  %83 = load i64, ptr %9, align 8, !tbaa !5
  %84 = add nsw i64 %83, %82
  store i64 %84, ptr %9, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %76, %80
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %87 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  br i1 %87, label %76, 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 @_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"}


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