; LLVM IR from SOHNE/Dura2D :: src/collision/d2Shape.ll (ZN10d2BoxShapeC2Eff)

; 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.d2Vec2 = type { float, float }
%struct.d2PolygonShape = type { %struct.d2Shape, float, float, i32, ptr, ptr }
%struct.d2Shape = type { ptr }

@_ZTV10d2BoxShape = external dso_local unnamed_addr constant { [8 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14d2PolygonShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10d2BoxShapeC2Eff(ptr noundef nonnull align 8 dereferenceable(40) %0, float noundef %1, float noundef %2) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca [4 x %struct.d2Vec2], align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %10 = load ptr, ptr %4, align 8
  call void @_ZN14d2PolygonShapeC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  store ptr getelementptr inbounds inrange(-16, 48) ({ [8 x ptr] }, ptr @_ZTV10d2BoxShape, i32 0, i32 0, i32 2), ptr %10, align 8, !tbaa !11
  %11 = load float, ptr %5, align 4, !tbaa !9
  %12 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 1
  store float %11, ptr %12, align 8, !tbaa !13
  %13 = load float, ptr %6, align 4, !tbaa !9
  %14 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 2
  store float %13, ptr %14, align 4, !tbaa !17
  %15 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 3
  store i32 4, ptr %15, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  %16 = load float, ptr %5, align 4, !tbaa !9
  %17 = fneg float %16
  %18 = fdiv float %17, 2.000000e+00
  %19 = load float, ptr %6, align 4, !tbaa !9
  %20 = fneg float %19
  %21 = fdiv float %20, 2.000000e+00
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %18, float noundef %21)
          to label %22 unwind label %93

22:                                               ; preds = %3
  %23 = getelementptr inbounds %struct.d2Vec2, ptr %7, i64 1
  %24 = load float, ptr %5, align 4, !tbaa !9
  %25 = fdiv float %24, 2.000000e+00
  %26 = load float, ptr %6, align 4, !tbaa !9
  %27 = fneg float %26
  %28 = fdiv float %27, 2.000000e+00
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %25, float noundef %28)
          to label %29 unwind label %93

29:                                               ; preds = %22
  %30 = getelementptr inbounds %struct.d2Vec2, ptr %7, i64 2
  %31 = load float, ptr %5, align 4, !tbaa !9
  %32 = fdiv float %31, 2.000000e+00
  %33 = load float, ptr %6, align 4, !tbaa !9
  %34 = fdiv float %33, 2.000000e+00
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %30, float noundef %32, float noundef %34)
          to label %35 unwind label %93

35:                                               ; preds = %29
  %36 = getelementptr inbounds %struct.d2Vec2, ptr %7, i64 3
  %37 = load float, ptr %5, align 4, !tbaa !9
  %38 = fneg float %37
  %39 = fdiv float %38, 2.000000e+00
  %40 = load float, ptr %6, align 4, !tbaa !9
  %41 = fdiv float %40, 2.000000e+00
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %36, float noundef %39, float noundef %41)
          to label %42 unwind label %93

42:                                               ; preds = %35
  %43 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 3
  %44 = load i32, ptr %43, align 8, !tbaa !18
  %45 = sext i32 %44 to i64
  %46 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %45, i64 8)
  %47 = extractvalue { i64, i1 } %46, 1
  %48 = extractvalue { i64, i1 } %46, 0
  %49 = select i1 %47, i64 -1, i64 %48
  %50 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %49) #9
          to label %51 unwind label %93

51:                                               ; preds = %42
  %52 = icmp eq i64 %45, 0
  br i1 %52, label %60, label %53

53:                                               ; preds = %51
  %54 = getelementptr inbounds %struct.d2Vec2, ptr %50, i64 %45
  br label %55

55:                                               ; preds = %57, %53
  %56 = phi ptr [ %50, %53 ], [ %58, %57 ]
  invoke void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %56)
          to label %57 unwind label %97

57:                                               ; preds = %55
  %58 = getelementptr inbounds %struct.d2Vec2, ptr %56, i64 1
  %59 = icmp eq ptr %58, %54
  br i1 %59, label %60, label %55

60:                                               ; preds = %57, %51
  %61 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 4
  store ptr %50, ptr %61, align 8, !tbaa !19
  %62 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 3
  %63 = load i32, ptr %62, align 8, !tbaa !18
  %64 = sext i32 %63 to i64
  %65 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %64, i64 8)
  %66 = extractvalue { i64, i1 } %65, 1
  %67 = extractvalue { i64, i1 } %65, 0
  %68 = select i1 %66, i64 -1, i64 %67
  %69 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %68) #9
          to label %70 unwind label %93

70:                                               ; preds = %60
  %71 = icmp eq i64 %64, 0
  br i1 %71, label %79, label %72

72:                                               ; preds = %70
  %73 = getelementptr inbounds %struct.d2Vec2, ptr %69, i64 %64
  br label %74

74:                                               ; preds = %76, %72
  %75 = phi ptr [ %69, %72 ], [ %77, %76 ]
  invoke void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %75)
          to label %76 unwind label %101

76:                                               ; preds = %74
  %77 = getelementptr inbounds %struct.d2Vec2, ptr %75, i64 1
  %78 = icmp eq ptr %77, %73
  br i1 %78, label %79, label %74

79:                                               ; preds = %76, %70
  %80 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 5
  store ptr %69, ptr %80, align 8, !tbaa !20
  %81 = call noundef ptr @_ZSt5beginI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %7) #8
  %82 = call noundef ptr @_ZSt3endI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %7) #8
  %83 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = invoke noundef ptr @_ZSt4copyIP6d2Vec2S1_ET0_T_S3_S2_(ptr noundef %81, ptr noundef %82, ptr noundef %84)
          to label %86 unwind label %93

86:                                               ; preds = %79
  %87 = call noundef ptr @_ZSt5beginI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %7) #8
  %88 = call noundef ptr @_ZSt3endI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %7) #8
  %89 = getelementptr inbounds %struct.d2PolygonShape, ptr %10, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = invoke noundef ptr @_ZSt4copyIP6d2Vec2S1_ET0_T_S3_S2_(ptr noundef %87, ptr noundef %88, ptr noundef %90)
          to label %92 unwind label %93

92:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  ret void

93:                                               ; preds = %86, %79, %60, %42, %35, %29, %22, %3
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %8, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %9, align 4
  br label %105

97:                                               ; preds = %55
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %8, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %9, align 4
  call void @_ZdaPvm(ptr noundef %50, i64 noundef %49) #10
  br label %105

101:                                              ; preds = %74
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %8, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %9, align 4
  call void @_ZdaPvm(ptr noundef %69, i64 noundef %68) #10
  br label %105

105:                                              ; preds = %101, %97, %93
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @_ZN14d2PolygonShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %8, align 8
  %108 = load i32, ptr %9, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14d2PolygonShapeC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIP6d2Vec2S1_ET0_T_S3_S2_(ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt5beginI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32)) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt3endI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32)) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(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 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 = { nobuiltin nounwind "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 = { 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 #6 = { inlinehint 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS14d2PolygonShape", !15, i64 0, !10, i64 8, !10, i64 12, !16, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!"_ZTS7d2Shape"}
!16 = !{!"int", !7, i64 0}
!17 = !{!14, !10, i64 12}
!18 = !{!14, !16, i64 16}
!19 = !{!14, !6, i64 24}
!20 = !{!14, !6, i64 32}


; 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.d2Vec2 = type { float, float }

@_ZTV10d2BoxShape = external dso_local unnamed_addr constant { [8 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10d2BoxShapeC2Eff(ptr noundef nonnull align 8 dereferenceable(40) %0, float noundef %1, float noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca [4 x %struct.d2Vec2], align 16
  tail call void @_ZN14d2PolygonShapeC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTV10d2BoxShape, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store float %1, ptr %5, align 8, !tbaa !8
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  store float %2, ptr %6, align 4, !tbaa !15
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 4, ptr %7, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %8 = fmul float %1, -5.000000e-01
  %9 = fmul float %2, -5.000000e-01
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %8, float noundef %9)
  %10 = getelementptr inbounds i8, ptr %4, i64 8
  %11 = fmul float %1, 5.000000e-01
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %11, float noundef %9)
  %12 = getelementptr inbounds i8, ptr %4, i64 16
  %13 = fmul float %2, 5.000000e-01
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %11, float noundef %13)
  %14 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %8, float noundef %13)
  %15 = load i32, ptr %7, align 8, !tbaa !16
  %16 = sext i32 %15 to i64
  %17 = icmp slt i32 %15, 0
  %18 = shl nsw i64 %16, 3
  %19 = select i1 %17, i64 -1, i64 %18
  %20 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %19) #7
          to label %21 unwind label %59

21:                                               ; preds = %3
  %22 = icmp eq i32 %15, 0
  br i1 %22, label %.loopexit13.thread, label %24

.loopexit13.thread:                               ; preds = %21
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %20, ptr %23, align 8, !tbaa !17
  br label %35

24:                                               ; preds = %21
  %25 = getelementptr inbounds %struct.d2Vec2, ptr %20, i64 %16
  br label %26

26:                                               ; preds = %26, %24
  %27 = phi ptr [ %20, %24 ], [ %28, %26 ]
  call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %27)
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = icmp eq ptr %28, %25
  br i1 %29, label %.loopexit13, label %26

.loopexit13:                                      ; preds = %26
  %.pre = load i32, ptr %7, align 8, !tbaa !16
  %.pre.fr = freeze i32 %.pre
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %20, ptr %30, align 8, !tbaa !17
  %31 = sext i32 %.pre.fr to i64
  %32 = icmp slt i32 %.pre.fr, 0
  %33 = shl nsw i64 %31, 3
  %spec.select = select i1 %32, i64 -1, i64 %33
  %34 = icmp eq i32 %.pre.fr, 0
  br label %35

35:                                               ; preds = %.loopexit13, %.loopexit13.thread
  %36 = phi i64 [ 0, %.loopexit13.thread ], [ %31, %.loopexit13 ]
  %37 = phi ptr [ %23, %.loopexit13.thread ], [ %30, %.loopexit13 ]
  %38 = phi i1 [ true, %.loopexit13.thread ], [ %34, %.loopexit13 ]
  %39 = phi i64 [ 0, %.loopexit13.thread ], [ %spec.select, %.loopexit13 ]
  %40 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %39) #7
          to label %41 unwind label %59

41:                                               ; preds = %35
  br i1 %38, label %.loopexit, label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds %struct.d2Vec2, ptr %40, i64 %36
  br label %44

44:                                               ; preds = %44, %42
  %45 = phi ptr [ %40, %42 ], [ %46, %44 ]
  call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %45)
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = icmp eq ptr %46, %43
  br i1 %47, label %.loopexit, label %44

.loopexit:                                        ; preds = %44, %41
  %48 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %40, ptr %48, align 8, !tbaa !18
  %49 = call noundef ptr @_ZSt5beginI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %4) #6
  %50 = call noundef ptr @_ZSt3endI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %4) #6
  %51 = load ptr, ptr %37, align 8, !tbaa !17
  %52 = invoke noundef ptr @_ZSt4copyIP6d2Vec2S1_ET0_T_S3_S2_(ptr noundef %49, ptr noundef %50, ptr noundef %51)
          to label %53 unwind label %59

53:                                               ; preds = %.loopexit
  %54 = call noundef ptr @_ZSt5beginI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %4) #6
  %55 = call noundef ptr @_ZSt3endI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32) %4) #6
  %56 = load ptr, ptr %48, align 8, !tbaa !18
  %57 = invoke noundef ptr @_ZSt4copyIP6d2Vec2S1_ET0_T_S3_S2_(ptr noundef %54, ptr noundef %55, ptr noundef %56)
          to label %58 unwind label %59

58:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  ret void

59:                                               ; preds = %53, %.loopexit, %35, %3
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN14d2PolygonShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  resume { ptr, i32 } %60
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIP6d2Vec2S1_ET0_T_S3_S2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt5beginI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt3endI6d2Vec2Lm4EEPT_RAT0__S1_(ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 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 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 = { inlinehint 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 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTS14d2PolygonShape", !10, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !14, i64 24, !14, i64 32}
!10 = !{!"_ZTS7d2Shape"}
!11 = !{!"float", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"int", !12, i64 0}
!14 = !{!"any pointer", !12, i64 0}
!15 = !{!9, !11, i64 12}
!16 = !{!9, !13, i64 16}
!17 = !{!9, !14, i64 24}
!18 = !{!9, !14, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass