; LLVM IR from ADJA/algos :: Graphs/CutpointsSearch.ll (Z3dfsii)

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

@g = external dso_local global [105000 x %"class.std::vector"], align 16
@tin = external dso_local global [105000 x i32], align 16
@mn = external dso_local global [105000 x i32], align 16
@used = external dso_local global [105000 x i8], align 16
@cutVertices = external dso_local global %"class.std::vector", align 8
@timer = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [105000 x i8], ptr @used, i64 0, i64 %10
  store i8 1, ptr %11, align 1, !tbaa !9
  %12 = load i32, ptr @timer, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr @timer, align 4, !tbaa !5
  %14 = load i32, ptr @timer, align 4, !tbaa !5
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [105000 x i32], ptr @tin, i64 0, i64 %16
  store i32 %14, ptr %17, align 4, !tbaa !5
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [105000 x i32], ptr @tin, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %23
  store i32 %21, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %98, %2
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %28
  %30 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #4
  %31 = trunc i64 %30 to i32
  %32 = icmp slt i32 %26, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %101

34:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %36
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #4
  %41 = load i32, ptr %40, align 4, !tbaa !5
  store i32 %41, ptr %8, align 4, !tbaa !5
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [105000 x i8], ptr @used, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !9, !range !11, !noundef !12
  %46 = trunc i8 %45 to i1
  br i1 %46, label %80, label %47

47:                                               ; preds = %34
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef %50, i32 noundef %51)
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = icmp ne i32 %52, -1
  br i1 %53, label %54, label %68

54:                                               ; preds = %47
  %55 = load i32, ptr %8, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [105000 x i32], ptr @mn, 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 [105000 x i32], ptr @tin, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp sge i32 %58, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %54
  %65 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %66 = trunc i8 %65 to i1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i8 1, ptr %6, align 1, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @cutVertices, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %68

68:                                               ; preds = %67, %64, %54, %47
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %70
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %73
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %78
  store i32 %76, ptr %79, align 4, !tbaa !5
  br label %97

80:                                               ; preds = %34
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = icmp ne i32 %81, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %80
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %86
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [105000 x i32], ptr @tin, i64 0, i64 %89
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %87, ptr noundef nonnull align 4 dereferenceable(4) %90)
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %94
  store i32 %92, ptr %95, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %84, %80
  br label %97

97:                                               ; preds = %96, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %7, align 4, !tbaa !5
  br label %25, !llvm.loop !13

101:                                              ; preds = %33
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = icmp eq i32 %102, -1
  br i1 %103, label %104, label %108

104:                                              ; preds = %101
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = icmp sgt i32 %105, 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @cutVertices, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %108

108:                                              ; preds = %107, %104, %101
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@g = external dso_local global [105000 x %"class.std::vector"], align 16
@tin = external dso_local global [105000 x i32], align 16
@mn = external dso_local global [105000 x i32], align 16
@used = external dso_local local_unnamed_addr global [105000 x i8], align 16
@cutVertices = external dso_local global %"class.std::vector", align 8
@timer = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  %4 = sext i32 %0 to i64
  %5 = getelementptr inbounds [105000 x i8], ptr @used, i64 0, i64 %4
  store i8 1, ptr %5, align 1, !tbaa !9
  %6 = load i32, ptr @timer, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr @timer, align 4, !tbaa !5
  %8 = getelementptr inbounds [105000 x i32], ptr @tin, i64 0, i64 %4
  store i32 %7, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %4
  store i32 %7, ptr %9, align 4, !tbaa !5
  %10 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %4
  %11 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  %12 = trunc i64 %11 to i32
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %2
  %.not = icmp eq i32 %1, -1
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %._crit_edge32
  %indvars.iv25 = phi i64 [ %indvars.iv.next26, %._crit_edge32 ], [ 0, %.lr.ph ]
  %.023.us = phi i32 [ %.1.us, %._crit_edge32 ], [ 0, %.lr.ph ]
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %15
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv25) #3
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [105000 x i8], ptr @used, i64 0, i64 %19
  %21 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %22 = trunc nuw i8 %21 to i1
  %.pre29 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %22, label %27, label %23

23:                                               ; preds = %.lr.ph.split.us
  %24 = add nsw i32 %.023.us, 1
  tail call void @_Z3dfsii(i32 noundef %18, i32 noundef %.pre29)
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  br label %._crit_edge32.sink.split

27:                                               ; preds = %.lr.ph.split.us
  %.not20.us = icmp eq i32 %18, -1
  %.pre33 = sext i32 %.pre29 to i64
  br i1 %.not20.us, label %._crit_edge32, label %._crit_edge32.sink.split

._crit_edge32.sink.split:                         ; preds = %27, %23
  %.sink51 = phi i64 [ %26, %23 ], [ %.pre33, %27 ]
  %mn.sink = phi ptr [ @mn, %23 ], [ @tin, %27 ]
  %.1.us.ph = phi i32 [ %24, %23 ], [ %.023.us, %27 ]
  %28 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %.sink51
  %29 = getelementptr inbounds [105000 x i32], ptr %mn.sink, i64 0, i64 %19
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %.sink = load i32, ptr %30, align 4, !tbaa !5
  %.sink43 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %.sink43 to i64
  %32 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %31
  store i32 %.sink, ptr %32, align 4, !tbaa !5
  br label %._crit_edge32

._crit_edge32:                                    ; preds = %._crit_edge32.sink.split, %27
  %.pre-phi34 = phi i64 [ %.pre33, %27 ], [ %31, %._crit_edge32.sink.split ]
  %.1.us = phi i32 [ %.023.us, %27 ], [ %.1.us.ph, %._crit_edge32.sink.split ]
  %indvars.iv.next26 = add nuw nsw i64 %indvars.iv25, 1
  %33 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %.pre-phi34
  %34 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #3
  %sext37 = shl i64 %34, 32
  %35 = ashr exact i64 %sext37, 32
  %36 = icmp slt i64 %indvars.iv.next26, %35
  br i1 %36, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge31, %._crit_edge32
  %.0.lcssa = phi i32 [ %.1.us, %._crit_edge32 ], [ %.1, %._crit_edge31 ]
  %37 = icmp eq i32 %1, -1
  %38 = icmp sgt i32 %.0.lcssa, 1
  %or.cond = select i1 %37, i1 %38, i1 false
  br i1 %or.cond, label %71, label %._crit_edge.thread

.lr.ph.split:                                     ; preds = %.lr.ph, %._crit_edge31
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge31 ], [ 0, %.lr.ph ]
  %.023 = phi i32 [ %.1, %._crit_edge31 ], [ 0, %.lr.ph ]
  %.01721 = phi i1 [ %.2, %._crit_edge31 ], [ false, %.lr.ph ]
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %40
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %indvars.iv) #3
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [105000 x i8], ptr @used, i64 0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !9, !range !11, !noundef !12
  %47 = trunc nuw i8 %46 to i1
  %.pre28 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %47, label %60, label %48

48:                                               ; preds = %.lr.ph.split
  %49 = add nsw i32 %.023, 1
  call void @_Z3dfsii(i32 noundef %43, i32 noundef %.pre28)
  %50 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %44
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [105000 x i32], ptr @tin, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.not19 = icmp slt i32 %51, %55
  %brmerge = select i1 %.not19, i1 true, i1 %.01721
  br i1 %brmerge, label %57, label %56

56:                                               ; preds = %48
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @cutVertices, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre30 = sext i32 %.pre to i64
  br label %57

57:                                               ; preds = %48, %56
  %.pre-phi = phi i64 [ %53, %48 ], [ %.pre30, %56 ]
  %.118 = phi i1 [ %.01721, %48 ], [ true, %56 ]
  %58 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %.pre-phi
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %50)
  br label %._crit_edge31.sink.split

60:                                               ; preds = %.lr.ph.split
  %.not20 = icmp eq i32 %43, %1
  %.pre35 = sext i32 %.pre28 to i64
  br i1 %.not20, label %._crit_edge31, label %61

61:                                               ; preds = %60
  %62 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %.pre35
  %63 = getelementptr inbounds [105000 x i32], ptr @tin, i64 0, i64 %44
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %63)
  br label %._crit_edge31.sink.split

._crit_edge31.sink.split:                         ; preds = %57, %61
  %.sink44.in = phi ptr [ %64, %61 ], [ %59, %57 ]
  %.2.ph = phi i1 [ %.01721, %61 ], [ %.118, %57 ]
  %.1.ph = phi i32 [ %.023, %61 ], [ %49, %57 ]
  %.sink44 = load i32, ptr %.sink44.in, align 4, !tbaa !5
  %.sink47 = load i32, ptr %3, align 4, !tbaa !5
  %65 = sext i32 %.sink47 to i64
  %66 = getelementptr inbounds [105000 x i32], ptr @mn, i64 0, i64 %65
  store i32 %.sink44, ptr %66, align 4, !tbaa !5
  br label %._crit_edge31

._crit_edge31:                                    ; preds = %._crit_edge31.sink.split, %60
  %.pre-phi36 = phi i64 [ %.pre35, %60 ], [ %65, %._crit_edge31.sink.split ]
  %.2 = phi i1 [ %.01721, %60 ], [ %.2.ph, %._crit_edge31.sink.split ]
  %.1 = phi i32 [ %.023, %60 ], [ %.1.ph, %._crit_edge31.sink.split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %67 = getelementptr inbounds [105000 x %"class.std::vector"], ptr @g, i64 0, i64 %.pre-phi36
  %68 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #3
  %sext = shl i64 %68, 32
  %69 = ashr exact i64 %sext, 32
  %70 = icmp slt i64 %indvars.iv.next, %69
  br i1 %70, label %.lr.ph.split, label %._crit_edge, !llvm.loop !13

71:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @cutVertices, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %2, %71, %._crit_edge
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass