; LLVM IR from eyangch/competitive-programming :: Codeforces/1611/e1.ll (Z4dfsFxxx)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4dfsFxxx(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
  %4 = alloca i64, align 8
  %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 i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !5
  %16 = load i64, ptr %5, align 8, !tbaa !5
  %17 = load i64, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %17
  %19 = getelementptr inbounds [20 x i64], ptr %18, i64 0, i64 0
  store i64 %16, ptr %19, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 1, ptr %7, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %40, %3
  %21 = load i64, ptr %7, align 8, !tbaa !5
  %22 = icmp slt i64 %21, 20
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %43

24:                                               ; preds = %20
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %25
  %27 = load i64, ptr %7, align 8, !tbaa !5
  %28 = sub nsw i64 %27, 1
  %29 = getelementptr inbounds [20 x i64], ptr %26, i64 0, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %30
  %32 = load i64, ptr %7, align 8, !tbaa !5
  %33 = sub nsw i64 %32, 1
  %34 = getelementptr inbounds [20 x i64], ptr %31, i64 0, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = load i64, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %36
  %38 = load i64, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds [20 x i64], ptr %37, i64 0, i64 %38
  store i64 %35, ptr %39, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %24
  %41 = load i64, ptr %7, align 8, !tbaa !5
  %42 = add nsw i64 %41, 1
  store i64 %42, ptr %7, align 8, !tbaa !5
  br label %20, !llvm.loop !9

43:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %44 = load i64, ptr %6, align 8, !tbaa !5
  %45 = sdiv i64 %44, 2
  store i64 %45, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %46 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %46, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %64, %43
  %48 = load i64, ptr %10, align 8, !tbaa !5
  %49 = icmp slt i64 %48, 20
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %67

51:                                               ; preds = %47
  %52 = load i64, ptr %8, align 8, !tbaa !5
  %53 = load i64, ptr %10, align 8, !tbaa !5
  %54 = ashr i64 %52, %53
  %55 = and i64 %54, 1
  %56 = icmp eq i64 %55, 1
  br i1 %56, label %57, label %63

57:                                               ; preds = %51
  %58 = load i64, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %58
  %60 = load i64, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds [20 x i64], ptr %59, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !5
  store i64 %62, ptr %9, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %57, %51
  br label %64

64:                                               ; preds = %63
  %65 = load i64, ptr %10, align 8, !tbaa !5
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %10, align 8, !tbaa !5
  br label %47, !llvm.loop !11

67:                                               ; preds = %50
  %68 = load i64, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds [200000 x i8], ptr @F, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !12, !range !14, !noundef !15
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %75

72:                                               ; preds = %67
  %73 = load i64, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds [200000 x i8], ptr @F, i64 0, i64 %73
  store i8 1, ptr %74, align 1, !tbaa !12
  br label %75

75:                                               ; preds = %72, %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %76 = load i64, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %76
  store ptr %77, ptr %11, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %78 = load ptr, ptr %11, align 8, !tbaa !16
  %79 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #4
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %81 = load ptr, ptr %11, align 8, !tbaa !16
  %82 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #4
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  br label %84

84:                                               ; preds = %102, %75
  %85 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %104

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %89 = load i64, ptr %88, align 8, !tbaa !5
  store i64 %89, ptr %15, align 8, !tbaa !5
  %90 = load i64, ptr %15, align 8, !tbaa !5
  %91 = load i64, ptr %5, align 8, !tbaa !5
  %92 = icmp eq i64 %90, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %87
  store i32 9, ptr %14, align 4
  br label %99

94:                                               ; preds = %87
  %95 = load i64, ptr %15, align 8, !tbaa !5
  %96 = load i64, ptr %4, align 8, !tbaa !5
  %97 = load i64, ptr %6, align 8, !tbaa !5
  %98 = add nsw i64 %97, 1
  call void @_Z4dfsFxxx(i64 noundef %95, i64 noundef %96, i64 noundef %98)
  store i32 0, ptr %14, align 4
  br label %99

99:                                               ; preds = %94, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %100 = load i32, ptr %14, align 4
  switch i32 %100, label %105 [
    i32 0, label %101
    i32 9, label %102
  ]

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101, %99
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br label %84

104:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  ret void

105:                                              ; preds = %99
  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 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"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 }

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z4dfsFxxx(i64 noundef %0, i64 noundef %1, i64 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 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0
  store i64 %1, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %1, i64 0
  %8 = load i64, ptr %7, align 16, !tbaa !5
  %9 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 1
  store i64 %8, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %8, i64 1
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 2
  store i64 %11, ptr %12, align 16, !tbaa !5
  %13 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %11, i64 2
  %14 = load i64, ptr %13, align 16, !tbaa !5
  %15 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 3
  store i64 %14, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %14, i64 3
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 4
  store i64 %17, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %17, i64 4
  %20 = load i64, ptr %19, align 16, !tbaa !5
  %21 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 5
  store i64 %20, ptr %21, align 8, !tbaa !5
  %22 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %20, i64 5
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 6
  store i64 %23, ptr %24, align 16, !tbaa !5
  %25 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %23, i64 6
  %26 = load i64, ptr %25, align 16, !tbaa !5
  %27 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 7
  store i64 %26, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %26, i64 7
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 8
  store i64 %29, ptr %30, align 16, !tbaa !5
  %31 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %29, i64 8
  %32 = load i64, ptr %31, align 16, !tbaa !5
  %33 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 9
  store i64 %32, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %32, i64 9
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 10
  store i64 %35, ptr %36, align 16, !tbaa !5
  %37 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %35, i64 10
  %38 = load i64, ptr %37, align 16, !tbaa !5
  %39 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 11
  store i64 %38, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %38, i64 11
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 12
  store i64 %41, ptr %42, align 16, !tbaa !5
  %43 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %41, i64 12
  %44 = load i64, ptr %43, align 16, !tbaa !5
  %45 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 13
  store i64 %44, ptr %45, align 8, !tbaa !5
  %46 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %44, i64 13
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 14
  store i64 %47, ptr %48, align 16, !tbaa !5
  %49 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %47, i64 14
  %50 = load i64, ptr %49, align 16, !tbaa !5
  %51 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 15
  store i64 %50, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %50, i64 15
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 16
  store i64 %53, ptr %54, align 16, !tbaa !5
  %55 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %53, i64 16
  %56 = load i64, ptr %55, align 16, !tbaa !5
  %57 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 17
  store i64 %56, ptr %57, align 8, !tbaa !5
  %58 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %56, i64 17
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 18
  store i64 %59, ptr %60, align 16, !tbaa !5
  %61 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %59, i64 18
  %62 = load i64, ptr %61, align 16, !tbaa !5
  %63 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %0, i64 19
  store i64 %62, ptr %63, align 8, !tbaa !5
  %64 = sdiv i64 %2, 2
  %65 = and i64 %64, 1
  %.not = icmp eq i64 %65, 0
  %spec.select = select i1 %.not, i64 %0, i64 %1
  %66 = and i64 %64, 2
  %.not.1 = icmp eq i64 %66, 0
  br i1 %.not.1, label %70, label %67

67:                                               ; preds = %3
  %68 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %spec.select, i64 1
  %69 = load i64, ptr %68, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %67, %3
  %.1.1 = phi i64 [ %69, %67 ], [ %spec.select, %3 ]
  %71 = and i64 %64, 4
  %.not.2 = icmp eq i64 %71, 0
  br i1 %.not.2, label %75, label %72

72:                                               ; preds = %70
  %73 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.1, i64 2
  %74 = load i64, ptr %73, align 16, !tbaa !5
  br label %75

75:                                               ; preds = %72, %70
  %.1.2 = phi i64 [ %74, %72 ], [ %.1.1, %70 ]
  %76 = and i64 %64, 8
  %.not.3 = icmp eq i64 %76, 0
  br i1 %.not.3, label %80, label %77

77:                                               ; preds = %75
  %78 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.2, i64 3
  %79 = load i64, ptr %78, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %77, %75
  %.1.3 = phi i64 [ %79, %77 ], [ %.1.2, %75 ]
  %81 = and i64 %64, 16
  %.not.4 = icmp eq i64 %81, 0
  br i1 %.not.4, label %85, label %82

82:                                               ; preds = %80
  %83 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.3, i64 4
  %84 = load i64, ptr %83, align 16, !tbaa !5
  br label %85

85:                                               ; preds = %82, %80
  %.1.4 = phi i64 [ %84, %82 ], [ %.1.3, %80 ]
  %86 = and i64 %64, 32
  %.not.5 = icmp eq i64 %86, 0
  br i1 %.not.5, label %90, label %87

87:                                               ; preds = %85
  %88 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.4, i64 5
  %89 = load i64, ptr %88, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %87, %85
  %.1.5 = phi i64 [ %89, %87 ], [ %.1.4, %85 ]
  %91 = and i64 %64, 64
  %.not.6 = icmp eq i64 %91, 0
  br i1 %.not.6, label %95, label %92

92:                                               ; preds = %90
  %93 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.5, i64 6
  %94 = load i64, ptr %93, align 16, !tbaa !5
  br label %95

95:                                               ; preds = %92, %90
  %.1.6 = phi i64 [ %94, %92 ], [ %.1.5, %90 ]
  %96 = and i64 %64, 128
  %.not.7 = icmp eq i64 %96, 0
  br i1 %.not.7, label %100, label %97

97:                                               ; preds = %95
  %98 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.6, i64 7
  %99 = load i64, ptr %98, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %97, %95
  %.1.7 = phi i64 [ %99, %97 ], [ %.1.6, %95 ]
  %101 = and i64 %64, 256
  %.not.8 = icmp eq i64 %101, 0
  br i1 %.not.8, label %105, label %102

102:                                              ; preds = %100
  %103 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.7, i64 8
  %104 = load i64, ptr %103, align 16, !tbaa !5
  br label %105

105:                                              ; preds = %102, %100
  %.1.8 = phi i64 [ %104, %102 ], [ %.1.7, %100 ]
  %106 = and i64 %64, 512
  %.not.9 = icmp eq i64 %106, 0
  br i1 %.not.9, label %110, label %107

107:                                              ; preds = %105
  %108 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.8, i64 9
  %109 = load i64, ptr %108, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %107, %105
  %.1.9 = phi i64 [ %109, %107 ], [ %.1.8, %105 ]
  %111 = and i64 %64, 1024
  %.not.10 = icmp eq i64 %111, 0
  br i1 %.not.10, label %115, label %112

112:                                              ; preds = %110
  %113 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.9, i64 10
  %114 = load i64, ptr %113, align 16, !tbaa !5
  br label %115

115:                                              ; preds = %112, %110
  %.1.10 = phi i64 [ %114, %112 ], [ %.1.9, %110 ]
  %116 = and i64 %64, 2048
  %.not.11 = icmp eq i64 %116, 0
  br i1 %.not.11, label %120, label %117

117:                                              ; preds = %115
  %118 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.10, i64 11
  %119 = load i64, ptr %118, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %117, %115
  %.1.11 = phi i64 [ %119, %117 ], [ %.1.10, %115 ]
  %121 = and i64 %64, 4096
  %.not.12 = icmp eq i64 %121, 0
  br i1 %.not.12, label %125, label %122

122:                                              ; preds = %120
  %123 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.11, i64 12
  %124 = load i64, ptr %123, align 16, !tbaa !5
  br label %125

125:                                              ; preds = %122, %120
  %.1.12 = phi i64 [ %124, %122 ], [ %.1.11, %120 ]
  %126 = and i64 %64, 8192
  %.not.13 = icmp eq i64 %126, 0
  br i1 %.not.13, label %130, label %127

127:                                              ; preds = %125
  %128 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.12, i64 13
  %129 = load i64, ptr %128, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %127, %125
  %.1.13 = phi i64 [ %129, %127 ], [ %.1.12, %125 ]
  %131 = and i64 %64, 16384
  %.not.14 = icmp eq i64 %131, 0
  br i1 %.not.14, label %135, label %132

132:                                              ; preds = %130
  %133 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.13, i64 14
  %134 = load i64, ptr %133, align 16, !tbaa !5
  br label %135

135:                                              ; preds = %132, %130
  %.1.14 = phi i64 [ %134, %132 ], [ %.1.13, %130 ]
  %136 = and i64 %64, 32768
  %.not.15 = icmp eq i64 %136, 0
  br i1 %.not.15, label %140, label %137

137:                                              ; preds = %135
  %138 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.14, i64 15
  %139 = load i64, ptr %138, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %137, %135
  %.1.15 = phi i64 [ %139, %137 ], [ %.1.14, %135 ]
  %141 = and i64 %64, 65536
  %.not.16 = icmp eq i64 %141, 0
  br i1 %.not.16, label %145, label %142

142:                                              ; preds = %140
  %143 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.15, i64 16
  %144 = load i64, ptr %143, align 16, !tbaa !5
  br label %145

145:                                              ; preds = %142, %140
  %.1.16 = phi i64 [ %144, %142 ], [ %.1.15, %140 ]
  %146 = and i64 %64, 131072
  %.not.17 = icmp eq i64 %146, 0
  br i1 %.not.17, label %150, label %147

147:                                              ; preds = %145
  %148 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.16, i64 17
  %149 = load i64, ptr %148, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %147, %145
  %.1.17 = phi i64 [ %149, %147 ], [ %.1.16, %145 ]
  %151 = and i64 %64, 262144
  %.not.18 = icmp eq i64 %151, 0
  br i1 %.not.18, label %155, label %152

152:                                              ; preds = %150
  %153 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.17, i64 18
  %154 = load i64, ptr %153, align 16, !tbaa !5
  br label %155

155:                                              ; preds = %152, %150
  %.1.18 = phi i64 [ %154, %152 ], [ %.1.17, %150 ]
  %156 = and i64 %64, 524288
  %.not.19 = icmp eq i64 %156, 0
  br i1 %.not.19, label %160, label %157

157:                                              ; preds = %155
  %158 = getelementptr inbounds [200000 x [20 x i64]], ptr @up, i64 0, i64 %.1.18, i64 19
  %159 = load i64, ptr %158, align 8, !tbaa !5
  br label %160

160:                                              ; preds = %157, %155
  %.1.19 = phi i64 [ %159, %157 ], [ %.1.18, %155 ]
  %161 = getelementptr inbounds [200000 x i8], ptr @F, i64 0, i64 %0
  %162 = load i8, ptr %161, align 1, !tbaa !9, !range !11, !noundef !12
  %163 = trunc nuw i8 %162 to i1
  br i1 %163, label %164, label %166

164:                                              ; preds = %160
  %165 = getelementptr inbounds [200000 x i8], ptr @F, i64 0, i64 %.1.19
  store i8 1, ptr %165, align 1, !tbaa !9
  br label %166

166:                                              ; preds = %164, %160
  %167 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %168 = tail call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #3
  store ptr %168, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %169 = tail call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #3
  store ptr %169, ptr %5, align 8
  %170 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %170, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %166
  %171 = add nsw i64 %2, 1
  br label %172

._crit_edge:                                      ; preds = %177, %166
  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

172:                                              ; preds = %.lr.ph, %177
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %174 = load i64, ptr %173, align 8, !tbaa !5
  %175 = icmp eq i64 %174, %1
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  call void @_Z4dfsFxxx(i64 noundef %174, i64 noundef %0, i64 noundef %171)
  br label %177

177:                                              ; preds = %172, %176
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %179 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %179, label %172, 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


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