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

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

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

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

; 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 noundef float @_ZNK6d2Vec25CrossERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

declare <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

declare <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #1

; 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

declare <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK14d2PolygonShape17ClipSegmentToLineERKSt6vectorI6d2Vec2SaIS1_EERS3_RKS1_S8_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.d2Vec2, align 4
  %13 = alloca %struct.d2Vec2, align 4
  %14 = alloca float, align 4
  %15 = alloca %struct.d2Vec2, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.d2Vec2, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %struct.d2Vec2, align 4
  %21 = alloca %struct.d2Vec2, align 4
  %22 = alloca %struct.d2Vec2, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %26, ptr %13, align 4
  %27 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %31, ptr %15, align 4
  %32 = call noundef float @_ZNK6d2Vec25CrossERKS_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  store float %32, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 1) #5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store <2 x float> %36, ptr %17, align 4
  %37 = call noundef float @_ZNK6d2Vec25CrossERKS_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  store float %37, ptr %16, align 4, !tbaa !12
  %38 = load float, ptr %14, align 4, !tbaa !12
  %39 = fcmp ole float %38, 0.000000e+00
  br i1 %39, label %40, label %49

40:                                               ; preds = %5
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef 0) #5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %11, align 4, !tbaa !9
  %46 = sext i32 %44 to i64
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %46) #5
  %48 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(8) %42)
  br label %49

49:                                               ; preds = %40, %5
  %50 = load float, ptr %16, align 4, !tbaa !12
  %51 = fcmp ole float %50, 0.000000e+00
  br i1 %51, label %52, label %61

52:                                               ; preds = %49
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 1) #5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %11, align 4, !tbaa !9
  %58 = sext i32 %56 to i64
  %59 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %58) #5
  %60 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %54)
  br label %61

61:                                               ; preds = %52, %49
  %62 = load float, ptr %14, align 4, !tbaa !12
  %63 = load float, ptr %16, align 4, !tbaa !12
  %64 = fmul float %62, %63
  %65 = fcmp olt float %64, 0.000000e+00
  br i1 %65, label %66, label %90

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %67 = load float, ptr %14, align 4, !tbaa !12
  %68 = load float, ptr %16, align 4, !tbaa !12
  %69 = fsub float %67, %68
  store float %69, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %70 = load float, ptr %14, align 4, !tbaa !12
  %71 = load float, ptr %18, align 4, !tbaa !12
  %72 = fdiv float %70, %71
  store float %72, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 1) #5
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #5
  %79 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %78)
  store <2 x float> %79, ptr %22, align 4
  %80 = load float, ptr %19, align 4, !tbaa !12
  %81 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef %80)
  store <2 x float> %81, ptr %21, align 4
  %82 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %74, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %82, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %85) #5
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %86, ptr noundef nonnull align 4 dereferenceable(8) %20)
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %90

90:                                               ; preds = %66, %61
  %91 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret i32 %91
}

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) #1

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}


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

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

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; 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 noundef float @_ZNK6d2Vec25CrossERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

declare <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

declare <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #1

declare <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK14d2PolygonShape17ClipSegmentToLineERKSt6vectorI6d2Vec2SaIS1_EERS3_RKS1_S8_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4) local_unnamed_addr #3 align 2 {
  %6 = alloca %struct.d2Vec2, align 8
  %7 = alloca %struct.d2Vec2, align 8
  %8 = alloca %struct.d2Vec2, align 8
  %9 = alloca %struct.d2Vec2, align 8
  %10 = alloca %struct.d2Vec2, align 8
  %11 = alloca %struct.d2Vec2, align 8
  %12 = alloca %struct.d2Vec2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %13 = tail call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %13, ptr %7, align 8
  %14 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %15 = load i64, ptr %14, align 4
  store i64 %15, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %16 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #4
  %17 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %17, ptr %8, align 8
  %18 = call noundef float @_ZNK6d2Vec25CrossERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %19 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #4
  %20 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %20, ptr %9, align 8
  %21 = call noundef float @_ZNK6d2Vec25CrossERKS_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %22 = fcmp ugt float %18, 0.000000e+00
  br i1 %22, label %27, label %23

23:                                               ; preds = %5
  %24 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #4
  %25 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %26 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %24)
  br label %27

27:                                               ; preds = %23, %5
  %.0 = phi i32 [ 1, %23 ], [ 0, %5 ]
  %28 = fcmp ugt float %21, 0.000000e+00
  br i1 %28, label %35, label %29

29:                                               ; preds = %27
  %30 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #4
  %31 = add nuw nsw i32 %.0, 1
  %32 = zext nneg i32 %.0 to i64
  %33 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32) #4
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %30)
  br label %35

35:                                               ; preds = %29, %27
  %.1 = phi i32 [ %31, %29 ], [ %.0, %27 ]
  %36 = fmul float %18, %21
  %37 = fcmp olt float %36, 0.000000e+00
  br i1 %37, label %38, label %51

38:                                               ; preds = %35
  %39 = fsub float %18, %21
  %40 = fdiv float %18, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %41 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %42 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #4
  %43 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #4
  %44 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(8) %43)
  store <2 x float> %44, ptr %12, align 8
  %45 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %40)
  store <2 x float> %45, ptr %11, align 8
  %46 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %46, ptr %10, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  %47 = zext nneg i32 %.1 to i64
  %48 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI6d2Vec2SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %47) #4
  %49 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %50 = add nuw nsw i32 %.1, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %51

51:                                               ; preds = %38, %35
  %.2 = phi i32 [ %50, %38 ], [ %.1, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret i32 %.2
}

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass