; LLVM IR from SOHNE/Dura2D :: src/collision/d2Constraint.ll (ZN23d2PenetrationConstraintC2EP6d2BodyS1_RK6d2Vec2S4_S4_)

; 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 }
%class.d2PenetrationConstraint = type { %class.d2Constraint, %struct.d2MatMN, %struct.d2VecN, float, %struct.d2Vec2, float }
%class.d2Constraint = type { ptr, ptr, ptr, %struct.d2Vec2, %struct.d2Vec2, ptr, ptr }
%struct.d2MatMN = type { i32, i32, ptr }
%struct.d2VecN = type { i32, ptr }

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

declare void @_ZN7d2MatMNC1Eii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7d2MatMND1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @_ZN6d2VecNC1Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) unnamed_addr #0

declare void @_ZN6d2VecN4ZeroEv(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: nounwind
declare void @_ZN6d2VecND1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12d2ConstraintC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

declare <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(8)) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23d2PenetrationConstraintC2EP6d2BodyS1_RK6d2Vec2S4_S4_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.d2Vec2, align 4
  %16 = alloca %struct.d2Vec2, align 4
  %17 = alloca %struct.d2Vec2, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8
  %19 = getelementptr inbounds i8, ptr %18, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 56, i1 false)
  call void @_ZN12d2ConstraintC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18)
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTV23d2PenetrationConstraint, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 1
  invoke void @_ZN7d2MatMNC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %20, i32 noundef 2, i32 noundef 6)
          to label %21 unwind label %55

21:                                               ; preds = %6
  %22 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 2
  invoke void @_ZN6d2VecNC1Ei(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef 2)
          to label %23 unwind label %59

23:                                               ; preds = %21
  %24 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 3
  store float 0.000000e+00, ptr %24, align 8, !tbaa !11
  %25 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 4
  invoke void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %26 unwind label %63

26:                                               ; preds = %23
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.d2Constraint, ptr %18, i32 0, i32 1
  store ptr %27, ptr %28, align 8, !tbaa !19
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.d2Constraint, ptr %18, i32 0, i32 2
  store ptr %29, ptr %30, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = invoke <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132) %31, ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %34 unwind label %67

34:                                               ; preds = %26
  store <2 x float> %33, ptr %15, align 4
  %35 = getelementptr inbounds %class.d2Constraint, ptr %18, i32 0, i32 3
  %36 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %37 unwind label %67

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = invoke <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132) %38, ptr noundef nonnull align 4 dereferenceable(8) %39)
          to label %41 unwind label %71

41:                                               ; preds = %37
  store <2 x float> %40, ptr %16, align 4
  %42 = getelementptr inbounds %class.d2Constraint, ptr %18, i32 0, i32 4
  %43 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %44 unwind label %71

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = invoke <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132) %45, ptr noundef nonnull align 4 dereferenceable(8) %46)
          to label %48 unwind label %75

48:                                               ; preds = %44
  store <2 x float> %47, ptr %17, align 4
  %49 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 4
  %50 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %51 unwind label %75

51:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %52 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 2
  invoke void @_ZN6d2VecN4ZeroEv(ptr noundef nonnull align 8 dereferenceable(16) %52)
          to label %53 unwind label %63

53:                                               ; preds = %51
  %54 = getelementptr inbounds %class.d2PenetrationConstraint, ptr %18, i32 0, i32 5
  store float 0.000000e+00, ptr %54, align 4, !tbaa !21
  ret void

55:                                               ; preds = %6
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %13, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %14, align 4
  br label %81

59:                                               ; preds = %21
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %13, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %14, align 4
  br label %80

63:                                               ; preds = %51, %23
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %13, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %14, align 4
  br label %79

67:                                               ; preds = %34, %26
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %13, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %79

71:                                               ; preds = %41, %37
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %79

75:                                               ; preds = %48, %44
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %13, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %79

79:                                               ; preds = %75, %71, %67, %63
  call void @_ZN6d2VecND1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %80

80:                                               ; preds = %79, %59
  call void @_ZN7d2MatMND1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %81

81:                                               ; preds = %80, %55
  call void @_ZN12d2ConstraintD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #7
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %13, align 8
  %84 = load i32, ptr %14, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

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

attributes #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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = { 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 #7 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !15, i64 88}
!12 = !{!"_ZTS23d2PenetrationConstraint", !13, i64 0, !16, i64 56, !18, i64 72, !15, i64 88, !14, i64 92, !15, i64 100}
!13 = !{!"_ZTS12d2Constraint", !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !6, i64 48}
!14 = !{!"_ZTS6d2Vec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS7d2MatMN", !17, i64 0, !17, i64 4, !6, i64 8}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTS6d2VecN", !17, i64 0, !6, i64 8}
!19 = !{!13, !6, i64 8}
!20 = !{!13, !6, i64 16}
!21 = !{!12, !15, i64 100}


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

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

declare void @_ZN7d2MatMNC1Eii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7d2MatMND1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @_ZN6d2VecNC1Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) unnamed_addr #0

declare void @_ZN6d2VecN4ZeroEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN6d2VecND1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12d2ConstraintC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

declare <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #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 #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23d2PenetrationConstraintC2EP6d2BodyS1_RK6d2Vec2S4_S4_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.d2Vec2, align 8
  %8 = alloca %struct.d2Vec2, align 8
  %9 = alloca %struct.d2Vec2, align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 0, i64 56, i1 false)
  tail call void @_ZN12d2ConstraintC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0)
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTV23d2PenetrationConstraint, i64 16), ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN7d2MatMNC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 2, i32 noundef 6)
          to label %11 unwind label %34

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_ZN6d2VecNC1Ei(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 2)
          to label %13 unwind label %36

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  store float 0.000000e+00, ptr %14, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %0, i64 92
  tail call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %16, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %2, ptr %17, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %18 = invoke <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %19 unwind label %40

19:                                               ; preds = %13
  store <2 x float> %18, ptr %7, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %22 unwind label %40

22:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %23 = invoke <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132) %2, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %24 unwind label %42

24:                                               ; preds = %22
  store <2 x float> %23, ptr %8, align 8
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %27 unwind label %42

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %28 = invoke <2 x float> @_ZNK6d2Body22WorldSpaceToLocalSpaceERK6d2Vec2(ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %29 unwind label %44

29:                                               ; preds = %27
  store <2 x float> %28, ptr %9, align 8
  %30 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %31 unwind label %44

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  invoke void @_ZN6d2VecN4ZeroEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %32 unwind label %38

32:                                               ; preds = %31
  %33 = getelementptr inbounds i8, ptr %0, i64 100
  store float 0.000000e+00, ptr %33, align 4, !tbaa !20
  ret void

34:                                               ; preds = %6
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %48

36:                                               ; preds = %11
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %47

38:                                               ; preds = %31
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %46

40:                                               ; preds = %19, %13
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %46

42:                                               ; preds = %24, %22
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %46

44:                                               ; preds = %29, %27
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %46

46:                                               ; preds = %44, %42, %40, %38
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %45, %44 ], [ %43, %42 ], [ %41, %40 ]
  call void @_ZN6d2VecND1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %47

47:                                               ; preds = %46, %36
  %.pn.pn = phi { ptr, i32 } [ %.pn, %46 ], [ %37, %36 ]
  call void @_ZN7d2MatMND1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %48

48:                                               ; preds = %47, %34
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %47 ], [ %35, %34 ]
  call void @_ZN12d2ConstraintD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

attributes #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 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = { 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 #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 88}
!9 = !{!"_ZTS23d2PenetrationConstraint", !10, i64 0, !15, i64 56, !17, i64 72, !14, i64 88, !13, i64 92, !14, i64 100}
!10 = !{!"_ZTS12d2Constraint", !11, i64 8, !11, i64 16, !13, i64 24, !13, i64 32, !11, i64 40, !11, i64 48}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTS6d2Vec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !12, i64 0}
!15 = !{!"_ZTS7d2MatMN", !16, i64 0, !16, i64 4, !11, i64 8}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTS6d2VecN", !16, i64 0, !11, i64 8}
!18 = !{!10, !11, i64 8}
!19 = !{!10, !11, i64 16}
!20 = !{!9, !14, i64 100}


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