; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/University CodeSprint 2016/Problem F (F2)

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

%struct.myvector = type { ptr, ptr }

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [10 x [200 x [2000 x %struct.myvector]]], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.myvector, align 8
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 64000000, ptr %2) #5
  %9 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %2, i32 0, i32 0, i32 0, i32 0
  %10 = getelementptr inbounds %struct.myvector, ptr %9, i64 4000000
  br label %11

11:                                               ; preds = %11, %0
  %12 = phi ptr [ %9, %0 ], [ %13, %11 ]
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %13 = getelementptr inbounds %struct.myvector, ptr %12, i64 1
  %14 = icmp eq ptr %13, %10
  br i1 %14, label %15, label %11

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %48, %15
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 10
  br i1 %18, label %20, label %19

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

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %21

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

24:                                               ; preds = %21
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %47

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %40, %25
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 2000
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %2, i64 0, i64 %32
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [200 x [2000 x %struct.myvector]], ptr %33, i64 0, i64 %35
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [2000 x %struct.myvector], ptr %36, i64 0, i64 %38
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  br label %40

40:                                               ; preds = %30
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %6, align 4, !tbaa !5
  br label %26, !llvm.loop !12

43:                                               ; preds = %29
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %5, align 4, !tbaa !5
  br label %21, !llvm.loop !14

47:                                               ; preds = %24
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %3, align 4, !tbaa !5
  br label %16, !llvm.loop !15

51:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %63, %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = icmp sle i32 %53, 200
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %66

56:                                               ; preds = %52
  %57 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %2, i64 0, i64 0
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [200 x [2000 x %struct.myvector]], ptr %57, i64 0, i64 %59
  %61 = getelementptr inbounds [2000 x %struct.myvector], ptr %60, i64 0, i64 0
  %62 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN8myvector9push_backEi(ptr noundef nonnull align 8 dereferenceable(16) %61, i32 noundef %62)
  br label %63

63:                                               ; preds = %56
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %8, align 4, !tbaa !5
  br label %52, !llvm.loop !16

66:                                               ; preds = %55
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64000000, ptr %2) #5
  %67 = load i32, ptr %1, align 4
  ret i32 %67
}

; 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 void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8myvector9push_backEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

attributes #0 = { mustprogress norecurse 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{i64 0, i64 8, !10, i64 8, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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

%struct.myvector = type { ptr, ptr }

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [10 x [200 x [2000 x %struct.myvector]]], align 16
  %2 = alloca %struct.myvector, align 8
  call void @llvm.lifetime.start.p0(i64 64000000, ptr nonnull %1) #5
  br label %3

3:                                                ; preds = %3, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %3 ]
  %.ptr = getelementptr inbounds i8, ptr %1, i64 %.idx
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr)
  %.add = add nuw nsw i64 %.idx, 16
  %4 = icmp eq i64 %.add, 64000000
  br i1 %4, label %.preheader18, label %3

.preheader18:                                     ; preds = %3, %32
  %indvars.iv26 = phi i64 [ %indvars.iv.next27, %32 ], [ 0, %3 ]
  br label %33

.preheader18.1:                                   ; preds = %32, %7
  %indvars.iv26.1 = phi i64 [ %indvars.iv.next27.1, %7 ], [ 0, %32 ]
  br label %5

5:                                                ; preds = %5, %.preheader18.1
  %indvars.iv.1 = phi i64 [ 0, %.preheader18.1 ], [ %indvars.iv.next.1, %5 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %6 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 1, i64 %indvars.iv26.1, i64 %indvars.iv.1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 2000
  br i1 %exitcond.1.not, label %7, label %5, !llvm.loop !10

7:                                                ; preds = %5
  %indvars.iv.next27.1 = add nuw nsw i64 %indvars.iv26.1, 1
  %exitcond29.1.not = icmp eq i64 %indvars.iv.next27.1, 200
  br i1 %exitcond29.1.not, label %.preheader18.2, label %.preheader18.1, !llvm.loop !12

.preheader18.2:                                   ; preds = %7, %10
  %indvars.iv26.2 = phi i64 [ %indvars.iv.next27.2, %10 ], [ 0, %7 ]
  br label %8

8:                                                ; preds = %8, %.preheader18.2
  %indvars.iv.2 = phi i64 [ 0, %.preheader18.2 ], [ %indvars.iv.next.2, %8 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %9 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 2, i64 %indvars.iv26.2, i64 %indvars.iv.2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 2000
  br i1 %exitcond.2.not, label %10, label %8, !llvm.loop !10

10:                                               ; preds = %8
  %indvars.iv.next27.2 = add nuw nsw i64 %indvars.iv26.2, 1
  %exitcond29.2.not = icmp eq i64 %indvars.iv.next27.2, 200
  br i1 %exitcond29.2.not, label %.preheader18.3, label %.preheader18.2, !llvm.loop !12

.preheader18.3:                                   ; preds = %10, %13
  %indvars.iv26.3 = phi i64 [ %indvars.iv.next27.3, %13 ], [ 0, %10 ]
  br label %11

11:                                               ; preds = %11, %.preheader18.3
  %indvars.iv.3 = phi i64 [ 0, %.preheader18.3 ], [ %indvars.iv.next.3, %11 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %12 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 3, i64 %indvars.iv26.3, i64 %indvars.iv.3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next.3, 2000
  br i1 %exitcond.3.not, label %13, label %11, !llvm.loop !10

13:                                               ; preds = %11
  %indvars.iv.next27.3 = add nuw nsw i64 %indvars.iv26.3, 1
  %exitcond29.3.not = icmp eq i64 %indvars.iv.next27.3, 200
  br i1 %exitcond29.3.not, label %.preheader18.4, label %.preheader18.3, !llvm.loop !12

.preheader18.4:                                   ; preds = %13, %16
  %indvars.iv26.4 = phi i64 [ %indvars.iv.next27.4, %16 ], [ 0, %13 ]
  br label %14

14:                                               ; preds = %14, %.preheader18.4
  %indvars.iv.4 = phi i64 [ 0, %.preheader18.4 ], [ %indvars.iv.next.4, %14 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %15 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 4, i64 %indvars.iv26.4, i64 %indvars.iv.4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next.4, 2000
  br i1 %exitcond.4.not, label %16, label %14, !llvm.loop !10

16:                                               ; preds = %14
  %indvars.iv.next27.4 = add nuw nsw i64 %indvars.iv26.4, 1
  %exitcond29.4.not = icmp eq i64 %indvars.iv.next27.4, 200
  br i1 %exitcond29.4.not, label %.preheader18.5, label %.preheader18.4, !llvm.loop !12

.preheader18.5:                                   ; preds = %16, %19
  %indvars.iv26.5 = phi i64 [ %indvars.iv.next27.5, %19 ], [ 0, %16 ]
  br label %17

17:                                               ; preds = %17, %.preheader18.5
  %indvars.iv.5 = phi i64 [ 0, %.preheader18.5 ], [ %indvars.iv.next.5, %17 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %18 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 5, i64 %indvars.iv26.5, i64 %indvars.iv.5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %exitcond.5.not = icmp eq i64 %indvars.iv.next.5, 2000
  br i1 %exitcond.5.not, label %19, label %17, !llvm.loop !10

19:                                               ; preds = %17
  %indvars.iv.next27.5 = add nuw nsw i64 %indvars.iv26.5, 1
  %exitcond29.5.not = icmp eq i64 %indvars.iv.next27.5, 200
  br i1 %exitcond29.5.not, label %.preheader18.6, label %.preheader18.5, !llvm.loop !12

.preheader18.6:                                   ; preds = %19, %22
  %indvars.iv26.6 = phi i64 [ %indvars.iv.next27.6, %22 ], [ 0, %19 ]
  br label %20

20:                                               ; preds = %20, %.preheader18.6
  %indvars.iv.6 = phi i64 [ 0, %.preheader18.6 ], [ %indvars.iv.next.6, %20 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %21 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 6, i64 %indvars.iv26.6, i64 %indvars.iv.6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv.6, 1
  %exitcond.6.not = icmp eq i64 %indvars.iv.next.6, 2000
  br i1 %exitcond.6.not, label %22, label %20, !llvm.loop !10

22:                                               ; preds = %20
  %indvars.iv.next27.6 = add nuw nsw i64 %indvars.iv26.6, 1
  %exitcond29.6.not = icmp eq i64 %indvars.iv.next27.6, 200
  br i1 %exitcond29.6.not, label %.preheader18.7, label %.preheader18.6, !llvm.loop !12

.preheader18.7:                                   ; preds = %22, %25
  %indvars.iv26.7 = phi i64 [ %indvars.iv.next27.7, %25 ], [ 0, %22 ]
  br label %23

23:                                               ; preds = %23, %.preheader18.7
  %indvars.iv.7 = phi i64 [ 0, %.preheader18.7 ], [ %indvars.iv.next.7, %23 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %24 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 7, i64 %indvars.iv26.7, i64 %indvars.iv.7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv.7, 1
  %exitcond.7.not = icmp eq i64 %indvars.iv.next.7, 2000
  br i1 %exitcond.7.not, label %25, label %23, !llvm.loop !10

25:                                               ; preds = %23
  %indvars.iv.next27.7 = add nuw nsw i64 %indvars.iv26.7, 1
  %exitcond29.7.not = icmp eq i64 %indvars.iv.next27.7, 200
  br i1 %exitcond29.7.not, label %.preheader18.8, label %.preheader18.7, !llvm.loop !12

.preheader18.8:                                   ; preds = %25, %28
  %indvars.iv26.8 = phi i64 [ %indvars.iv.next27.8, %28 ], [ 0, %25 ]
  br label %26

26:                                               ; preds = %26, %.preheader18.8
  %indvars.iv.8 = phi i64 [ 0, %.preheader18.8 ], [ %indvars.iv.next.8, %26 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %27 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 8, i64 %indvars.iv26.8, i64 %indvars.iv.8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.8 = add nuw nsw i64 %indvars.iv.8, 1
  %exitcond.8.not = icmp eq i64 %indvars.iv.next.8, 2000
  br i1 %exitcond.8.not, label %28, label %26, !llvm.loop !10

28:                                               ; preds = %26
  %indvars.iv.next27.8 = add nuw nsw i64 %indvars.iv26.8, 1
  %exitcond29.8.not = icmp eq i64 %indvars.iv.next27.8, 200
  br i1 %exitcond29.8.not, label %.preheader18.9, label %.preheader18.8, !llvm.loop !12

.preheader18.9:                                   ; preds = %28, %31
  %indvars.iv26.9 = phi i64 [ %indvars.iv.next27.9, %31 ], [ 0, %28 ]
  br label %29

29:                                               ; preds = %29, %.preheader18.9
  %indvars.iv.9 = phi i64 [ 0, %.preheader18.9 ], [ %indvars.iv.next.9, %29 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %30 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 9, i64 %indvars.iv26.9, i64 %indvars.iv.9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next.9 = add nuw nsw i64 %indvars.iv.9, 1
  %exitcond.9.not = icmp eq i64 %indvars.iv.next.9, 2000
  br i1 %exitcond.9.not, label %31, label %29, !llvm.loop !10

31:                                               ; preds = %29
  %indvars.iv.next27.9 = add nuw nsw i64 %indvars.iv26.9, 1
  %exitcond29.9.not = icmp eq i64 %indvars.iv.next27.9, 200
  br i1 %exitcond29.9.not, label %.preheader, label %.preheader18.9, !llvm.loop !12

32:                                               ; preds = %33
  %indvars.iv.next27 = add nuw nsw i64 %indvars.iv26, 1
  %exitcond29.not = icmp eq i64 %indvars.iv.next27, 200
  br i1 %exitcond29.not, label %.preheader18.1, label %.preheader18, !llvm.loop !12

33:                                               ; preds = %.preheader18, %33
  %indvars.iv = phi i64 [ 0, %.preheader18 ], [ %indvars.iv.next, %33 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %34 = getelementptr inbounds [10 x [200 x [2000 x %struct.myvector]]], ptr %1, i64 0, i64 0, i64 %indvars.iv26, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 2000
  br i1 %exitcond.not, label %32, label %33, !llvm.loop !10

35:                                               ; preds = %.preheader
  call void @llvm.lifetime.end.p0(i64 64000000, ptr nonnull %1) #5
  ret i32 0

.preheader:                                       ; preds = %31, %.preheader
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.preheader ], [ 0, %31 ]
  %36 = getelementptr inbounds [200 x [2000 x %struct.myvector]], ptr %1, i64 0, i64 %indvars.iv34
  %37 = trunc nuw nsw i64 %indvars.iv34 to i32
  call void @_ZN8myvector9push_backEi(ptr noundef nonnull align 8 dereferenceable(16) %36, i32 noundef %37)
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond37.not = icmp eq i64 %indvars.iv.next35, 201
  br i1 %exitcond37.not, label %35, label %.preheader, !llvm.loop !13
}

; 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 nounwind uwtable
declare dso_local void @_ZN8myvectorC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; 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 uwtable
declare dso_local void @_ZN8myvector9push_backEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse 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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


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