; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (gjk)

; 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.geometry::types::minkowskiDiffSimplex_t" = type { [4 x i32], [4 x i32], %class.Vector4, i32, [4 x %class.Vector3], [4 x %class.Vector3], [4 x %class.Vector3] }
%class.Vector4 = type { [4 x float] }
%class.Vector3 = type { [3 x float] }

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry3gjk10minSimplexERK7Vector4RKNS_5types22minkowskiDiffSimplex_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::minkowskiDiffSimplex_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(196) %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @_ZN8geometry5types22minkowskiDiffSimplex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(196) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %9 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 3
  store ptr %9, ptr %7, align 8, !tbaa !5
  %10 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %89, %3
  %12 = load i32, ptr %8, align 4, !tbaa !9
  %13 = icmp ult i32 %12, 4
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %92

15:                                               ; preds = %11
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %16, i32 noundef %17)
  %19 = load float, ptr %18, align 4, !tbaa !11
  %20 = fcmp ogt float %19, 0.000000e+00
  br i1 %20, label %21, label %88

21:                                               ; preds = %15
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %22, i32 0, i32 0
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds [4 x i32], ptr %23, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 0
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [4 x i32], ptr %28, i64 0, i64 %31
  store i32 %27, ptr %32, align 4, !tbaa !9
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %33, i32 0, i32 1
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 1
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds [4 x i32], ptr %39, i64 0, i64 %42
  store i32 %38, ptr %43, align 4, !tbaa !9
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %44, i32 0, i32 5
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds [4 x %class.Vector3], ptr %45, i64 0, i64 %47
  %49 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds [4 x %class.Vector3], ptr %49, i64 0, i64 %52
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %48)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %55, i32 0, i32 6
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [4 x %class.Vector3], ptr %56, i64 0, i64 %58
  %60 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 6
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [4 x %class.Vector3], ptr %60, i64 0, i64 %63
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %59)
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %66, i32 0, i32 4
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds [4 x %class.Vector3], ptr %67, i64 0, i64 %69
  %71 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 4
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds [4 x %class.Vector3], ptr %71, i64 0, i64 %74
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) %70)
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %77, i32 noundef %78)
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = getelementptr inbounds %"struct.geometry::types::minkowskiDiffSimplex_t", ptr %0, i32 0, i32 2
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %81, i32 noundef %83)
  store float %80, ptr %84, align 4, !tbaa !11
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = add i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %21, %15
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = add i32 %90, 1
  store i32 %91, ptr %8, align 4, !tbaa !9
  br label %11, !llvm.loop !13

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types22minkowskiDiffSimplex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(196)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #3 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 = { 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 #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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

%"struct.geometry::types::minkowskiDiffSimplex_t" = type { [4 x i32], [4 x i32], %class.Vector4, i32, [4 x %class.Vector3], [4 x %class.Vector3], [4 x %class.Vector3] }
%class.Vector4 = type { [4 x float] }
%class.Vector3 = type { [3 x float] }

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry3gjk10minSimplexERK7Vector4RKNS_5types22minkowskiDiffSimplex_tE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.geometry::types::minkowskiDiffSimplex_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(196) %2) local_unnamed_addr #0 {
  tail call void @_ZN8geometry5types22minkowskiDiffSimplex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(196) %0)
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 0, ptr %4, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = getelementptr inbounds i8, ptr %0, i64 100
  %7 = getelementptr inbounds i8, ptr %0, i64 148
  %8 = getelementptr inbounds i8, ptr %0, i64 52
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 0)
  %11 = load float, ptr %10, align 4, !tbaa !9
  %12 = fcmp ogt float %11, 0.000000e+00
  br i1 %12, label %13, label %44

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %2, i64 52
  %15 = getelementptr inbounds i8, ptr %2, i64 148
  %16 = getelementptr inbounds i8, ptr %2, i64 100
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds [4 x i32], ptr %0, i64 0, i64 %20
  store i32 %18, ptr %21, align 4, !tbaa !5
  %22 = load i32, ptr %17, align 4, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %24
  store i32 %22, ptr %25, align 4, !tbaa !5
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds [4 x %class.Vector3], ptr %6, i64 0, i64 %27
  %29 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [4 x %class.Vector3], ptr %7, i64 0, i64 %31
  %33 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds [4 x %class.Vector3], ptr %8, i64 0, i64 %35
  %37 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 0)
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %40)
  store float %39, ptr %41, align 4, !tbaa !9
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = add i32 %42, 1
  store i32 %43, ptr %4, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %3, %13
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 1)
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fcmp ogt float %46, 0.000000e+00
  br i1 %47, label %48, label %80

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %2, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds [4 x i32], ptr %0, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %2, i64 20
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %57
  store i32 %55, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %2, i64 112
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [4 x %class.Vector3], ptr %6, i64 0, i64 %61
  %63 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %59)
  %64 = getelementptr inbounds i8, ptr %2, i64 160
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [4 x %class.Vector3], ptr %7, i64 0, i64 %66
  %68 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %64)
  %69 = getelementptr inbounds i8, ptr %2, i64 64
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds [4 x %class.Vector3], ptr %8, i64 0, i64 %71
  %73 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(12) %69)
  %74 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 1)
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %76)
  store float %75, ptr %77, align 4, !tbaa !9
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = add i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %48, %44
  %81 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 2)
  %82 = load float, ptr %81, align 4, !tbaa !9
  %83 = fcmp ogt float %82, 0.000000e+00
  br i1 %83, label %84, label %116

84:                                               ; preds = %80
  %85 = getelementptr inbounds i8, ptr %2, i64 8
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [4 x i32], ptr %0, i64 0, i64 %88
  store i32 %86, ptr %89, align 4, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %2, i64 24
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %93
  store i32 %91, ptr %94, align 4, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %2, i64 124
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [4 x %class.Vector3], ptr %6, i64 0, i64 %97
  %99 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %98, ptr noundef nonnull align 4 dereferenceable(12) %95)
  %100 = getelementptr inbounds i8, ptr %2, i64 172
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds [4 x %class.Vector3], ptr %7, i64 0, i64 %102
  %104 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %103, ptr noundef nonnull align 4 dereferenceable(12) %100)
  %105 = getelementptr inbounds i8, ptr %2, i64 76
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds [4 x %class.Vector3], ptr %8, i64 0, i64 %107
  %109 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %108, ptr noundef nonnull align 4 dereferenceable(12) %105)
  %110 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 2)
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %112)
  store float %111, ptr %113, align 4, !tbaa !9
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %4, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %84, %80
  %117 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 3)
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = fcmp ogt float %118, 0.000000e+00
  br i1 %119, label %120, label %152

120:                                              ; preds = %116
  %121 = getelementptr inbounds i8, ptr %2, i64 12
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds [4 x i32], ptr %0, i64 0, i64 %124
  store i32 %122, ptr %125, align 4, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %2, i64 28
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %129
  store i32 %127, ptr %130, align 4, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %2, i64 136
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [4 x %class.Vector3], ptr %6, i64 0, i64 %133
  %135 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %134, ptr noundef nonnull align 4 dereferenceable(12) %131)
  %136 = getelementptr inbounds i8, ptr %2, i64 184
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds [4 x %class.Vector3], ptr %7, i64 0, i64 %138
  %140 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %139, ptr noundef nonnull align 4 dereferenceable(12) %136)
  %141 = getelementptr inbounds i8, ptr %2, i64 88
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds [4 x %class.Vector3], ptr %8, i64 0, i64 %143
  %145 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %144, ptr noundef nonnull align 4 dereferenceable(12) %141)
  %146 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 3)
  %147 = load float, ptr %146, align 4, !tbaa !9
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %148)
  store float %147, ptr %149, align 4, !tbaa !9
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = add i32 %150, 1
  store i32 %151, ptr %4, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %120, %116
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types22minkowskiDiffSimplex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(196)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_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 = { 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 #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" }

!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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass