; LLVM IR from Xingyu-Lin/softgym :: PyFlex/extensions (flexExtMovingFrame)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.XVector3 = type { float, float, float }
%class.XVector4 = type { float, float, float, float }
%"struct.(anonymous namespace)::MovingFrame" = type { %class.XVector3, %class.XQuat, %class.XVector3, %class.XVector3, %class.XVector3, %class.XVector3, %class.XMatrix44 }
%class.XQuat = type { float, float, float, float }
%class.XMatrix44 = type { [4 x [4 x float]] }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @NvFlexExtMovingFrameApply(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, float noundef %4, float noundef %5, float noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %class.XVector3, align 4
  %17 = alloca %class.XVector3, align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.XVector3, align 4
  %22 = alloca %class.XVector3, align 4
  %23 = alloca %class.XVector3, align 4
  %24 = alloca %class.XVector3, align 4
  %25 = alloca %class.XVector3, align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca { <2 x float>, float }, align 8
  %29 = alloca %class.XVector3, align 4
  %30 = alloca %class.XVector4, align 4
  %31 = alloca %class.XVector4, align 4
  %32 = alloca %class.XVector3, align 4
  %33 = alloca %class.XVector3, align 4
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !11
  store float %5, ptr %13, align 4, !tbaa !11
  store float %6, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %36, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  %38 = call { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame14GetLinearForceEv(ptr noundef nonnull align 4 dereferenceable(140) %37)
  store { <2 x float>, float } %38, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %18, i64 12, i1 false)
  %39 = load float, ptr %12, align 4, !tbaa !11
  %40 = call { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %39)
  store { <2 x float>, float } %40, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %125, %7
  %42 = load i32, ptr %20, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %128

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #7
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i32, ptr %20, align 4, !tbaa !9
  %49 = mul nsw i32 %48, 4
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds float, ptr %47, i64 %50
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #7
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i32, ptr %20, align 4, !tbaa !9
  %54 = mul nsw i32 %53, 3
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds float, ptr %52, i64 %55
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %25, i64 12, i1 false)
  %58 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %59 = load <2 x float>, ptr %58, align 4
  %60 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %61 = load float, ptr %60, align 4
  %62 = call { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame15GetAngularForceE8XVector3IfE(ptr noundef nonnull align 4 dereferenceable(140) %57, <2 x float> %59, float %61)
  store { <2 x float>, float } %62, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %27, i64 12, i1 false)
  %63 = load float, ptr %13, align 4, !tbaa !11
  %64 = call { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %24, float noundef %63)
  store { <2 x float>, float } %64, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %28, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.(anonymous namespace)::MovingFrame", ptr %65, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  call void @_ZN8XVector4IfEC2ERK8XVector3IfEf(ptr noundef nonnull align 4 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef 1.000000e+00)
  %67 = call { <2 x float>, <2 x float> } @_ZmlIfE8XVector4IT_ERK9XMatrix44IS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64) %66, ptr noundef nonnull align 4 dereferenceable(16) %31)
  %68 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 0
  %69 = extractvalue { <2 x float>, <2 x float> } %67, 0
  store <2 x float> %69, ptr %68, align 4
  %70 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 1
  %71 = extractvalue { <2 x float>, <2 x float> } %67, 1
  store <2 x float> %71, ptr %70, align 4
  %72 = call noundef ptr @_ZN8XVector4IfEcvPfEv(ptr noundef nonnull align 4 dereferenceable(16) %30)
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef %72)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %29, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #7
  %73 = call { <2 x float>, float } @_ZNK8XVector3IfEplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %23)
  store { <2 x float>, float } %73, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %34, i64 12, i1 false)
  %74 = load float, ptr %14, align 4, !tbaa !11
  %75 = call { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %33, float noundef %74)
  store { <2 x float>, float } %75, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %35, i64 12, i1 false)
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8XVector3IfEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  %77 = getelementptr inbounds %class.XVector3, ptr %21, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !14
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %20, align 4, !tbaa !9
  %81 = mul nsw i32 %80, 4
  %82 = add nsw i32 %81, 0
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds float, ptr %79, i64 %83
  store float %78, ptr %84, align 4, !tbaa !11
  %85 = getelementptr inbounds %class.XVector3, ptr %21, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !16
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %20, align 4, !tbaa !9
  %89 = mul nsw i32 %88, 4
  %90 = add nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %87, i64 %91
  store float %86, ptr %92, align 4, !tbaa !11
  %93 = getelementptr inbounds %class.XVector3, ptr %21, i32 0, i32 2
  %94 = load float, ptr %93, align 4, !tbaa !17
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = mul nsw i32 %96, 4
  %98 = add nsw i32 %97, 2
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %95, i64 %99
  store float %94, ptr %100, align 4, !tbaa !11
  %101 = getelementptr inbounds %class.XVector3, ptr %22, i32 0, i32 0
  %102 = load float, ptr %101, align 4, !tbaa !14
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = mul nsw i32 %104, 3
  %106 = add nsw i32 %105, 0
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %103, i64 %107
  store float %102, ptr %108, align 4, !tbaa !11
  %109 = getelementptr inbounds %class.XVector3, ptr %22, i32 0, i32 1
  %110 = load float, ptr %109, align 4, !tbaa !16
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load i32, ptr %20, align 4, !tbaa !9
  %113 = mul nsw i32 %112, 3
  %114 = add nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %111, i64 %115
  store float %110, ptr %116, align 4, !tbaa !11
  %117 = getelementptr inbounds %class.XVector3, ptr %22, i32 0, i32 2
  %118 = load float, ptr %117, align 4, !tbaa !17
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load i32, ptr %20, align 4, !tbaa !9
  %121 = mul nsw i32 %120, 3
  %122 = add nsw i32 %121, 2
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %119, i64 %123
  store float %118, ptr %124, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #7
  br label %125

125:                                              ; preds = %46
  %126 = load i32, ptr %20, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %20, align 4, !tbaa !9
  br label %41, !llvm.loop !18

128:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame14GetLinearForceEv(ptr noundef nonnull align 4 dereferenceable(140)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame15GetAngularForceE8XVector3IfE(ptr noundef nonnull align 4 dereferenceable(140), <2 x float>, float) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZmlIfE8XVector4IT_ERK9XMatrix44IS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8XVector4IfEcvPfEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK8XVector3IfEplERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8XVector3IfEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 = { 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 = { 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 = { 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 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11}
!14 = !{!15, !12, i64 0}
!15 = !{!"_ZTS8XVector3IfE", !12, i64 0, !12, i64 4, !12, i64 8}
!16 = !{!15, !12, i64 4}
!17 = !{!15, !12, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.XVector3 = type { float, float, float }
%class.XVector4 = type { float, float, float, float }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress 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) #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 uwtable
define dso_local void @NvFlexExtMovingFrameApply(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, float noundef %4, float noundef %5, float noundef %6) local_unnamed_addr #3 {
  %8 = alloca %class.XVector3, align 8
  %9 = alloca %class.XVector3, align 8
  %10 = alloca %class.XVector3, align 8
  %11 = alloca %class.XVector3, align 8
  %12 = alloca %class.XVector3, align 8
  %13 = alloca %class.XVector3, align 8
  %14 = alloca %class.XVector3, align 4
  %15 = alloca %class.XVector4, align 8
  %16 = alloca %class.XVector4, align 4
  %17 = alloca %class.XVector3, align 8
  %18 = alloca %class.XVector3, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %19 = tail call { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame14GetLinearForceEv(ptr noundef nonnull align 4 dereferenceable(140) %0)
  %.fca.0.extract30 = extractvalue { <2 x float>, float } %19, 0
  %.fca.1.extract31 = extractvalue { <2 x float>, float } %19, 1
  store <2 x float> %.fca.0.extract30, ptr %9, align 8
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract31, ptr %.sroa.233.0..sroa_idx, align 8
  %20 = call { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %4)
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %20, 1
  store <2 x float> %.fca.0.extract26, ptr %8, align 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  %21 = icmp sgt i32 %3, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %22 = getelementptr inbounds i8, ptr %0, i64 76
  %23 = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %24 = getelementptr inbounds i8, ptr %11, i64 8
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %25

._crit_edge:                                      ; preds = %25, %7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  ret void

25:                                               ; preds = %.lr.ph, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %25 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  %26 = shl nsw i64 %indvars.iv, 2
  %27 = getelementptr inbounds float, ptr %1, i64 %26
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %.idx = mul i64 %indvars.iv, 12
  %28 = getelementptr inbounds i8, ptr %2, i64 %.idx
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  %.sroa.015.0.copyload = load <2 x float>, ptr %10, align 8
  %.sroa.216.0.copyload = load float, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !5
  %29 = call { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame15GetAngularForceE8XVector3IfE(ptr noundef nonnull align 4 dereferenceable(140) %0, <2 x float> %.sroa.015.0.copyload, float %.sroa.216.0.copyload)
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %29, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %29, 1
  store <2 x float> %.fca.0.extract9, ptr %13, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %30 = call { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %5)
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %30, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %30, 1
  store <2 x float> %.fca.0.extract5, ptr %12, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @_ZN8XVector4IfEC2ERK8XVector3IfEf(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 1.000000e+00)
  %31 = call { <2 x float>, <2 x float> } @_ZmlIfE8XVector4IT_ERK9XMatrix44IS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64) %22, ptr noundef nonnull align 4 dereferenceable(16) %16)
  %32 = extractvalue { <2 x float>, <2 x float> } %31, 0
  store <2 x float> %32, ptr %15, align 8
  %33 = extractvalue { <2 x float>, <2 x float> } %31, 1
  store <2 x float> %33, ptr %23, align 8
  %34 = call noundef ptr @_ZN8XVector4IfEcvPfEv(ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef %34)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  %35 = call { <2 x float>, float } @_ZNK8XVector3IfEplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %35, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %35, 1
  store <2 x float> %.fca.0.extract1, ptr %18, align 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %36 = call { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %6)
  %.fca.0.extract = extractvalue { <2 x float>, float } %36, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %36, 1
  store <2 x float> %.fca.0.extract, ptr %17, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %37 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8XVector3IfEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  %38 = load <2 x float>, ptr %10, align 8, !tbaa !5
  store <2 x float> %38, ptr %27, align 4, !tbaa !5
  %39 = load float, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !10
  %40 = or disjoint i64 %26, 2
  %41 = getelementptr inbounds float, ptr %1, i64 %40
  store float %39, ptr %41, align 4, !tbaa !5
  %42 = load <2 x float>, ptr %11, align 8, !tbaa !5
  store <2 x float> %42, ptr %28, align 4, !tbaa !5
  %43 = load float, ptr %24, align 8, !tbaa !10
  %44 = getelementptr inbounds i8, ptr %28, i64 8
  store float %43, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %25, !llvm.loop !12
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame14GetLinearForceEv(ptr noundef nonnull align 4 dereferenceable(140)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8XVector3IfEmlEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZNK12_GLOBAL__N_111MovingFrame15GetAngularForceE8XVector3IfE(ptr noundef nonnull align 4 dereferenceable(140), <2 x float>, float) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZmlIfE8XVector4IT_ERK9XMatrix44IS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK8XVector3IfEplERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8XVector3IfEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 = { 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 = { 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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!10 = !{!11, !6, i64 8}
!11 = !{!"_ZTS8XVector3IfE", !6, i64 0, !6, i64 4, !6, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass