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

@g = external dso_local global [300030 x %"class.std::vector"], align 16
@pt = external dso_local global [300030 x [20 x i32]], align 16
@lev = external dso_local global [300030 x i32], align 16

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

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

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

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

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

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

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

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

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

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

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

80:                                               ; preds = %74
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  call void @_Z3dfsiii(i32 noundef %81, i32 noundef %82, i32 noundef %84)
  br label %85

85:                                               ; preds = %80, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %86

86:                                               ; preds = %85
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br label %71

88:                                               ; preds = %73
  ret void
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@g = external dso_local global [300030 x %"class.std::vector"], align 16
@pt = external dso_local local_unnamed_addr global [300030 x [20 x i32]], align 16
@lev = external dso_local local_unnamed_addr global [300030 x i32], align 16

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

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

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

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

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

._crit_edge26:                                    ; preds = %15
  %.phi.trans.insert27 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 2
  %.pre28 = load i32, ptr %.phi.trans.insert27, align 8, !tbaa !5
  br label %22

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

22:                                               ; preds = %._crit_edge26, %17
  %23 = phi i32 [ %.pre28, %._crit_edge26 ], [ %20, %17 ]
  %.not22.2 = icmp eq i32 %23, -1
  br i1 %.not22.2, label %._crit_edge29, label %24

._crit_edge29:                                    ; preds = %22
  %.phi.trans.insert30 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 3
  %.pre31 = load i32, ptr %.phi.trans.insert30, align 4, !tbaa !5
  br label %29

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

29:                                               ; preds = %._crit_edge29, %24
  %30 = phi i32 [ %.pre31, %._crit_edge29 ], [ %27, %24 ]
  %.not22.3 = icmp eq i32 %30, -1
  br i1 %.not22.3, label %._crit_edge32, label %31

._crit_edge32:                                    ; preds = %29
  %.phi.trans.insert33 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 4
  %.pre34 = load i32, ptr %.phi.trans.insert33, align 16, !tbaa !5
  br label %36

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

36:                                               ; preds = %._crit_edge32, %31
  %37 = phi i32 [ %.pre34, %._crit_edge32 ], [ %34, %31 ]
  %.not22.4 = icmp eq i32 %37, -1
  br i1 %.not22.4, label %._crit_edge35, label %38

._crit_edge35:                                    ; preds = %36
  %.phi.trans.insert36 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 5
  %.pre37 = load i32, ptr %.phi.trans.insert36, align 4, !tbaa !5
  br label %43

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

43:                                               ; preds = %._crit_edge35, %38
  %44 = phi i32 [ %.pre37, %._crit_edge35 ], [ %41, %38 ]
  %.not22.5 = icmp eq i32 %44, -1
  br i1 %.not22.5, label %._crit_edge38, label %45

._crit_edge38:                                    ; preds = %43
  %.phi.trans.insert39 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 6
  %.pre40 = load i32, ptr %.phi.trans.insert39, align 8, !tbaa !5
  br label %50

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

50:                                               ; preds = %._crit_edge38, %45
  %51 = phi i32 [ %.pre40, %._crit_edge38 ], [ %48, %45 ]
  %.not22.6 = icmp eq i32 %51, -1
  br i1 %.not22.6, label %._crit_edge41, label %52

._crit_edge41:                                    ; preds = %50
  %.phi.trans.insert42 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 7
  %.pre43 = load i32, ptr %.phi.trans.insert42, align 4, !tbaa !5
  br label %57

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

57:                                               ; preds = %._crit_edge41, %52
  %58 = phi i32 [ %.pre43, %._crit_edge41 ], [ %55, %52 ]
  %.not22.7 = icmp eq i32 %58, -1
  br i1 %.not22.7, label %._crit_edge44, label %59

._crit_edge44:                                    ; preds = %57
  %.phi.trans.insert45 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 8
  %.pre46 = load i32, ptr %.phi.trans.insert45, align 16, !tbaa !5
  br label %64

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

64:                                               ; preds = %._crit_edge44, %59
  %65 = phi i32 [ %.pre46, %._crit_edge44 ], [ %62, %59 ]
  %.not22.8 = icmp eq i32 %65, -1
  br i1 %.not22.8, label %._crit_edge47, label %66

._crit_edge47:                                    ; preds = %64
  %.phi.trans.insert48 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 9
  %.pre49 = load i32, ptr %.phi.trans.insert48, align 4, !tbaa !5
  br label %71

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

71:                                               ; preds = %._crit_edge47, %66
  %72 = phi i32 [ %.pre49, %._crit_edge47 ], [ %69, %66 ]
  %.not22.9 = icmp eq i32 %72, -1
  br i1 %.not22.9, label %._crit_edge50, label %73

._crit_edge50:                                    ; preds = %71
  %.phi.trans.insert51 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 10
  %.pre52 = load i32, ptr %.phi.trans.insert51, align 8, !tbaa !5
  br label %78

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

78:                                               ; preds = %._crit_edge50, %73
  %79 = phi i32 [ %.pre52, %._crit_edge50 ], [ %76, %73 ]
  %.not22.10 = icmp eq i32 %79, -1
  br i1 %.not22.10, label %._crit_edge53, label %80

._crit_edge53:                                    ; preds = %78
  %.phi.trans.insert54 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 11
  %.pre55 = load i32, ptr %.phi.trans.insert54, align 4, !tbaa !5
  br label %85

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

85:                                               ; preds = %._crit_edge53, %80
  %86 = phi i32 [ %.pre55, %._crit_edge53 ], [ %83, %80 ]
  %.not22.11 = icmp eq i32 %86, -1
  br i1 %.not22.11, label %._crit_edge56, label %87

._crit_edge56:                                    ; preds = %85
  %.phi.trans.insert57 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 12
  %.pre58 = load i32, ptr %.phi.trans.insert57, align 16, !tbaa !5
  br label %92

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

92:                                               ; preds = %._crit_edge56, %87
  %93 = phi i32 [ %.pre58, %._crit_edge56 ], [ %90, %87 ]
  %.not22.12 = icmp eq i32 %93, -1
  br i1 %.not22.12, label %._crit_edge59, label %94

._crit_edge59:                                    ; preds = %92
  %.phi.trans.insert60 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 13
  %.pre61 = load i32, ptr %.phi.trans.insert60, align 4, !tbaa !5
  br label %99

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

99:                                               ; preds = %._crit_edge59, %94
  %100 = phi i32 [ %.pre61, %._crit_edge59 ], [ %97, %94 ]
  %.not22.13 = icmp eq i32 %100, -1
  br i1 %.not22.13, label %._crit_edge62, label %101

._crit_edge62:                                    ; preds = %99
  %.phi.trans.insert63 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 14
  %.pre64 = load i32, ptr %.phi.trans.insert63, align 8, !tbaa !5
  br label %106

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

106:                                              ; preds = %._crit_edge62, %101
  %107 = phi i32 [ %.pre64, %._crit_edge62 ], [ %104, %101 ]
  %.not22.14 = icmp eq i32 %107, -1
  br i1 %.not22.14, label %._crit_edge65, label %108

._crit_edge65:                                    ; preds = %106
  %.phi.trans.insert66 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 15
  %.pre67 = load i32, ptr %.phi.trans.insert66, align 4, !tbaa !5
  br label %113

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

113:                                              ; preds = %._crit_edge65, %108
  %114 = phi i32 [ %.pre67, %._crit_edge65 ], [ %111, %108 ]
  %.not22.15 = icmp eq i32 %114, -1
  br i1 %.not22.15, label %._crit_edge68, label %115

._crit_edge68:                                    ; preds = %113
  %.phi.trans.insert69 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 16
  %.pre70 = load i32, ptr %.phi.trans.insert69, align 16, !tbaa !5
  br label %120

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

120:                                              ; preds = %._crit_edge68, %115
  %121 = phi i32 [ %.pre70, %._crit_edge68 ], [ %118, %115 ]
  %.not22.16 = icmp eq i32 %121, -1
  br i1 %.not22.16, label %._crit_edge71, label %122

._crit_edge71:                                    ; preds = %120
  %.phi.trans.insert72 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 17
  %.pre73 = load i32, ptr %.phi.trans.insert72, align 4, !tbaa !5
  br label %127

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

127:                                              ; preds = %._crit_edge71, %122
  %128 = phi i32 [ %.pre73, %._crit_edge71 ], [ %125, %122 ]
  %.not22.17 = icmp eq i32 %128, -1
  br i1 %.not22.17, label %._crit_edge74, label %129

._crit_edge74:                                    ; preds = %127
  %.phi.trans.insert75 = getelementptr inbounds [300030 x [20 x i32]], ptr @pt, i64 0, i64 %6, i64 18
  %.pre76 = load i32, ptr %.phi.trans.insert75, align 8, !tbaa !5
  br label %134

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

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

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

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

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

146:                                              ; preds = %.lr.ph, %150
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %.not = icmp eq i32 %148, %1
  br i1 %.not, label %150, label %149

149:                                              ; preds = %146
  call void @_Z3dfsiii(i32 noundef %148, i32 noundef %0, i32 noundef %9)
  br label %150

150:                                              ; preds = %149, %146
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %152 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %152, label %146, label %._crit_edge
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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