; LLVM IR from erwincoumans/tiny-differentiable-simulator :: third_party/rbdl/src (rbdl_mathutils)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.Eigen::CwiseNullaryOp" = type { %"class.Eigen::internal::variable_if_dynamic", [8 x i8], %"struct.Eigen::internal::scalar_constant_op" }
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"struct.Eigen::internal::scalar_constant_op" = type { double }
%"class.Eigen::Matrix.32" = type { %"class.Eigen::PlainObjectBase.33" }
%"class.Eigen::PlainObjectBase.33" = type { %"class.Eigen::DenseStorage.40" }
%"class.Eigen::DenseStorage.40" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [115 x i8], align 1
@__PRETTY_FUNCTION__._ZN17RigidBodyDynamics4Math22LinSolveGaussElimPivotEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_IdLin1ELi1ELi0ELin1ELi1EEERS4_ = external hidden unnamed_addr constant [85 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.9 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1

; 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 zeroext i1 @_ZN17RigidBodyDynamics4Math22LinSolveGaussElimPivotEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_IdLin1ELi1ELi0ELin1ELi1EEERS4_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.Eigen::CwiseNullaryOp", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.Eigen::Matrix.32", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNK5Eigen9EigenBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
  call void @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4ZeroEl(ptr dead_on_unwind writable sret(%"class.Eigen::CwiseNullaryOp") align 8 %7, i64 noundef %22)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEaSINS_14CwiseNullaryOpINS_8internal18scalar_constant_opIdEES1_EEEERS1_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  %25 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %26 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %27 = icmp eq i64 %25, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %3
  br label %31

29:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.8, i32 noundef 40, ptr noundef @__PRETTY_FUNCTION__._ZN17RigidBodyDynamics4Math22LinSolveGaussElimPivotEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_IdLin1ELi1ELi0ELin1ELi1EEERS4_) #10
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %32 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %35, i64 8)
  %37 = extractvalue { i64, i1 } %36, 1
  %38 = extractvalue { i64, i1 } %36, 0
  %39 = select i1 %37, i64 -1, i64 %38
  %40 = call noalias noundef nonnull ptr @_Znam(i64 noundef %39) #11
  store ptr %40, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %53, %31
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = icmp ult i32 %43, %44
  br i1 %45, label %46, label %56

46:                                               ; preds = %42
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i64, ptr %49, i64 %51
  store i64 %48, ptr %52, align 8, !tbaa !11
  br label %53

53:                                               ; preds = %46
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = add i32 %54, 1
  store i32 %55, ptr %12, align 4, !tbaa !9
  br label %42, !llvm.loop !13

56:                                               ; preds = %42
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %246, %56
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = icmp ult i32 %58, %59
  br i1 %60, label %61, label %250

61:                                               ; preds = %57
  %62 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %62, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds i64, ptr %65, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !11
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %64, i64 noundef %69)
          to label %71 unwind label %118

71:                                               ; preds = %61
  %72 = load double, ptr %70, align 8, !tbaa !15
  %73 = call double @llvm.fabs.f64(double %72)
  store double %73, ptr %15, align 8, !tbaa !15
  %74 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %74, ptr %14, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %127, %71
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %79, label %130

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i64, ptr %82, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !11
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %81, i64 noundef %86)
          to label %88 unwind label %122

88:                                               ; preds = %79
  %89 = load double, ptr %87, align 8, !tbaa !15
  %90 = call double @llvm.fabs.f64(double %89)
  store double %90, ptr %18, align 8, !tbaa !15
  %91 = load double, ptr %18, align 8, !tbaa !15
  %92 = load double, ptr %15, align 8, !tbaa !15
  %93 = fcmp ogt double %91, %92
  br i1 %93, label %94, label %126

94:                                               ; preds = %88
  %95 = load double, ptr %18, align 8, !tbaa !15
  store double %95, ptr %15, align 8, !tbaa !15
  %96 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %96, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds i64, ptr %97, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !11
  %102 = trunc i64 %101 to i32
  store i32 %102, ptr %19, align 4, !tbaa !9
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i64, ptr %103, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !11
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds i64, ptr %108, i64 %110
  store i64 %107, ptr %111, align 8, !tbaa !11
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds i64, ptr %114, i64 %116
  store i64 %113, ptr %117, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %126

118:                                              ; preds = %167, %165, %163, %161, %159, %157, %155, %153, %151, %137, %61
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %16, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %17, align 4
  br label %249

122:                                              ; preds = %79
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %16, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %249

126:                                              ; preds = %94, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = add i32 %128, 1
  store i32 %129, ptr %14, align 4, !tbaa !9
  br label %75, !llvm.loop !17

130:                                              ; preds = %75
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = add i32 %131, 1
  store i32 %132, ptr %12, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %242, %130
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = icmp ult i32 %134, %135
  br i1 %136, label %137, label %245

137:                                              ; preds = %133
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds i64, ptr %140, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !11
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %139, i64 noundef %144)
          to label %146 unwind label %118

146:                                              ; preds = %137
  %147 = load double, ptr %145, align 8, !tbaa !15
  %148 = call double @llvm.fabs.f64(double %147)
  %149 = call noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() #9
  %150 = fcmp ole double %148, %149
  br i1 %150, label %151, label %170

151:                                              ; preds = %146
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.9)
          to label %153 unwind label %118

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %155 unwind label %118

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
          to label %157 unwind label %118

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %159 unwind label %118

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull align 1 dereferenceable(1) %0)
          to label %161 unwind label %118

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %163 unwind label %118

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
          to label %165 unwind label %118

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull align 1 dereferenceable(1) %1)
          to label %167 unwind label %118

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %169 unwind label %118

169:                                              ; preds = %167
  br label %170

170:                                              ; preds = %169, %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load i32, ptr %13, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds i64, ptr %173, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !11
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %172, i64 noundef %177)
          to label %179 unwind label %237

179:                                              ; preds = %170
  %180 = load double, ptr %178, align 8, !tbaa !15
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds i64, ptr %183, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !11
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %182, i64 noundef %187)
          to label %189 unwind label %237

189:                                              ; preds = %179
  %190 = load double, ptr %188, align 8, !tbaa !15
  %191 = fdiv double %180, %190
  store double %191, ptr %20, align 8, !tbaa !15
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %193)
          to label %195 unwind label %237

195:                                              ; preds = %189
  %196 = load double, ptr %194, align 8, !tbaa !15
  %197 = load double, ptr %20, align 8, !tbaa !15
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %199)
          to label %201 unwind label %237

201:                                              ; preds = %195
  %202 = load double, ptr %200, align 8, !tbaa !15
  %203 = fneg double %196
  %204 = call double @llvm.fmuladd.f64(double %203, double %197, double %202)
  store double %204, ptr %200, align 8, !tbaa !15
  %205 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %205, ptr %14, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %234, %201
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  %209 = icmp ult i32 %207, %208
  br i1 %209, label %210, label %241

210:                                              ; preds = %206
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds i64, ptr %213, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !11
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %212, i64 noundef %217)
          to label %219 unwind label %237

219:                                              ; preds = %210
  %220 = load double, ptr %218, align 8, !tbaa !15
  %221 = load double, ptr %20, align 8, !tbaa !15
  %222 = load i32, ptr %12, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds i64, ptr %224, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !11
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %223, i64 noundef %228)
          to label %230 unwind label %237

230:                                              ; preds = %219
  %231 = load double, ptr %229, align 8, !tbaa !15
  %232 = fneg double %220
  %233 = call double @llvm.fmuladd.f64(double %232, double %221, double %231)
  store double %233, ptr %229, align 8, !tbaa !15
  br label %234

234:                                              ; preds = %230
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = add i32 %235, 1
  store i32 %236, ptr %14, align 4, !tbaa !9
  br label %206, !llvm.loop !18

237:                                              ; preds = %219, %210, %195, %189, %179, %170
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %16, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %249

241:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %12, align 4, !tbaa !9
  %244 = add i32 %243, 1
  store i32 %244, ptr %12, align 4, !tbaa !9
  br label %133, !llvm.loop !19

245:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %13, align 4, !tbaa !9
  %248 = add i32 %247, 1
  store i32 %248, ptr %13, align 4, !tbaa !9
  br label %57, !llvm.loop !20

249:                                              ; preds = %237, %122, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %347

250:                                              ; preds = %57
  %251 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %251, ptr %12, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %317, %250
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = add i32 %253, -1
  store i32 %254, ptr %12, align 4, !tbaa !9
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = add i32 %255, 1
  store i32 %256, ptr %13, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %283, %252
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %8, align 4, !tbaa !9
  %260 = icmp ult i32 %258, %259
  br i1 %260, label %261, label %290

261:                                              ; preds = %257
  %262 = load i32, ptr %12, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load i32, ptr %13, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds i64, ptr %264, i64 %266
  %268 = load i64, ptr %267, align 8, !tbaa !11
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %263, i64 noundef %268)
          to label %270 unwind label %286

270:                                              ; preds = %261
  %271 = load double, ptr %269, align 8, !tbaa !15
  %272 = load i32, ptr %13, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %11, i64 noundef %273)
          to label %275 unwind label %286

275:                                              ; preds = %270
  %276 = load double, ptr %274, align 8, !tbaa !15
  %277 = load i32, ptr %12, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %11, i64 noundef %278)
          to label %280 unwind label %286

280:                                              ; preds = %275
  %281 = load double, ptr %279, align 8, !tbaa !15
  %282 = call double @llvm.fmuladd.f64(double %271, double %276, double %281)
  store double %282, ptr %279, align 8, !tbaa !15
  br label %283

283:                                              ; preds = %280
  %284 = load i32, ptr %13, align 4, !tbaa !9
  %285 = add i32 %284, 1
  store i32 %285, ptr %13, align 4, !tbaa !9
  br label %257, !llvm.loop !21

286:                                              ; preds = %329, %325, %310, %299, %294, %290, %275, %270, %261
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %16, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %17, align 4
  br label %347

290:                                              ; preds = %257
  %291 = load i32, ptr %12, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %292)
          to label %294 unwind label %286

294:                                              ; preds = %290
  %295 = load double, ptr %293, align 8, !tbaa !15
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %11, i64 noundef %297)
          to label %299 unwind label %286

299:                                              ; preds = %294
  %300 = load double, ptr %298, align 8, !tbaa !15
  %301 = fsub double %295, %300
  %302 = load i32, ptr %12, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = load ptr, ptr %10, align 8, !tbaa !5
  %305 = load i32, ptr %12, align 4, !tbaa !9
  %306 = zext i32 %305 to i64
  %307 = getelementptr inbounds i64, ptr %304, i64 %306
  %308 = load i64, ptr %307, align 8, !tbaa !11
  %309 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %303, i64 noundef %308)
          to label %310 unwind label %286

310:                                              ; preds = %299
  %311 = load double, ptr %309, align 8, !tbaa !15
  %312 = fdiv double %301, %311
  %313 = load i32, ptr %12, align 4, !tbaa !9
  %314 = zext i32 %313 to i64
  %315 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %11, i64 noundef %314)
          to label %316 unwind label %286

316:                                              ; preds = %310
  store double %312, ptr %315, align 8, !tbaa !15
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %12, align 4, !tbaa !9
  %319 = icmp ugt i32 %318, 0
  br i1 %319, label %252, label %320, !llvm.loop !22

320:                                              ; preds = %317
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %321

321:                                              ; preds = %339, %320
  %322 = load i32, ptr %12, align 4, !tbaa !9
  %323 = load i32, ptr %8, align 4, !tbaa !9
  %324 = icmp ult i32 %322, %323
  br i1 %324, label %325, label %342

325:                                              ; preds = %321
  %326 = load i32, ptr %12, align 4, !tbaa !9
  %327 = zext i32 %326 to i64
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %11, i64 noundef %327)
          to label %329 unwind label %286

329:                                              ; preds = %325
  %330 = load double, ptr %328, align 8, !tbaa !15
  %331 = load ptr, ptr %6, align 8, !tbaa !5
  %332 = load ptr, ptr %10, align 8, !tbaa !5
  %333 = load i32, ptr %12, align 4, !tbaa !9
  %334 = zext i32 %333 to i64
  %335 = getelementptr inbounds i64, ptr %332, i64 %334
  %336 = load i64, ptr %335, align 8, !tbaa !11
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %331, i64 noundef %336)
          to label %338 unwind label %286

338:                                              ; preds = %329
  store double %330, ptr %337, align 8, !tbaa !15
  br label %339

339:                                              ; preds = %338
  %340 = load i32, ptr %12, align 4, !tbaa !9
  %341 = add i32 %340, 1
  store i32 %341, ptr %12, align 4, !tbaa !9
  br label %321, !llvm.loop !23

342:                                              ; preds = %321
  %343 = load ptr, ptr %10, align 8, !tbaa !5
  %344 = icmp eq ptr %343, null
  br i1 %344, label %346, label %345

345:                                              ; preds = %342
  call void @_ZdaPv(ptr noundef %343) #12
  br label %346

346:                                              ; preds = %345, %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  ret i1 true

347:                                              ; preds = %286, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %348

348:                                              ; preds = %347
  %349 = load ptr, ptr %16, align 8
  %350 = load i32, ptr %17, align 4
  %351 = insertvalue { ptr, i32 } poison, ptr %349, 0
  %352 = insertvalue { ptr, i32 } %351, i32 %350, 1
  resume { ptr, i32 } %352
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4ZeroEl(ptr dead_on_unwind noalias writable sret(%"class.Eigen::CwiseNullaryOp") align 8, i64 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 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) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #1

; 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) #2 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress 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 #7 = { nobuiltin 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.Eigen::CwiseNullaryOp" = type { %"class.Eigen::internal::variable_if_dynamic", [8 x i8], %"struct.Eigen::internal::scalar_constant_op" }
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"struct.Eigen::internal::scalar_constant_op" = type { double }
%"class.Eigen::Matrix.32" = type { %"class.Eigen::PlainObjectBase.33" }
%"class.Eigen::PlainObjectBase.33" = type { %"class.Eigen::DenseStorage.40" }
%"class.Eigen::DenseStorage.40" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [115 x i8], align 1
@__PRETTY_FUNCTION__._ZN17RigidBodyDynamics4Math22LinSolveGaussElimPivotEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_IdLin1ELi1ELi0ELin1ELi1EEERS4_ = external hidden unnamed_addr constant [85 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.9 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1

; 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 noundef zeroext i1 @_ZN17RigidBodyDynamics4Math22LinSolveGaussElimPivotEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_IdLin1ELi1ELi0ELin1ELi1EEERS4_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.Eigen::CwiseNullaryOp", align 8
  %5 = alloca %"class.Eigen::Matrix.32", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  %6 = tail call noundef i64 @_ZNK5Eigen9EigenBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4ZeroEl(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::CwiseNullaryOp") align 8 %4, i64 noundef %6)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEaSINS_14CwiseNullaryOpINS_8internal18scalar_constant_opIdEES1_EEEERS1_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  %8 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %9 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %10 = icmp eq i64 %8, %9
  br i1 %10, label %12, label %11

11:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, i32 noundef 40, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17RigidBodyDynamics4Math22LinSolveGaussElimPivotEN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_IdLin1ELi1ELi0ELin1ELi1EEERS4_) #10
  unreachable

12:                                               ; preds = %3
  %13 = call noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %14 = trunc i64 %13 to i32
  %15 = shl i64 %13, 3
  %16 = and i64 %15, 34359738360
  %17 = call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %.not141 = icmp eq i32 %14, 0
  br i1 %.not141, label %.preheader109.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %12
  %wide.trip.count = and i64 %13, 4294967295
  %min.iters.check = icmp ult i64 %wide.trip.count, 4
  br i1 %min.iters.check, label %.lr.ph.preheader178, label %vector.ph

.lr.ph.preheader178:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.mod.vf = and i64 %13, 3
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i64> [ <i64 0, i64 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i64> %vec.ind, <i64 2, i64 2>
  %18 = getelementptr inbounds i64, ptr %17, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <2 x i64> %vec.ind, ptr %18, align 8, !tbaa !5
  store <2 x i64> %step.add, ptr %19, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i64> %vec.ind, <i64 4, i64 4>
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %.preheader120, label %.lr.ph.preheader178

.preheader120:                                    ; preds = %.lr.ph, %middle.block
  br i1 %.not141, label %.preheader109.preheader, label %.lr.ph133.preheader

.preheader109.preheader:                          ; preds = %.loopexit114, %12, %.preheader120
  br label %.preheader109

.lr.ph133.preheader:                              ; preds = %.preheader120
  %21 = and i64 %13, 4294967295
  br label %.lr.ph133

.lr.ph:                                           ; preds = %.lr.ph.preheader178, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader178 ]
  %22 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv
  store i64 %indvars.iv, ptr %22, align 8, !tbaa !5
  %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 %.preheader120, label %.lr.ph, !llvm.loop !13

.loopexit114:                                     ; preds = %._crit_edge128, %._crit_edge
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next146, %21
  br i1 %exitcond165.not, label %.preheader109.preheader, label %.lr.ph133, !llvm.loop !14

.lr.ph133:                                        ; preds = %.lr.ph133.preheader, %.loopexit114
  %indvars.iv156 = phi i64 [ 1, %.lr.ph133.preheader ], [ %indvars.iv.next157, %.loopexit114 ]
  %indvars.iv145 = phi i64 [ 0, %.lr.ph133.preheader ], [ %indvars.iv.next146, %.loopexit114 ]
  %23 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv145
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv145, i64 noundef %24)
          to label %.lr.ph124.preheader unwind label %.loopexit.split-lp116

.lr.ph124.preheader:                              ; preds = %.lr.ph133
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = call double @llvm.fabs.f64(double %26)
  br label %.lr.ph124

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %40
  %indvars.iv147 = phi i64 [ %indvars.iv145, %.lr.ph124.preheader ], [ %indvars.iv.next148, %40 ]
  %.097123 = phi double [ %27, %.lr.ph124.preheader ], [ %.198, %40 ]
  %28 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv147
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv145, i64 noundef %29)
          to label %31 unwind label %38

31:                                               ; preds = %.lr.ph124
  %32 = load double, ptr %30, align 8, !tbaa !15
  %33 = call double @llvm.fabs.f64(double %32)
  %34 = fcmp ogt double %33, %.097123
  br i1 %34, label %35, label %40

35:                                               ; preds = %31
  %36 = load i64, ptr %23, align 8, !tbaa !5
  store i64 %29, ptr %23, align 8, !tbaa !5
  %37 = and i64 %36, 4294967295
  store i64 %37, ptr %28, align 8, !tbaa !5
  br label %40

.loopexit115:                                     ; preds = %42, %49, %51, %53, %55, %57, %59, %61, %63, %65
  %lpad.loopexit117 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp116:                            ; preds = %.lr.ph133
  %lpad.loopexit.split-lp118 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

38:                                               ; preds = %.lr.ph124
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

40:                                               ; preds = %35, %31
  %.198 = phi double [ %33, %35 ], [ %.097123, %31 ]
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next148 to i32
  %exitcond150.not = icmp eq i32 %lftr.wideiv, %14
  br i1 %exitcond150.not, label %._crit_edge, label %.lr.ph124, !llvm.loop !17

._crit_edge:                                      ; preds = %40
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %41 = icmp ult i64 %indvars.iv.next146, %21
  br i1 %41, label %.lr.ph131, label %.loopexit114

.lr.ph131:                                        ; preds = %._crit_edge
  %.pre = load i64, ptr %23, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %.lr.ph131, %._crit_edge128
  %indvars.iv158 = phi i64 [ %indvars.iv156, %.lr.ph131 ], [ %indvars.iv.next159, %._crit_edge128 ]
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv145, i64 noundef %.pre)
          to label %44 unwind label %.loopexit115

44:                                               ; preds = %42
  %45 = load double, ptr %43, align 8, !tbaa !15
  %46 = call double @llvm.fabs.f64(double %45)
  %47 = call noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() #9
  %48 = fcmp ugt double %46, %47
  br i1 %48, label %67, label %49

49:                                               ; preds = %44
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.9)
          to label %51 unwind label %.loopexit115

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %.loopexit115

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.10)
          to label %55 unwind label %.loopexit115

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %57 unwind label %.loopexit115

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 1 dereferenceable(1) %0)
          to label %59 unwind label %.loopexit115

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %61 unwind label %.loopexit115

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.11)
          to label %63 unwind label %.loopexit115

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 1 dereferenceable(1) %1)
          to label %65 unwind label %.loopexit115

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %67 unwind label %.loopexit115

67:                                               ; preds = %65, %44
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv158, i64 noundef %.pre)
          to label %69 unwind label %.loopexit.split-lp111

69:                                               ; preds = %67
  %70 = load double, ptr %68, align 8, !tbaa !15
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv145, i64 noundef %.pre)
          to label %72 unwind label %.loopexit.split-lp111

72:                                               ; preds = %69
  %73 = load double, ptr %71, align 8, !tbaa !15
  %74 = fdiv double %70, %73
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %indvars.iv145)
          to label %76 unwind label %.loopexit.split-lp111

76:                                               ; preds = %72
  %77 = load double, ptr %75, align 8, !tbaa !15
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %indvars.iv158)
          to label %.lr.ph127.preheader unwind label %.loopexit.split-lp111

.lr.ph127.preheader:                              ; preds = %76
  %79 = load double, ptr %78, align 8, !tbaa !15
  %80 = fneg double %77
  %81 = call double @llvm.fmuladd.f64(double %80, double %74, double %79)
  store double %81, ptr %78, align 8, !tbaa !15
  br label %.lr.ph127

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %88
  %indvars.iv151 = phi i64 [ %indvars.iv145, %.lr.ph127.preheader ], [ %indvars.iv.next152, %88 ]
  %82 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv151
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv145, i64 noundef %83)
          to label %85 unwind label %.loopexit110

85:                                               ; preds = %.lr.ph127
  %86 = load double, ptr %84, align 8, !tbaa !15
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %indvars.iv158, i64 noundef %83)
          to label %88 unwind label %.loopexit110

88:                                               ; preds = %85
  %89 = load double, ptr %87, align 8, !tbaa !15
  %90 = fneg double %86
  %91 = call double @llvm.fmuladd.f64(double %90, double %74, double %89)
  store double %91, ptr %87, align 8, !tbaa !15
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %lftr.wideiv154 = trunc i64 %indvars.iv.next152 to i32
  %exitcond155.not = icmp eq i32 %lftr.wideiv154, %14
  br i1 %exitcond155.not, label %._crit_edge128, label %.lr.ph127, !llvm.loop !18

.loopexit110:                                     ; preds = %.lr.ph127, %85
  %lpad.loopexit112 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp111:                            ; preds = %67, %69, %72, %76
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge128:                                   ; preds = %88
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %lftr.wideiv161 = trunc i64 %indvars.iv.next159 to i32
  %exitcond162.not = icmp eq i32 %lftr.wideiv161, %14
  br i1 %exitcond162.not, label %.loopexit114, label %42, !llvm.loop !19

.preheader109:                                    ; preds = %.preheader109.preheader, %121
  %.2 = phi i32 [ %92, %121 ], [ %14, %.preheader109.preheader ]
  %92 = add i32 %.2, -1
  %93 = icmp ult i32 %.2, %14
  br i1 %93, label %.lr.ph136, label %.._crit_edge137_crit_edge

.._crit_edge137_crit_edge:                        ; preds = %.preheader109
  %.pre176 = zext i32 %92 to i64
  br label %._crit_edge137

.lr.ph136:                                        ; preds = %.preheader109
  %94 = zext i32 %.2 to i64
  %95 = zext i32 %92 to i64
  br label %96

96:                                               ; preds = %.lr.ph136, %106
  %indvars.iv166 = phi i64 [ %94, %.lr.ph136 ], [ %indvars.iv.next167, %106 ]
  %97 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv166
  %98 = load i64, ptr %97, align 8, !tbaa !5
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %95, i64 noundef %98)
          to label %100 unwind label %.loopexit.split-lp.loopexit

100:                                              ; preds = %96
  %101 = load double, ptr %99, align 8, !tbaa !15
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %indvars.iv166)
          to label %103 unwind label %.loopexit.split-lp.loopexit

103:                                              ; preds = %100
  %104 = load double, ptr %102, align 8, !tbaa !15
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %95)
          to label %106 unwind label %.loopexit.split-lp.loopexit

106:                                              ; preds = %103
  %107 = load double, ptr %105, align 8, !tbaa !15
  %108 = call double @llvm.fmuladd.f64(double %101, double %104, double %107)
  store double %108, ptr %105, align 8, !tbaa !15
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %lftr.wideiv169 = trunc i64 %indvars.iv.next167 to i32
  %exitcond170.not = icmp eq i32 %lftr.wideiv169, %14
  br i1 %exitcond170.not, label %._crit_edge137, label %96, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph139, %125
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %103, %100, %96
  %lpad.loopexit106 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %118, %113, %110, %._crit_edge137
  %lpad.loopexit.split-lp107 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge137:                                   ; preds = %106, %.._crit_edge137_crit_edge
  %.pre-phi = phi i64 [ %.pre176, %.._crit_edge137_crit_edge ], [ %95, %106 ]
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %1, i64 noundef %.pre-phi)
          to label %110 unwind label %.loopexit.split-lp.loopexit.split-lp

110:                                              ; preds = %._crit_edge137
  %111 = load double, ptr %109, align 8, !tbaa !15
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %.pre-phi)
          to label %113 unwind label %.loopexit.split-lp.loopexit.split-lp

113:                                              ; preds = %110
  %114 = load double, ptr %112, align 8, !tbaa !15
  %115 = getelementptr inbounds i64, ptr %17, i64 %.pre-phi
  %116 = load i64, ptr %115, align 8, !tbaa !5
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %.pre-phi, i64 noundef %116)
          to label %118 unwind label %.loopexit.split-lp.loopexit.split-lp

118:                                              ; preds = %113
  %119 = load double, ptr %117, align 8, !tbaa !15
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %.pre-phi)
          to label %121 unwind label %.loopexit.split-lp.loopexit.split-lp

121:                                              ; preds = %118
  %122 = fsub double %111, %114
  %123 = fdiv double %122, %119
  store double %123, ptr %120, align 8, !tbaa !15
  %.not = icmp eq i32 %92, 0
  br i1 %.not, label %.preheader, label %.preheader109, !llvm.loop !21

.preheader:                                       ; preds = %121
  br i1 %.not141, label %._crit_edge140, label %.lr.ph139.preheader

.lr.ph139.preheader:                              ; preds = %.preheader
  %wide.trip.count174 = and i64 %13, 4294967295
  br label %.lr.ph139

.lr.ph139:                                        ; preds = %.lr.ph139.preheader, %130
  %indvars.iv171 = phi i64 [ 0, %.lr.ph139.preheader ], [ %indvars.iv.next172, %130 ]
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %5, i64 noundef %indvars.iv171)
          to label %125 unwind label %.loopexit

125:                                              ; preds = %.lr.ph139
  %126 = load double, ptr %124, align 8, !tbaa !15
  %127 = getelementptr inbounds i64, ptr %17, i64 %indvars.iv171
  %128 = load i64, ptr %127, align 8, !tbaa !5
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi1EEixEl(ptr noundef nonnull align 1 dereferenceable(1) %2, i64 noundef %128)
          to label %130 unwind label %.loopexit

130:                                              ; preds = %125
  store double %126, ptr %129, align 8, !tbaa !15
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %._crit_edge140, label %.lr.ph139, !llvm.loop !22

._crit_edge140:                                   ; preds = %130, %.preheader
  call void @_ZdaPv(ptr noundef nonnull %17) #12
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  ret i1 true

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %.loopexit110, %.loopexit.split-lp111, %.loopexit115, %.loopexit.split-lp116, %38
  %.pn.pn = phi { ptr, i32 } [ %39, %38 ], [ %lpad.loopexit117, %.loopexit115 ], [ %lpad.loopexit.split-lp118, %.loopexit.split-lp116 ], [ %lpad.loopexit112, %.loopexit110 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp111 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit106, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp107, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4ZeroEl(ptr dead_on_unwind noalias writable sret(%"class.Eigen::CwiseNullaryOp") align 8, i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEE4colsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 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 #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5EigenlsINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEERSoS3_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

; 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 #2 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8 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 = { 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 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nobuiltin 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass