; LLVM IR from jingweizhanghuai/Morn :: test/test_matrix3.ll (Z20test_linear_equationi)

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

%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64, i64 }
%"class.Eigen::Matrix.17" = type { %"class.Eigen::PlainObjectBase.18" }
%"class.Eigen::PlainObjectBase.18" = type { %"class.Eigen::DenseStorage.25" }
%"class.Eigen::DenseStorage.25" = type { ptr, i64 }
%"class.Eigen::Solve" = type { ptr, ptr }
%"class.Eigen::PartialPivLU" = type <{ %"class.Eigen::Matrix", %"class.Eigen::PermutationMatrix", %"class.Eigen::Transpositions", float, i8, i8, [2 x i8] }>
%"class.Eigen::PermutationMatrix" = type { %"class.Eigen::Matrix.32" }
%"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 }
%"class.Eigen::Transpositions" = type { %"class.Eigen::Matrix.32" }
%struct.MMatrix = type { i32, i32, ptr }

@.str.4 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@__FUNCTION__._Z20test_linear_equationi = external hidden unnamed_addr constant [21 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEC2IiiEERKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

declare ptr @MatrixCreate(i32 noundef, i32 noundef, ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

declare i32 @m_Rand(i32 noundef, i32 noundef) #0

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

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

declare void @_mTimerBegin(ptr noundef) #0

declare float @_mTimerEnd(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

declare void @mMatrixRelease(ptr noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20test_linear_equationi(i32 noundef %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.Eigen::Matrix", align 8
  %4 = alloca %"class.Eigen::Matrix.17", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.Eigen::Matrix.17", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.Eigen::Solve", align 8
  %15 = alloca %"class.Eigen::PartialPivLU", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %18)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
  call void @_ZN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEC2IiiEERKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #7
  invoke void @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %20 unwind label %32

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = add nsw i32 %21, 0
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  %25 = invoke ptr @MatrixCreate(i32 noundef %22, i32 noundef %24, ptr noundef null)
          to label %26 unwind label %36

26:                                               ; preds = %20
  store ptr %25, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %98, %26
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %40, label %31

31:                                               ; preds = %27
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %106

32:                                               ; preds = %1
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %5, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %6, align 4
  br label %182

36:                                               ; preds = %20
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  br label %181

40:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %70, %40
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %77

46:                                               ; preds = %41
  %47 = invoke i32 @m_Rand(i32 noundef -1000, i32 noundef 1000)
          to label %48 unwind label %73

48:                                               ; preds = %46
  %49 = sitofp i32 %47 to double
  %50 = fdiv double %49, 1.000000e+03
  %51 = fptrunc double %50 to float
  store float %51, ptr %8, align 4, !tbaa !11
  %52 = load float, ptr %8, align 4, !tbaa !11
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef %54, i64 noundef %56)
          to label %58 unwind label %73

58:                                               ; preds = %48
  store float %52, ptr %57, align 4, !tbaa !11
  %59 = load float, ptr %8, align 4, !tbaa !11
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.MMatrix, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %66, i64 %68
  store float %59, ptr %69, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %58
  %71 = load i32, ptr %11, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %11, align 4, !tbaa !5
  br label %41, !llvm.loop !15

73:                                               ; preds = %48, %46
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %5, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %105

77:                                               ; preds = %45
  %78 = invoke i32 @m_Rand(i32 noundef -1000, i32 noundef 1000)
          to label %79 unwind label %101

79:                                               ; preds = %77
  %80 = sitofp i32 %78 to float
  store float %80, ptr %8, align 4, !tbaa !11
  %81 = load float, ptr %8, align 4, !tbaa !11
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEELi1EEclEl(ptr noundef nonnull align 1 dereferenceable(1) %4, i64 noundef %83)
          to label %85 unwind label %101

85:                                               ; preds = %79
  store float %81, ptr %84, align 4, !tbaa !11
  %86 = load float, ptr %8, align 4, !tbaa !11
  %87 = fsub float 0.000000e+00, %86
  %88 = load ptr, ptr %7, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.MMatrix, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  store float %87, ptr %97, align 4, !tbaa !11
  br label %98

98:                                               ; preds = %85
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !5
  br label %27, !llvm.loop !17

101:                                              ; preds = %79, %77
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %5, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %6, align 4
  br label %105

105:                                              ; preds = %101, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %180

106:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  invoke void @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %107 unwind label %113

107:                                              ; preds = %106
  invoke void @_mTimerBegin(ptr noundef @.str.10)
          to label %108 unwind label %117

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %131, %108
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 10000
  br i1 %111, label %121, label %112

112:                                              ; preds = %109
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %143

113:                                              ; preds = %106
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  br label %179

117:                                              ; preds = %143, %107
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %5, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %6, align 4
  br label %178

121:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #7
  invoke void @_ZNK5Eigen10MatrixBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEE2luEv(ptr dead_on_unwind writable sret(%"class.Eigen::PartialPivLU") align 8 %15, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %122 unwind label %134

122:                                              ; preds = %121
  %123 = invoke { ptr, ptr } @_ZNK5Eigen10SolverBaseINS_12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEEEE5solveINS2_IfLin1ELi1ELi0ELin1ELi1EEEEEKNS_5SolveIS4_T_EERKNS_10MatrixBaseIS9_EE(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %124 unwind label %138

124:                                              ; preds = %122
  %125 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %126 = extractvalue { ptr, ptr } %123, 0
  store ptr %126, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %128 = extractvalue { ptr, ptr } %123, 1
  store ptr %128, ptr %127, align 8
  %129 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEaSINS_5SolveINS_12PartialPivLUINS0_IfLin1ELin1ELi0ELin1ELin1EEEEES1_EEEERS1_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %130 unwind label %138

130:                                              ; preds = %124
  call void @_ZN5Eigen12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(62) %15) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %13, align 4, !tbaa !5
  br label %109, !llvm.loop !18

134:                                              ; preds = %121
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %5, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %6, align 4
  br label %142

138:                                              ; preds = %124, %122
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %5, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %6, align 4
  call void @_ZN5Eigen12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(62) %15) #7
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %178

143:                                              ; preds = %112
  %144 = invoke float @_mTimerEnd(ptr noundef @.str.10, ptr noundef @.str.4, i32 noundef 168, ptr noundef @__FUNCTION__._Z20test_linear_equationi)
          to label %145 unwind label %117

145:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = mul i64 %147, 4
  %149 = call noalias ptr @malloc(i64 noundef %148) #8
  store ptr %149, ptr %16, align 8, !tbaa !9
  invoke void @_mTimerBegin(ptr noundef @.str.5)
          to label %150 unwind label %155

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %164, %150
  %152 = load i32, ptr %17, align 4, !tbaa !5
  %153 = icmp slt i32 %152, 10000
  br i1 %153, label %159, label %154

154:                                              ; preds = %151
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %171

155:                                              ; preds = %173, %171, %145
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %5, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %6, align 4
  br label %177

159:                                              ; preds = %151
  %160 = load ptr, ptr %7, align 8, !tbaa !9
  %161 = load ptr, ptr %16, align 8, !tbaa !9
  %162 = invoke i32 @mLinearEquation(ptr noundef %160, ptr noundef %161)
          to label %163 unwind label %167

163:                                              ; preds = %159
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %17, align 4, !tbaa !5
  br label %151, !llvm.loop !19

167:                                              ; preds = %159
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %5, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %177

171:                                              ; preds = %154
  %172 = invoke float @_mTimerEnd(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 175, ptr noundef @__FUNCTION__._Z20test_linear_equationi)
          to label %173 unwind label %155

173:                                              ; preds = %171
  %174 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %174) #7
  %175 = load ptr, ptr %7, align 8, !tbaa !9
  invoke void @mMatrixRelease(ptr noundef %175)
          to label %176 unwind label %155

176:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  ret void

177:                                              ; preds = %167, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %178

178:                                              ; preds = %177, %142, %117
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %179

179:                                              ; preds = %178, %113
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %180

180:                                              ; preds = %179, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %181

181:                                              ; preds = %180, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %182

182:                                              ; preds = %181, %32
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %5, align 8
  %185 = load i32, ptr %6, align 4
  %186 = insertvalue { ptr, i32 } poison, ptr %184, 0
  %187 = insertvalue { ptr, i32 } %186, i32 %185, 1
  resume { ptr, i32 } %187
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5Eigen10SolverBaseINS_12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEEEE5solveINS2_IfLin1ELi1ELi0ELin1ELi1EEEEEKNS_5SolveIS4_T_EERKNS_10MatrixBaseIS9_EE(ptr noundef nonnull align 1 dereferenceable(1), 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 @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEaSINS_5SolveINS_12PartialPivLUINS0_IfLin1ELin1ELi0ELin1ELin1EEEEES1_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 nounwind uwtable
declare dso_local void @_ZN5Eigen12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(62)) unnamed_addr #3 align 2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare i32 @mLinearEquation(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = { nounwind 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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS7MMatrix", !6, i64 0, !6, i64 4, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64, i64 }
%"class.Eigen::Matrix.17" = type { %"class.Eigen::PlainObjectBase.18" }
%"class.Eigen::PlainObjectBase.18" = type { %"class.Eigen::DenseStorage.25" }
%"class.Eigen::DenseStorage.25" = type { ptr, i64 }
%"class.Eigen::Solve" = type { ptr, ptr }
%"class.Eigen::PartialPivLU" = type <{ %"class.Eigen::Matrix", %"class.Eigen::PermutationMatrix", %"class.Eigen::Transpositions", float, i8, i8, [2 x i8] }>
%"class.Eigen::PermutationMatrix" = type { %"class.Eigen::Matrix.32" }
%"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 }
%"class.Eigen::Transpositions" = type { %"class.Eigen::Matrix.32" }

@.str.4 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@__FUNCTION__._Z20test_linear_equationi = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEC2IiiEERKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

declare ptr @MatrixCreate(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare i32 @m_Rand(i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

declare void @_mTimerBegin(ptr noundef) local_unnamed_addr #3

declare float @_mTimerEnd(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @mMatrixRelease(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20test_linear_equationi(i32 noundef %0) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.Eigen::Matrix", align 8
  %4 = alloca %"class.Eigen::Matrix.17", align 8
  %5 = alloca %"class.Eigen::Matrix.17", align 8
  %6 = alloca %"class.Eigen::Solve", align 8
  %7 = alloca %"class.Eigen::PartialPivLU", align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZN5Eigen6MatrixIfLin1ELin1ELi0ELin1ELin1EEC2IiiEERKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  invoke void @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %9 unwind label %18

9:                                                ; preds = %1
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  %12 = invoke ptr @MatrixCreate(i32 noundef %10, i32 noundef %11, ptr noundef null)
          to label %.preheader49 unwind label %20

.preheader49:                                     ; preds = %9
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.preheader48.lr.ph, label %._crit_edge52

.preheader48.lr.ph:                               ; preds = %.preheader49
  %15 = getelementptr inbounds i8, ptr %12, i64 8
  br label %.preheader48

.preheader48:                                     ; preds = %.preheader48.lr.ph, %41
  %16 = phi i32 [ %13, %.preheader48.lr.ph ], [ %47, %41 ]
  %indvars.iv56 = phi i64 [ 0, %.preheader48.lr.ph ], [ %indvars.iv.next57, %41 ]
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge52:                                    ; preds = %41, %.preheader49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  invoke void @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %53 unwind label %57

18:                                               ; preds = %1
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %94

20:                                               ; preds = %9
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %93

._crit_edge:                                      ; preds = %26, %.preheader48
  %22 = invoke i32 @m_Rand(i32 noundef -1000, i32 noundef 1000)
          to label %39 unwind label %51

.lr.ph:                                           ; preds = %.preheader48, %26
  %indvars.iv = phi i64 [ %indvars.iv.next, %26 ], [ 0, %.preheader48 ]
  %23 = invoke i32 @m_Rand(i32 noundef -1000, i32 noundef 1000)
          to label %24 unwind label %37

24:                                               ; preds = %.lr.ph
  %25 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEELi1EEclEll(ptr noundef nonnull align 1 dereferenceable(1) %3, i64 noundef %indvars.iv56, i64 noundef %indvars.iv)
          to label %26 unwind label %37

26:                                               ; preds = %24
  %27 = sitofp i32 %23 to double
  %28 = fdiv double %27, 1.000000e+03
  %29 = fptrunc double %28 to float
  store float %29, ptr %25, align 4, !tbaa !9
  %30 = load ptr, ptr %15, align 8, !tbaa !11
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv56
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds float, ptr %32, i64 %indvars.iv
  store float %29, ptr %33, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next, %35
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !15

37:                                               ; preds = %24, %.lr.ph
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %93

39:                                               ; preds = %._crit_edge
  %40 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEELi1EEclEl(ptr noundef nonnull align 1 dereferenceable(1) %4, i64 noundef %indvars.iv56)
          to label %41 unwind label %51

41:                                               ; preds = %39
  %42 = sitofp i32 %22 to float
  store float %42, ptr %40, align 4, !tbaa !9
  %43 = fsub float 0.000000e+00, %42
  %44 = load ptr, ptr %15, align 8, !tbaa !11
  %45 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv56
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %46, i64 %48
  store float %43, ptr %49, align 4, !tbaa !9
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %50 = icmp slt i64 %indvars.iv.next57, %48
  br i1 %50, label %.preheader48, label %._crit_edge52, !llvm.loop !17

51:                                               ; preds = %39, %._crit_edge
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %93

53:                                               ; preds = %._crit_edge52
  invoke void @_mTimerBegin(ptr noundef nonnull @.str.10)
          to label %.preheader47 unwind label %59

.preheader47:                                     ; preds = %53
  %54 = getelementptr inbounds i8, ptr %6, i64 8
  br label %61

55:                                               ; preds = %68
  %56 = invoke float @_mTimerEnd(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.4, i32 noundef 168, ptr noundef nonnull @__FUNCTION__._Z20test_linear_equationi)
          to label %75 unwind label %59

57:                                               ; preds = %._crit_edge52
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %92

59:                                               ; preds = %55, %53
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %91

61:                                               ; preds = %.preheader47, %68
  %.02653 = phi i32 [ 0, %.preheader47 ], [ %69, %68 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #8
  invoke void @_ZNK5Eigen10MatrixBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEE2luEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::PartialPivLU") align 8 %7, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %62 unwind label %70

62:                                               ; preds = %61
  %63 = invoke { ptr, ptr } @_ZNK5Eigen10SolverBaseINS_12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEEEE5solveINS2_IfLin1ELi1ELi0ELin1ELi1EEEEEKNS_5SolveIS4_T_EERKNS_10MatrixBaseIS9_EE(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %64 unwind label %72

64:                                               ; preds = %62
  %65 = extractvalue { ptr, ptr } %63, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, ptr } %63, 1
  store ptr %66, ptr %54, align 8
  %67 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEaSINS_5SolveINS_12PartialPivLUINS0_IfLin1ELin1ELi0ELin1ELin1EEEEES1_EEEERS1_RKNS_9DenseBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %68 unwind label %72

68:                                               ; preds = %64
  call void @_ZN5Eigen12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(62) %7) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %69 = add nuw nsw i32 %.02653, 1
  %exitcond.not = icmp eq i32 %69, 10000
  br i1 %exitcond.not, label %55, label %61, !llvm.loop !18

70:                                               ; preds = %61
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %64, %62
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Eigen12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(62) %7) #8
  br label %74

74:                                               ; preds = %72, %70
  %.pn38 = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  br label %91

75:                                               ; preds = %55
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = shl nsw i64 %77, 2
  %79 = call noalias ptr @malloc(i64 noundef %78) #9
  invoke void @_mTimerBegin(ptr noundef nonnull @.str.5)
          to label %.preheader unwind label %82

80:                                               ; preds = %85
  %81 = invoke float @_mTimerEnd(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 175, ptr noundef nonnull @__FUNCTION__._Z20test_linear_equationi)
          to label %89 unwind label %82

82:                                               ; preds = %89, %80, %75
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %91

.preheader:                                       ; preds = %75, %85
  %.054 = phi i32 [ %86, %85 ], [ 0, %75 ]
  %84 = invoke i32 @mLinearEquation(ptr noundef %12, ptr noundef %79)
          to label %85 unwind label %87

85:                                               ; preds = %.preheader
  %86 = add nuw nsw i32 %.054, 1
  %exitcond59.not = icmp eq i32 %86, 10000
  br i1 %exitcond59.not, label %80, label %.preheader, !llvm.loop !19

87:                                               ; preds = %.preheader
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %80
  call void @free(ptr noundef %79) #8
  invoke void @mMatrixRelease(ptr noundef %12)
          to label %90 unwind label %82

90:                                               ; preds = %89
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

91:                                               ; preds = %82, %87, %74, %59
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %74 ], [ %60, %59 ], [ %88, %87 ], [ %83, %82 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  br label %92

92:                                               ; preds = %91, %57
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %91 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %93

93:                                               ; preds = %92, %51, %37, %20
  %.pn42.pn.pn = phi { ptr, i32 } [ %21, %20 ], [ %.pn38.pn.pn, %92 ], [ %38, %37 ], [ %52, %51 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %94

94:                                               ; preds = %93, %18
  %.pn42.pn.pn.pn = phi { ptr, i32 } [ %.pn42.pn.pn, %93 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn42.pn.pn.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5Eigen10SolverBaseINS_12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEEEE5solveINS2_IfLin1ELi1ELi0ELin1ELi1EEEEEKNS_5SolveIS4_T_EERKNS_10MatrixBaseIS9_EE(ptr noundef nonnull align 1 dereferenceable(1), 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 @_ZN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEaSINS_5SolveINS_12PartialPivLUINS0_IfLin1ELin1ELi0ELin1ELin1EEEEES1_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 nounwind uwtable
declare dso_local void @_ZN5Eigen12PartialPivLUINS_6MatrixIfLin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(62)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

declare i32 @mLinearEquation(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIfLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

attributes #0 = { nofree 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 #5 = { 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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS7MMatrix", !6, i64 0, !6, i64 4, !13, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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