; LLVM IR from ardiloot/NonlinearTMM :: NonlinearTMM/src/eigen-3.4.0/unsupported/test (NonLinearOptimization)

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

@.str.28 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [127 x i8], align 1
@__PRETTY_FUNCTION__._Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi = external hidden unnamed_addr constant [62 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZZ10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEiE1y = external hidden constant [15 x double], align 16

; 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 noundef i32 @_Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) #1 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = call noundef i64 @_ZNK5Eigen9EigenBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  %18 = icmp eq i64 15, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  br label %22

20:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.29, i32 noundef 32, ptr noundef @__PRETTY_FUNCTION__._Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi) #7
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef i64 @_ZNK5Eigen9EigenBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  %25 = icmp eq i64 3, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %22
  br label %29

27:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.29, i32 noundef 33, ptr noundef @__PRETTY_FUNCTION__._Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi) #7
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %141

33:                                               ; preds = %29
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = icmp ne i32 %34, 2
  br i1 %35, label %36, label %83

36:                                               ; preds = %33
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %79, %36
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 15
  br i1 %39, label %40, label %82

40:                                               ; preds = %37
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  %43 = sitofp i32 %42 to double
  store double %43, ptr %11, align 8, !tbaa !11
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = sub nsw i32 16, %44
  %46 = sub nsw i32 %45, 1
  %47 = sitofp i32 %46 to double
  store double %47, ptr %12, align 8, !tbaa !11
  %48 = load double, ptr %11, align 8, !tbaa !11
  store double %48, ptr %13, align 8, !tbaa !11
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = icmp sge i32 %49, 8
  br i1 %50, label %51, label %53

51:                                               ; preds = %40
  %52 = load double, ptr %12, align 8, !tbaa !11
  store double %52, ptr %13, align 8, !tbaa !11
  br label %53

53:                                               ; preds = %51, %40
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x double], ptr @_ZZ10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEiE1y, i64 0, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %58, i64 noundef 0)
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = load double, ptr %11, align 8, !tbaa !11
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %62, i64 noundef 1)
  %64 = load double, ptr %63, align 8, !tbaa !11
  %65 = load double, ptr %12, align 8, !tbaa !11
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %66, i64 noundef 2)
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = load double, ptr %13, align 8, !tbaa !11
  %70 = fmul double %68, %69
  %71 = call double @llvm.fmuladd.f64(double %64, double %65, double %70)
  %72 = fdiv double %61, %71
  %73 = fadd double %60, %72
  %74 = fsub double %57, %73
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %75, i64 noundef %77)
  store double %74, ptr %78, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %53
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !9
  br label %37, !llvm.loop !13

82:                                               ; preds = %37
  br label %140

83:                                               ; preds = %33
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %136, %83
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = icmp slt i32 %85, 15
  br i1 %86, label %87, label %139

87:                                               ; preds = %84
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  %90 = sitofp i32 %89 to double
  store double %90, ptr %11, align 8, !tbaa !11
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = sub nsw i32 16, %91
  %93 = sub nsw i32 %92, 1
  %94 = sitofp i32 %93 to double
  store double %94, ptr %12, align 8, !tbaa !11
  %95 = load double, ptr %12, align 8, !tbaa !11
  store double %95, ptr %13, align 8, !tbaa !11
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = icmp sge i32 %96, 8
  br i1 %97, label %98, label %100

98:                                               ; preds = %87
  %99 = load double, ptr %12, align 8, !tbaa !11
  store double %99, ptr %13, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %98, %87
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %101, i64 noundef 1)
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = load double, ptr %12, align 8, !tbaa !11
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %105, i64 noundef 2)
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = load double, ptr %13, align 8, !tbaa !11
  %109 = fmul double %107, %108
  %110 = call double @llvm.fmuladd.f64(double %103, double %104, double %109)
  store double %110, ptr %14, align 8, !tbaa !11
  %111 = load double, ptr %14, align 8, !tbaa !11
  %112 = load double, ptr %14, align 8, !tbaa !11
  %113 = fmul double %111, %112
  store double %113, ptr %14, align 8, !tbaa !11
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %114, i64 noundef %116, i64 noundef 0)
  store double -1.000000e+00, ptr %117, align 8, !tbaa !11
  %118 = load double, ptr %11, align 8, !tbaa !11
  %119 = load double, ptr %12, align 8, !tbaa !11
  %120 = fmul double %118, %119
  %121 = load double, ptr %14, align 8, !tbaa !11
  %122 = fdiv double %120, %121
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %123, i64 noundef %125, i64 noundef 1)
  store double %122, ptr %126, align 8, !tbaa !11
  %127 = load double, ptr %11, align 8, !tbaa !11
  %128 = load double, ptr %13, align 8, !tbaa !11
  %129 = fmul double %127, %128
  %130 = load double, ptr %14, align 8, !tbaa !11
  %131 = fdiv double %129, %130
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %132, i64 noundef %134, i64 noundef 2)
  store double %131, ptr %135, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %100
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %10, align 4, !tbaa !9
  br label %84, !llvm.loop !15

139:                                              ; preds = %84
  br label %140

140:                                              ; preds = %139, %82
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %141

141:                                              ; preds = %140, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %142 = load i32, ptr %5, align 4
  ret i32 %142
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef, i64 noundef) #4 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

@.str.28 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [127 x i8], align 1
@__PRETTY_FUNCTION__._Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi = external hidden unnamed_addr constant [62 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZZ10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEiE1y = external hidden local_unnamed_addr constant [15 x double], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = tail call noundef i64 @_ZNK5Eigen9EigenBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %6 = icmp eq i64 %5, 15
  br i1 %6, label %8, label %7

7:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.29, i32 noundef 32, ptr noundef nonnull @__PRETTY_FUNCTION__._Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi) #6
  unreachable

8:                                                ; preds = %4
  %9 = tail call noundef i64 @_ZNK5Eigen9EigenBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #5
  %10 = icmp eq i64 %9, 3
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.29, i32 noundef 33, ptr noundef nonnull @__PRETTY_FUNCTION__._Z10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEi) #6
  unreachable

12:                                               ; preds = %8
  switch i32 %3, label %.preheader [
    i32 0, label %.loopexit
    i32 2, label %.preheader48
  ]

.preheader:                                       ; preds = %12, %.preheader
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %.preheader ], [ 0, %12 ]
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %13 = trunc nuw nsw i64 %indvars.iv.next55 to i32
  %14 = uitofp nneg i32 %13 to double
  %15 = trunc i64 %indvars.iv54 to i32
  %16 = sub i32 15, %15
  %17 = uitofp nneg i32 %16 to double
  %18 = icmp ugt i64 %indvars.iv54, 7
  %.045 = select i1 %18, double %17, double %14
  %19 = getelementptr inbounds [15 x double], ptr @_ZZ10fcn_chkderRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEERS1_RNS0_IdLin1ELin1ELi0ELin1ELin1EEEiE1y, i64 0, i64 %indvars.iv54
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef 0)
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef 1)
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef 2)
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = fmul double %.045, %26
  %28 = tail call double @llvm.fmuladd.f64(double %24, double %17, double %27)
  %29 = fdiv double %14, %28
  %30 = fadd double %22, %29
  %31 = fsub double %20, %30
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %indvars.iv54)
  store double %31, ptr %32, align 8, !tbaa !5
  %exitcond57.not = icmp eq i64 %indvars.iv.next55, 15
  br i1 %exitcond57.not, label %.loopexit, label %.preheader, !llvm.loop !9

.preheader48:                                     ; preds = %12, %.preheader48
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader48 ], [ 0, %12 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = sub nuw nsw i64 15, %indvars.iv
  %34 = trunc nuw nsw i64 %33 to i32
  %35 = uitofp nneg i32 %34 to double
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef 1)
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef 2)
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = fmul double %39, %35
  %41 = tail call double @llvm.fmuladd.f64(double %37, double %35, double %40)
  %42 = fmul double %41, %41
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %2, i64 noundef %indvars.iv, i64 noundef 0)
  store double -1.000000e+00, ptr %43, align 8, !tbaa !5
  %44 = mul nuw nsw i64 %indvars.iv.next, %33
  %45 = trunc nuw i64 %44 to i32
  %46 = uitofp nneg i32 %45 to double
  %47 = fdiv double %46, %42
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %2, i64 noundef %indvars.iv, i64 noundef 1)
  store double %47, ptr %48, align 8, !tbaa !5
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %2, i64 noundef %indvars.iv, i64 noundef 2)
  store double %47, ptr %49, align 8, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv.next, 15
  br i1 %exitcond.not, label %.loopexit, label %.preheader48, !llvm.loop !11

.loopexit:                                        ; preds = %.preheader48, %.preheader, %12
  ret i32 0
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef, i64 noundef) local_unnamed_addr #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 = { 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 = { noreturn 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 #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 speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass