; LLVM IR from Derek-TH-Wang/quadruped_ctrl :: src/MPC_Ctrl/Gait.ll (ZN18OffsetDurationGait15getContactStateEv)

; 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.Eigen::Matrix.37" = type { %"class.Eigen::PlainObjectBase.38" }
%"class.Eigen::PlainObjectBase.38" = type { %"class.Eigen::DenseStorage.17" }
%"class.Eigen::DenseStorage.17" = type { %"struct.Eigen::internal::plain_array.18" }
%"struct.Eigen::internal::plain_array.18" = type { [4 x float] }
%"class.Eigen::Array.9" = type { %"class.Eigen::PlainObjectBase.10" }
%"class.Eigen::PlainObjectBase.10" = type { %"class.Eigen::DenseStorage.17" }
%"class.Eigen::CwiseBinaryOp.45" = type <{ [4 x i8], %"class.Eigen::CwiseNullaryOp.51", [4 x i8], ptr, [8 x i8] }>
%"class.Eigen::CwiseNullaryOp.51" = type { [4 x i8], %"struct.Eigen::internal::scalar_constant_op" }
%"struct.Eigen::internal::scalar_constant_op" = type { float }
%"struct.Eigen::Array<float, 4, 1>::PrivateType" = type { i8 }
%"class.Eigen::MatrixWrapper" = type { ptr }
%class.OffsetDurationGait = type <{ %class.Gait, ptr, %"class.Eigen::Array", %"class.Eigen::Array", %"class.Eigen::Array.9", %"class.Eigen::Array.9", i32, i32, float, [4 x i8] }>
%class.Gait = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.Eigen::Array" = type { %"class.Eigen::PlainObjectBase.3" }
%"class.Eigen::PlainObjectBase.3" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { %"struct.Eigen::internal::plain_array" }
%"struct.Eigen::internal::plain_array" = type { [4 x i32] }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18OffsetDurationGait15getContactStateEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Matrix.37") align 16 %0, ptr noundef nonnull align 16 dereferenceable(124) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.Eigen::Array.9", align 16
  %6 = alloca %"class.Eigen::CwiseBinaryOp.45", align 8
  %7 = alloca %"struct.Eigen::Array<float, 4, 1>::PrivateType", align 1
  %8 = alloca i32, align 4
  %9 = alloca %"class.Eigen::MatrixWrapper", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #3
  %11 = getelementptr inbounds %class.OffsetDurationGait, ptr %10, i32 0, i32 8
  %12 = getelementptr inbounds %class.OffsetDurationGait, ptr %10, i32 0, i32 4
  call void @_ZN5EigenmiIfEEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opINS2_18promote_scalar_argIfT_Xsr5Eigen8internal14has_ReturnTypeINS_20ScalarBinaryOpTraitsIS5_fNS3_IS5_fEEEEEE5valueEE4typeEfEEKNS2_19plain_constant_typeINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEESA_E4typeEKSE_EERKS5_RKNS_9ArrayBaseISE_EE(ptr dead_on_unwind writable sret(%"class.Eigen::CwiseBinaryOp.45") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @_ZN5Eigen5ArrayIfLi4ELi1ELi0ELi4ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKNS_14CwiseNullaryOpINS4_18scalar_constant_opIfEEKS1_EESA_EEEERKNS_9EigenBaseIT_EENS4_9enable_ifIXsr8internal14is_convertibleINSF_6ScalarEfEE5valueENS1_11PrivateTypeEE4typeE(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %61, %2
  %14 = load i32, ptr %8, align 4, !tbaa !9
  %15 = icmp slt i32 %14, 4
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %64

17:                                               ; preds = %13
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %19)
  %21 = load float, ptr %20, align 4, !tbaa !11
  %22 = fcmp olt float %21, 0.000000e+00
  br i1 %22, label %23, label %31

23:                                               ; preds = %17
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %25)
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = fpext float %27 to double
  %29 = fadd double %28, 1.000000e+00
  %30 = fptrunc double %29 to float
  store float %30, ptr %26, align 4, !tbaa !11
  br label %31

31:                                               ; preds = %23, %17
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %33)
  %35 = load float, ptr %34, align 4, !tbaa !11
  %36 = getelementptr inbounds %class.OffsetDurationGait, ptr %10, i32 0, i32 5
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %36, i64 noundef %38)
  %40 = load float, ptr %39, align 4, !tbaa !11
  %41 = fcmp ogt float %35, %40
  br i1 %41, label %42, label %46

42:                                               ; preds = %31
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %44)
  store float 0.000000e+00, ptr %45, align 4, !tbaa !11
  br label %60

46:                                               ; preds = %31
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %48)
  %50 = load float, ptr %49, align 4, !tbaa !11
  %51 = getelementptr inbounds %class.OffsetDurationGait, ptr %10, i32 0, i32 5
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %51, i64 noundef %53)
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = fdiv float %50, %55
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %58)
  store float %56, ptr %59, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %46, %42
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %8, align 4, !tbaa !9
  br label %13, !llvm.loop !13

64:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %65 = call ptr @_ZN5Eigen9ArrayBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEE6matrixEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  %66 = getelementptr inbounds %"class.Eigen::MatrixWrapper", ptr %9, i32 0, i32 0
  store ptr %65, ptr %66, align 8
  call void @_ZN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEC2INS_13MatrixWrapperINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEEEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 16 dereferenceable(16) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5EigenmiIfEEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opINS2_18promote_scalar_argIfT_Xsr5Eigen8internal14has_ReturnTypeINS_20ScalarBinaryOpTraitsIS5_fNS3_IS5_fEEEEEE5valueEE4typeEfEEKNS2_19plain_constant_typeINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEESA_E4typeEKSE_EERKS5_RKNS_9ArrayBaseISE_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::CwiseBinaryOp.45") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen5ArrayIfLi4ELi1ELi0ELi4ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKNS_14CwiseNullaryOpINS4_18scalar_constant_opIfEEKS1_EESA_EEEERKNS_9EigenBaseIT_EENS4_9enable_ifIXsr8internal14is_convertibleINSF_6ScalarEfEE5valueENS1_11PrivateTypeEE4typeE(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN5Eigen9ArrayBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEE6matrixEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEC2INS_13MatrixWrapperINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEEEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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"

%"class.Eigen::Matrix.37" = type { %"class.Eigen::PlainObjectBase.38" }
%"class.Eigen::PlainObjectBase.38" = type { %"class.Eigen::DenseStorage.17" }
%"class.Eigen::DenseStorage.17" = type { %"struct.Eigen::internal::plain_array.18" }
%"struct.Eigen::internal::plain_array.18" = type { [4 x float] }
%"class.Eigen::Array.9" = type { %"class.Eigen::PlainObjectBase.10" }
%"class.Eigen::PlainObjectBase.10" = type { %"class.Eigen::DenseStorage.17" }
%"class.Eigen::CwiseBinaryOp.45" = type <{ [4 x i8], %"class.Eigen::CwiseNullaryOp.51", [4 x i8], ptr, [8 x i8] }>
%"class.Eigen::CwiseNullaryOp.51" = type { [4 x i8], %"struct.Eigen::internal::scalar_constant_op" }
%"struct.Eigen::internal::scalar_constant_op" = type { float }
%"class.Eigen::MatrixWrapper" = type { ptr }

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

; 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 @_ZN18OffsetDurationGait15getContactStateEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Matrix.37") align 16 %0, ptr noundef nonnull align 16 dereferenceable(124) %1) unnamed_addr #1 align 2 {
  %3 = alloca %"class.Eigen::Array.9", align 16
  %4 = alloca %"class.Eigen::CwiseBinaryOp.45", align 8
  %5 = alloca %"class.Eigen::MatrixWrapper", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
  %6 = getelementptr inbounds i8, ptr %1, i64 120
  %7 = getelementptr inbounds i8, ptr %1, i64 80
  call void @_ZN5EigenmiIfEEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opINS2_18promote_scalar_argIfT_Xsr5Eigen8internal14has_ReturnTypeINS_20ScalarBinaryOpTraitsIS5_fNS3_IS5_fEEEEEE5valueEE4typeEfEEKNS2_19plain_constant_typeINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEESA_E4typeEKSE_EERKS5_RKNS_9ArrayBaseISE_EE(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::CwiseBinaryOp.45") align 8 %4, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @_ZN5Eigen5ArrayIfLi4ELi1ELi0ELi4ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKNS_14CwiseNullaryOpINS4_18scalar_constant_opIfEEKS1_EESA_EEEERKNS_9EigenBaseIT_EENS4_9enable_ifIXsr8internal14is_convertibleINSF_6ScalarEfEE5valueENS1_11PrivateTypeEE4typeE(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  %8 = getelementptr inbounds i8, ptr %1, i64 96
  %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 0)
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = fcmp olt float %10, 0.000000e+00
  br i1 %11, label %12, label %16

12:                                               ; preds = %2
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 0)
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = fadd float %14, 1.000000e+00
  store float %15, ptr %13, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %12, %2
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 0)
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 0)
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = fcmp ogt float %18, %20
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 0)
  br i1 %21, label %23, label %24

23:                                               ; preds = %16
  store float 0.000000e+00, ptr %22, align 4, !tbaa !5
  br label %30

24:                                               ; preds = %16
  %25 = load float, ptr %22, align 4, !tbaa !5
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 0)
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = fdiv float %25, %27
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 0)
  store float %28, ptr %29, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %23, %24
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 1)
  %32 = load float, ptr %31, align 4, !tbaa !5
  %33 = fcmp olt float %32, 0.000000e+00
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 1)
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = fadd float %36, 1.000000e+00
  store float %37, ptr %35, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %34, %30
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 1)
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 1)
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fcmp ogt float %40, %42
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 1)
  br i1 %43, label %51, label %45

45:                                               ; preds = %38
  %46 = load float, ptr %44, align 4, !tbaa !5
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 1)
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = fdiv float %46, %48
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 1)
  store float %49, ptr %50, align 4, !tbaa !5
  br label %52

51:                                               ; preds = %38
  store float 0.000000e+00, ptr %44, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %51, %45
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 2)
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fcmp olt float %54, 0.000000e+00
  br i1 %55, label %56, label %60

56:                                               ; preds = %52
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 2)
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fadd float %58, 1.000000e+00
  store float %59, ptr %57, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %56, %52
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 2)
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 2)
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = fcmp ogt float %62, %64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 2)
  br i1 %65, label %73, label %67

67:                                               ; preds = %60
  %68 = load float, ptr %66, align 4, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 2)
  %70 = load float, ptr %69, align 4, !tbaa !5
  %71 = fdiv float %68, %70
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 2)
  store float %71, ptr %72, align 4, !tbaa !5
  br label %74

73:                                               ; preds = %60
  store float 0.000000e+00, ptr %66, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %73, %67
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 3)
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = fcmp olt float %76, 0.000000e+00
  br i1 %77, label %78, label %82

78:                                               ; preds = %74
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 3)
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = fadd float %80, 1.000000e+00
  store float %81, ptr %79, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %78, %74
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 3)
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 3)
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = fcmp ogt float %84, %86
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 3)
  br i1 %87, label %95, label %89

89:                                               ; preds = %82
  %90 = load float, ptr %88, align 4, !tbaa !5
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef 3)
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = fdiv float %90, %92
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef 3)
  store float %93, ptr %94, align 4, !tbaa !5
  br label %96

95:                                               ; preds = %82
  store float 0.000000e+00, ptr %88, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %95, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %97 = call ptr @_ZN5Eigen9ArrayBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEE6matrixEv(ptr noundef nonnull align 1 dereferenceable(1) %3)
  store ptr %97, ptr %5, align 8
  call void @_ZN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEC2INS_13MatrixWrapperINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEEEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 16 dereferenceable(16) %0, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5EigenmiIfEEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opINS2_18promote_scalar_argIfT_Xsr5Eigen8internal14has_ReturnTypeINS_20ScalarBinaryOpTraitsIS5_fNS3_IS5_fEEEEEE5valueEE4typeEfEEKNS2_19plain_constant_typeINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEESA_E4typeEKSE_EERKS5_RKNS_9ArrayBaseISE_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::CwiseBinaryOp.45") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen5ArrayIfLi4ELi1ELi0ELi4ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKNS_14CwiseNullaryOpINS4_18scalar_constant_opIfEEKS1_EESA_EEEERKNS_9EigenBaseIT_EENS4_9enable_ifIXsr8internal14is_convertibleINSF_6ScalarEfEE5valueENS1_11PrivateTypeEE4typeE(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN5Eigen9ArrayBaseINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEE6matrixEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEC2INS_13MatrixWrapperINS_5ArrayIfLi4ELi1ELi0ELi4ELi1EEEEEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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


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