; LLVM IR from eyangch/competitive-programming :: Codeforces/1583/f.ll (Z3addv)

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

@K = external dso_local global i64, align 8
@cur = external dso_local global %"class.std::vector", align 8
@cnt = external dso_local global %"class.std::vector", align 8
@len = external dso_local global i64, align 8
@n = external dso_local global i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3addv() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  br label %7

7:                                                ; preds = %23, %0
  %8 = call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %9 = xor i1 %8, true
  br i1 %9, label %10, label %24

10:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %12 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %12, ptr %1, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = load i64, ptr @K, align 8, !tbaa !5
  %15 = sub nsw i64 %14, 1
  %16 = icmp ne i64 %13, %15
  br i1 %16, label %17, label %20

17:                                               ; preds = %10
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = add nsw i64 %18, 1
  store i64 %19, ptr %1, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cnt, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i32 3, ptr %2, align 4
  br label %21

20:                                               ; preds = %10
  store i32 0, ptr %2, align 4
  br label %21

21:                                               ; preds = %20, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  %22 = load i32, ptr %2, align 4
  switch i32 %22, label %85 [
    i32 0, label %23
    i32 3, label %24
  ]

23:                                               ; preds = %21
  br label %7, !llvm.loop !9

24:                                               ; preds = %21, %7
  %25 = call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  br i1 %25, label %26, label %78

26:                                               ; preds = %24
  %27 = load i64, ptr @len, align 8, !tbaa !5
  %28 = load i64, ptr @n, align 8, !tbaa !5
  %29 = icmp eq i64 %27, %28
  br i1 %29, label %30, label %33

30:                                               ; preds = %26
  store i64 1, ptr @len, align 8, !tbaa !5
  %31 = load i64, ptr @n, align 8, !tbaa !5
  %32 = add nsw i64 %31, 1
  store i64 %32, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) @n)
  br label %77

33:                                               ; preds = %26
  br label %34

34:                                               ; preds = %75, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %36 = load i64, ptr %35, align 8, !tbaa !5
  store i64 %36, ptr %3, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %37 = call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  br i1 %37, label %38, label %52

38:                                               ; preds = %34
  %39 = load i64, ptr @len, align 8, !tbaa !5
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr @len, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %41 = load i64, ptr @len, align 8, !tbaa !5
  %42 = sub nsw i64 %41, 1
  store i64 %42, ptr %4, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %48, %38
  %44 = load i64, ptr %4, align 8, !tbaa !5
  %45 = icmp sge i64 %44, 1
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 6, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %51

47:                                               ; preds = %43
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %4)
  br label %48

48:                                               ; preds = %47
  %49 = load i64, ptr %4, align 8, !tbaa !5
  %50 = add nsw i64 %49, -1
  store i64 %50, ptr %4, align 8, !tbaa !5
  br label %43, !llvm.loop !11

51:                                               ; preds = %46
  store i32 5, ptr %2, align 4
  br label %73

52:                                               ; preds = %34
  %53 = load i64, ptr %3, align 8, !tbaa !5
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %3, align 8, !tbaa !5
  %55 = load i64, ptr %3, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = icmp slt i64 %55, %57
  br i1 %58, label %59, label %72

59:                                               ; preds = %52
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %60 = load i64, ptr @len, align 8, !tbaa !5
  %61 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %62 = sub i64 %60, %61
  store i64 %62, ptr %5, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %68, %59
  %64 = load i64, ptr %5, align 8, !tbaa !5
  %65 = icmp sge i64 %64, 1
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 9, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %71

67:                                               ; preds = %63
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %68

68:                                               ; preds = %67
  %69 = load i64, ptr %5, align 8, !tbaa !5
  %70 = add nsw i64 %69, -1
  store i64 %70, ptr %5, align 8, !tbaa !5
  br label %63, !llvm.loop !12

71:                                               ; preds = %66
  store i32 5, ptr %2, align 4
  br label %73

72:                                               ; preds = %52
  store i32 0, ptr %2, align 4
  br label %73

73:                                               ; preds = %72, %71, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  %74 = load i32, ptr %2, align 4
  switch i32 %74, label %85 [
    i32 0, label %75
    i32 5, label %76
  ]

75:                                               ; preds = %73
  br label %34, !llvm.loop !13

76:                                               ; preds = %73
  br label %77

77:                                               ; preds = %76, %30
  br label %78

78:                                               ; preds = %77, %24
  br label %79

79:                                               ; preds = %83, %78
  %80 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %81 = load i64, ptr @len, align 8, !tbaa !5
  %82 = icmp ult i64 %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store i64 1, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) @cnt, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %79, !llvm.loop !14

84:                                               ; preds = %79
  ret void

85:                                               ; preds = %73, %21
  unreachable
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@K = external dso_local local_unnamed_addr global i64, align 8
@cur = external dso_local global %"class.std::vector", align 8
@cnt = external dso_local global %"class.std::vector", align 8
@len = external dso_local local_unnamed_addr global i64, align 8
@n = external dso_local global i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3addv() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = tail call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  br i1 %6, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %0, %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %8 = load i64, ptr %7, align 8, !tbaa !5
  tail call void @_ZNSt6vectorIxSaIxEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %9 = load i64, ptr @K, align 8, !tbaa !5
  %10 = add nsw i64 %9, -1
  %.not = icmp eq i64 %8, %10
  br i1 %.not, label %12, label %.thread

.thread:                                          ; preds = %.lr.ph
  %11 = add nsw i64 %8, 1
  store i64 %11, ptr %1, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cnt, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  br label %.loopexit

12:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  %13 = tail call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  br i1 %13, label %.loopexit, label %.lr.ph

.loopexit:                                        ; preds = %12, %0, %.thread
  %14 = call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  br i1 %14, label %15, label %45

15:                                               ; preds = %.loopexit
  %16 = load i64, ptr @len, align 8, !tbaa !5
  %17 = load i64, ptr @n, align 8, !tbaa !5
  %18 = icmp eq i64 %16, %17
  br i1 %18, label %22, label %.preheader

.preheader:                                       ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %20 = load i64, ptr %19, align 8, !tbaa !5
  store i64 %20, ptr %2, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %21 = call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  br i1 %21, label %._crit_edge, label %.lr.ph11

22:                                               ; preds = %15
  store i64 1, ptr @len, align 8, !tbaa !5
  %23 = add nsw i64 %16, 1
  store i64 %23, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) @n)
  br label %45

._crit_edge:                                      ; preds = %41, %.preheader
  %24 = load i64, ptr @len, align 8, !tbaa !5
  %25 = add nsw i64 %24, 1
  store i64 %25, ptr @len, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %storemerge3.in15 = load i64, ptr @len, align 8, !tbaa !5
  %storemerge316 = add nsw i64 %storemerge3.in15, -1
  store i64 %storemerge316, ptr %3, align 8, !tbaa !5
  %26 = icmp sgt i64 %storemerge3.in15, 1
  br i1 %26, label %.lr.ph18, label %._crit_edge19

._crit_edge19:                                    ; preds = %.lr.ph18, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br label %.thread8

.lr.ph18:                                         ; preds = %._crit_edge, %.lr.ph18
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %storemerge3.in = load i64, ptr %3, align 8, !tbaa !5
  %storemerge3 = add nsw i64 %storemerge3.in, -1
  store i64 %storemerge3, ptr %3, align 8, !tbaa !5
  %27 = icmp sgt i64 %storemerge3.in, 1
  br i1 %27, label %.lr.ph18, label %._crit_edge19, !llvm.loop !9

.lr.ph11:                                         ; preds = %.preheader, %41
  %28 = load i64, ptr %2, align 8, !tbaa !5
  %29 = add nsw i64 %28, 1
  store i64 %29, ptr %2, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = icmp slt i64 %29, %31
  br i1 %32, label %33, label %41

33:                                               ; preds = %.lr.ph11
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %34 = load i64, ptr @len, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %36 = sub i64 %34, %35
  store i64 %36, ptr %4, align 8, !tbaa !5
  %37 = icmp sgt i64 %36, 0
  br i1 %37, label %.lr.ph13, label %._crit_edge14

._crit_edge14:                                    ; preds = %.lr.ph13, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br label %.thread8

.lr.ph13:                                         ; preds = %33, %.lr.ph13
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) @cur, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %38 = load i64, ptr %4, align 8, !tbaa !5
  %39 = add nsw i64 %38, -1
  store i64 %39, ptr %4, align 8, !tbaa !5
  %40 = icmp sgt i64 %38, 1
  br i1 %40, label %.lr.ph13, label %._crit_edge14, !llvm.loop !11

.thread8:                                         ; preds = %._crit_edge19, %._crit_edge14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  br label %45

41:                                               ; preds = %.lr.ph11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %43 = load i64, ptr %42, align 8, !tbaa !5
  store i64 %43, ptr %2, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  %44 = call noundef zeroext i1 @_ZNKSt6vectorIxSaIxEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #3
  br i1 %44, label %._crit_edge, label %.lr.ph11

45:                                               ; preds = %.thread8, %22, %.loopexit
  %46 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %47 = load i64, ptr @len, align 8, !tbaa !5
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph21, label %._crit_edge22

.lr.ph21:                                         ; preds = %45, %.lr.ph21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store i64 1, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) @cnt, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %49 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @cnt) #3
  %50 = load i64, ptr @len, align 8, !tbaa !5
  %51 = icmp ult i64 %49, %50
  br i1 %51, label %.lr.ph21, label %._crit_edge22, !llvm.loop !12

._crit_edge22:                                    ; preds = %.lr.ph21, %45
  ret void
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass