; LLVM IR from brpapa/algorithms :: solutions/live-archive/2883.ll (Z13newHorseMovesi)

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

@__const._Z13newHorseMovesi.dr = external hidden unnamed_addr constant [8 x i32], align 16
@__const._Z13newHorseMovesi.dc = external hidden unnamed_addr constant [8 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13newHorseMovesi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i1, align 1
  %8 = alloca [8 x i32], align 16
  %9 = alloca [8 x i32], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = sub nsw i32 %17, 1
  %19 = sdiv i32 %18, 8
  store i32 %19, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = sub nsw i32 %20, 1
  %22 = srem i32 %21, 8
  store i32 %22, ptr %6, align 4, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const._Z13newHorseMovesi.dr, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const._Z13newHorseMovesi.dc, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %62, %2
  %24 = load i32, ptr %10, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 8
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %69

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = add nsw i32 %28, %32
  store i32 %33, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add nsw i32 %34, %38
  store i32 %39, ptr %13, align 4, !tbaa !5
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %51, label %42

42:                                               ; preds = %27
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = icmp sge i32 %43, 8
  br i1 %44, label %51, label %45

45:                                               ; preds = %42
  %46 = load i32, ptr %13, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 0
  br i1 %47, label %51, label %48

48:                                               ; preds = %45
  %49 = load i32, ptr %13, align 4, !tbaa !5
  %50 = icmp sge i32 %49, 8
  br i1 %50, label %51, label %52

51:                                               ; preds = %48, %45, %42, %27
  store i32 4, ptr %11, align 4
  br label %59

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %53 = load i32, ptr %12, align 4, !tbaa !5
  %54 = mul nsw i32 %53, 8
  %55 = add nsw i32 %54, 1
  %56 = load i32, ptr %13, align 4, !tbaa !5
  %57 = add nsw i32 %55, %56
  store i32 %57, ptr %14, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %58 unwind label %65

58:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  store i32 0, ptr %11, align 4
  br label %59

59:                                               ; preds = %58, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %60 = load i32, ptr %11, align 4
  switch i32 %60, label %78 [
    i32 0, label %61
    i32 4, label %62
  ]

61:                                               ; preds = %59
  br label %62

62:                                               ; preds = %61, %59
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %10, align 4, !tbaa !5
  br label %23, !llvm.loop !9

65:                                               ; preds = %52
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %15, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %73

69:                                               ; preds = %26
  store i1 true, ptr %7, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  %70 = load i1, ptr %7, align 1
  br i1 %70, label %72, label %71

71:                                               ; preds = %69
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void

73:                                               ; preds = %65
  %74 = load ptr, ptr %15, align 8
  %75 = load i32, ptr %16, align 4
  %76 = insertvalue { ptr, i32 } poison, ptr %74, 0
  %77 = insertvalue { ptr, i32 } %76, i32 %75, 1
  resume { ptr, i32 } %77

78:                                               ; preds = %59
  unreachable
}

; 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 @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"}


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

@__const._Z13newHorseMovesi.dr = external hidden unnamed_addr constant [8 x i32], align 16
@__const._Z13newHorseMovesi.dc = external hidden unnamed_addr constant [8 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13newHorseMovesi(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, i32 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = add nsw i32 %1, -1
  %5 = sdiv i32 %4, 8
  %6 = srem i32 %4, 8
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %7 = load i32, ptr @__const._Z13newHorseMovesi.dr, align 16, !tbaa !5
  %8 = add nsw i32 %7, %5
  %9 = load i32, ptr @__const._Z13newHorseMovesi.dc, align 16, !tbaa !5
  %10 = add nsw i32 %9, %6
  %or.cond = icmp ugt i32 %8, 7
  %11 = icmp ugt i32 %10, 7
  %or.cond5 = select i1 %or.cond, i1 true, i1 %11
  br i1 %or.cond5, label %17, label %12

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %13 = shl nuw nsw i32 %8, 3
  %14 = or disjoint i32 %13, 1
  %15 = add nuw nsw i32 %14, %10
  store i32 %15, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %16 unwind label %95

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %17

17:                                               ; preds = %2, %16
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 4), align 4, !tbaa !5
  %19 = add nsw i32 %18, %5
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 4), align 4, !tbaa !5
  %21 = add nsw i32 %20, %6
  %or.cond.1 = icmp ugt i32 %19, 7
  %22 = icmp ugt i32 %21, 7
  %or.cond5.1 = select i1 %or.cond.1, i1 true, i1 %22
  br i1 %or.cond5.1, label %28, label %23

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %24 = shl nuw nsw i32 %19, 3
  %25 = or disjoint i32 %24, 1
  %26 = add nuw nsw i32 %25, %21
  store i32 %26, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %27 unwind label %95

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %28

28:                                               ; preds = %27, %17
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 8), align 8, !tbaa !5
  %30 = add nsw i32 %29, %5
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 8), align 8, !tbaa !5
  %32 = add nsw i32 %31, %6
  %or.cond.2 = icmp ugt i32 %30, 7
  %33 = icmp ugt i32 %32, 7
  %or.cond5.2 = select i1 %or.cond.2, i1 true, i1 %33
  br i1 %or.cond5.2, label %39, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %35 = shl nuw nsw i32 %30, 3
  %36 = or disjoint i32 %35, 1
  %37 = add nuw nsw i32 %36, %32
  store i32 %37, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %38 unwind label %95

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %39

39:                                               ; preds = %38, %28
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 12), align 4, !tbaa !5
  %41 = add nsw i32 %40, %5
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 12), align 4, !tbaa !5
  %43 = add nsw i32 %42, %6
  %or.cond.3 = icmp ugt i32 %41, 7
  %44 = icmp ugt i32 %43, 7
  %or.cond5.3 = select i1 %or.cond.3, i1 true, i1 %44
  br i1 %or.cond5.3, label %50, label %45

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %46 = shl nuw nsw i32 %41, 3
  %47 = or disjoint i32 %46, 1
  %48 = add nuw nsw i32 %47, %43
  store i32 %48, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %49 unwind label %95

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %50

50:                                               ; preds = %49, %39
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 16), align 16, !tbaa !5
  %52 = add nsw i32 %51, %5
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 16), align 16, !tbaa !5
  %54 = add nsw i32 %53, %6
  %or.cond.4 = icmp ugt i32 %52, 7
  %55 = icmp ugt i32 %54, 7
  %or.cond5.4 = select i1 %or.cond.4, i1 true, i1 %55
  br i1 %or.cond5.4, label %61, label %56

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %57 = shl nuw nsw i32 %52, 3
  %58 = or disjoint i32 %57, 1
  %59 = add nuw nsw i32 %58, %54
  store i32 %59, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %60 unwind label %95

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %61

61:                                               ; preds = %60, %50
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 20), align 4, !tbaa !5
  %63 = add nsw i32 %62, %5
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 20), align 4, !tbaa !5
  %65 = add nsw i32 %64, %6
  %or.cond.5 = icmp ugt i32 %63, 7
  %66 = icmp ugt i32 %65, 7
  %or.cond5.5 = select i1 %or.cond.5, i1 true, i1 %66
  br i1 %or.cond5.5, label %72, label %67

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %68 = shl nuw nsw i32 %63, 3
  %69 = or disjoint i32 %68, 1
  %70 = add nuw nsw i32 %69, %65
  store i32 %70, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %71 unwind label %95

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %72

72:                                               ; preds = %71, %61
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 24), align 8, !tbaa !5
  %74 = add nsw i32 %73, %5
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 24), align 8, !tbaa !5
  %76 = add nsw i32 %75, %6
  %or.cond.6 = icmp ugt i32 %74, 7
  %77 = icmp ugt i32 %76, 7
  %or.cond5.6 = select i1 %or.cond.6, i1 true, i1 %77
  br i1 %or.cond5.6, label %83, label %78

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %79 = shl nuw nsw i32 %74, 3
  %80 = or disjoint i32 %79, 1
  %81 = add nuw nsw i32 %80, %76
  store i32 %81, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %82 unwind label %95

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %83

83:                                               ; preds = %82, %72
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dr, i64 28), align 4, !tbaa !5
  %85 = add nsw i32 %84, %5
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z13newHorseMovesi.dc, i64 28), align 4, !tbaa !5
  %87 = add nsw i32 %86, %6
  %or.cond.7 = icmp ugt i32 %85, 7
  %88 = icmp ugt i32 %87, 7
  %or.cond5.7 = select i1 %or.cond.7, i1 true, i1 %88
  br i1 %or.cond5.7, label %94, label %89

89:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %90 = shl nuw nsw i32 %85, 3
  %91 = or disjoint i32 %90, 1
  %92 = add nuw nsw i32 %91, %87
  store i32 %92, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %93 unwind label %95

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %94

94:                                               ; preds = %93, %83
  ret void

95:                                               ; preds = %89, %78, %67, %56, %45, %34, %23, %12
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  resume { ptr, i32 } %96
}

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

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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 = { 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 = { 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: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass