; LLVM IR from sp-nitech/SPTK :: src/math/symmetric_matrix.ll (ZNK4sptk15SymmetricMatrix6InvertEPS0_)

; 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.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix6InvertEPS0_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.sptk::SymmetricMatrix", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = icmp eq ptr null, %23
  br i1 %24, label %28, label %25

25:                                               ; preds = %2
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp eq ptr %22, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %25, %2
  store i1 false, ptr %3, align 1
  br label %286

29:                                               ; preds = %25
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = icmp ne i32 %32, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %29
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !9
  call void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64) %37, i32 noundef %39)
  br label %40

40:                                               ; preds = %36, %29
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #4
  %41 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !9
  call void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef %42)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %43 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = sext i32 %44 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %46 unwind label %50

46:                                               ; preds = %40
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  %47 = invoke noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64) %22, ptr noundef %6, ptr noundef %7)
          to label %48 unwind label %54

48:                                               ; preds = %46
  br i1 %47, label %58, label %49

49:                                               ; preds = %48
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %283

50:                                               ; preds = %40
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %285

54:                                               ; preds = %46
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  br label %284

58:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %59 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !9
  %61 = sub nsw i32 %60, 1
  store i32 %61, ptr %12, align 4, !tbaa !20
  br label %62

62:                                               ; preds = %182, %58
  %63 = load i32, ptr %12, align 4, !tbaa !20
  %64 = icmp sle i32 0, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %185

66:                                               ; preds = %62
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %67, i32 0, i32 3
  %69 = load i32, ptr %12, align 4, !tbaa !20
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #4
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !20
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  store double 1.000000e+00, ptr %75, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %76 = load i32, ptr %12, align 4, !tbaa !20
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %13, align 4, !tbaa !20
  br label %78

78:                                               ; preds = %178, %66
  %79 = load i32, ptr %13, align 4, !tbaa !20
  %80 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %82 = icmp slt i32 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %181

84:                                               ; preds = %78
  %85 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %6, i32 0, i32 3
  %86 = load i32, ptr %13, align 4, !tbaa !20
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %87) #4
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !20
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !21
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %94, i32 0, i32 3
  %96 = load i32, ptr %12, align 4, !tbaa !20
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #4
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load i32, ptr %12, align 4, !tbaa !20
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !21
  %104 = fmul double %93, %103
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %105, i32 0, i32 3
  %107 = load i32, ptr %13, align 4, !tbaa !20
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108) #4
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i32, ptr %12, align 4, !tbaa !20
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  store double %104, ptr %113, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %114 = load i32, ptr %12, align 4, !tbaa !20
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %14, align 4, !tbaa !20
  br label %116

116:                                              ; preds = %152, %84
  %117 = load i32, ptr %14, align 4, !tbaa !20
  %118 = load i32, ptr %13, align 4, !tbaa !20
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %155

121:                                              ; preds = %116
  %122 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %6, i32 0, i32 3
  %123 = load i32, ptr %13, align 4, !tbaa !20
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #4
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i32, ptr %14, align 4, !tbaa !20
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !21
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %131, i32 0, i32 3
  %133 = load i32, ptr %14, align 4, !tbaa !20
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #4
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  %137 = load i32, ptr %12, align 4, !tbaa !20
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %136, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !21
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %141, i32 0, i32 3
  %143 = load i32, ptr %13, align 4, !tbaa !20
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %144) #4
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i32, ptr %12, align 4, !tbaa !20
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !21
  %151 = call double @llvm.fmuladd.f64(double %130, double %140, double %150)
  store double %151, ptr %149, align 8, !tbaa !21
  br label %152

152:                                              ; preds = %121
  %153 = load i32, ptr %14, align 4, !tbaa !20
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %14, align 4, !tbaa !20
  br label %116, !llvm.loop !23

155:                                              ; preds = %120
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %156, i32 0, i32 3
  %158 = load i32, ptr %13, align 4, !tbaa !20
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %159) #4
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = load i32, ptr %13, align 4, !tbaa !20
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !21
  %166 = fneg double %165
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %167, i32 0, i32 3
  %169 = load i32, ptr %13, align 4, !tbaa !20
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170) #4
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !20
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !21
  %177 = fmul double %176, %166
  store double %177, ptr %175, align 8, !tbaa !21
  br label %178

178:                                              ; preds = %155
  %179 = load i32, ptr %13, align 4, !tbaa !20
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %13, align 4, !tbaa !20
  br label %78, !llvm.loop !25

181:                                              ; preds = %83
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %12, align 4, !tbaa !20
  %184 = add nsw i32 %183, -1
  store i32 %184, ptr %12, align 4, !tbaa !20
  br label %62, !llvm.loop !26

185:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %186 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %187 = load i32, ptr %186, align 8, !tbaa !9
  %188 = sext i32 %187 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %188, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %189 unwind label %196

189:                                              ; preds = %185
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !20
  br label %190

190:                                              ; preds = %209, %189
  %191 = load i32, ptr %17, align 4, !tbaa !20
  %192 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %193 = load i32, ptr %192, align 8, !tbaa !9
  %194 = icmp slt i32 %191, %193
  br i1 %194, label %200, label %195

195:                                              ; preds = %190
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %212

196:                                              ; preds = %185
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %9, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  br label %284

200:                                              ; preds = %190
  %201 = load i32, ptr %17, align 4, !tbaa !20
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %202) #4
  %204 = load double, ptr %203, align 8, !tbaa !21
  %205 = fdiv double 1.000000e+00, %204
  %206 = load i32, ptr %17, align 4, !tbaa !20
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %207) #4
  store double %205, ptr %208, align 8, !tbaa !21
  br label %209

209:                                              ; preds = %200
  %210 = load i32, ptr %17, align 4, !tbaa !20
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %17, align 4, !tbaa !20
  br label %190, !llvm.loop !27

212:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !20
  br label %213

213:                                              ; preds = %279, %212
  %214 = load i32, ptr %18, align 4, !tbaa !20
  %215 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %216 = load i32, ptr %215, align 8, !tbaa !9
  %217 = icmp slt i32 %214, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %213
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %282

219:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !20
  br label %220

220:                                              ; preds = %275, %219
  %221 = load i32, ptr %19, align 4, !tbaa !20
  %222 = load i32, ptr %18, align 4, !tbaa !20
  %223 = icmp sle i32 %221, %222
  br i1 %223, label %225, label %224

224:                                              ; preds = %220
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %278

225:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %226 = load i32, ptr %18, align 4, !tbaa !20
  store i32 %226, ptr %21, align 4, !tbaa !20
  br label %227

227:                                              ; preds = %261, %225
  %228 = load i32, ptr %21, align 4, !tbaa !20
  %229 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %22, i32 0, i32 1
  %230 = load i32, ptr %229, align 8, !tbaa !9
  %231 = icmp slt i32 %228, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %227
  store i32 20, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %264

233:                                              ; preds = %227
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %234, i32 0, i32 3
  %236 = load i32, ptr %21, align 4, !tbaa !20
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %237) #4
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = load i32, ptr %18, align 4, !tbaa !20
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds double, ptr %239, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !21
  %244 = load i32, ptr %21, align 4, !tbaa !20
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %245) #4
  %247 = load double, ptr %246, align 8, !tbaa !21
  %248 = fmul double %243, %247
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %249, i32 0, i32 3
  %251 = load i32, ptr %21, align 4, !tbaa !20
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef %252) #4
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  %255 = load i32, ptr %19, align 4, !tbaa !20
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !21
  %259 = load double, ptr %20, align 8, !tbaa !21
  %260 = call double @llvm.fmuladd.f64(double %248, double %258, double %259)
  store double %260, ptr %20, align 8, !tbaa !21
  br label %261

261:                                              ; preds = %233
  %262 = load i32, ptr %21, align 4, !tbaa !20
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %21, align 4, !tbaa !20
  br label %227, !llvm.loop !28

264:                                              ; preds = %232
  %265 = load double, ptr %20, align 8, !tbaa !21
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %"class.sptk::SymmetricMatrix", ptr %266, i32 0, i32 3
  %268 = load i32, ptr %18, align 4, !tbaa !20
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %267, i64 noundef %269) #4
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = load i32, ptr %19, align 4, !tbaa !20
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds double, ptr %271, i64 %273
  store double %265, ptr %274, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %275

275:                                              ; preds = %264
  %276 = load i32, ptr %19, align 4, !tbaa !20
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %19, align 4, !tbaa !20
  br label %220, !llvm.loop !29

278:                                              ; preds = %224
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %18, align 4, !tbaa !20
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %18, align 4, !tbaa !20
  br label %213, !llvm.loop !30

282:                                              ; preds = %218
  store i1 true, ptr %3, align 1
  store i32 1, ptr %11, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  br label %283

283:                                              ; preds = %282, %49
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #4
  br label %286

284:                                              ; preds = %196, %54
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %285

285:                                              ; preds = %284, %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #4
  br label %288

286:                                              ; preds = %283, %28
  %287 = load i1, ptr %3, align 1
  ret i1 %287

288:                                              ; preds = %285
  %289 = load ptr, ptr %9, align 8
  %290 = load i32, ptr %10, align 4
  %291 = insertvalue { ptr, i32 } poison, ptr %289, 0
  %292 = insertvalue { ptr, i32 } %291, i32 %290, 1
  resume { ptr, i32 } %292
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 align 2

declare void @_ZN4sptk15SymmetricMatrixC1Ei(ptr, i32)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !11, i64 8}
!10 = !{!"_ZTSN4sptk15SymmetricMatrixE", !11, i64 8, !12, i64 16, !16, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}
!30 = distinct !{!30, !24}


; 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.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr 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) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix6InvertEPS0_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sptk::SymmetricMatrix", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = icmp eq ptr %1, null
  %9 = icmp eq ptr %0, %1
  %or.cond = or i1 %8, %9
  br i1 %or.cond, label %129, label %10

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %.not = icmp eq i32 %12, %14
  br i1 %.not, label %16, label %15

15:                                               ; preds = %10
  tail call void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64) %1, i32 noundef %14)
  %.pre = load i32, ptr %13, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %15, %10
  %17 = phi i32 [ %.pre, %15 ], [ %12, %10 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  call void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef %17)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %18 = load i32, ptr %13, align 8, !tbaa !5
  %19 = sext i32 %18 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %20 unwind label %23

20:                                               ; preds = %16
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  %21 = invoke noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %22 unwind label %25

22:                                               ; preds = %20
  br i1 %21, label %27, label %126

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %128

25:                                               ; preds = %20
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %127

27:                                               ; preds = %22
  %28 = load i32, ptr %13, align 8, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %27
  %30 = getelementptr inbounds i8, ptr %1, i64 40
  %31 = getelementptr inbounds i8, ptr %3, i64 40
  %32 = zext nneg i32 %28 to i64
  br label %37

.loopexit:                                        ; preds = %._crit_edge, %37
  %33 = phi i32 [ %41, %37 ], [ %69, %._crit_edge ]
  %34 = icmp sgt i64 %indvars.iv, 1
  br i1 %34, label %37, label %._crit_edge95, !llvm.loop !19

._crit_edge95:                                    ; preds = %.loopexit, %27
  %35 = phi i32 [ %28, %27 ], [ %33, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %36 = sext i32 %35 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %87 unwind label %92

37:                                               ; preds = %.lr.ph94, %.loopexit
  %indvars.iv = phi i64 [ %32, %.lr.ph94 ], [ %indvars.iv.next, %.loopexit ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next) #4
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = getelementptr inbounds double, ptr %39, i64 %indvars.iv.next
  store double 1.000000e+00, ptr %40, align 8, !tbaa !22
  %41 = load i32, ptr %13, align 8, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv, %42
  br i1 %43, label %.lr.ph89, label %.loopexit

.lr.ph89:                                         ; preds = %37, %._crit_edge
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %._crit_edge ], [ %indvars.iv, %37 ]
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv109) #4
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next
  %47 = load double, ptr %46, align 8, !tbaa !22
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next) #4
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.next
  %51 = load double, ptr %50, align 8, !tbaa !22
  %52 = fmul double %47, %51
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv109) #4
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next
  store double %52, ptr %55, align 8, !tbaa !22
  %56 = trunc nuw i64 %indvars.iv109 to i32
  %sext = shl i64 %indvars.iv109, 32
  %57 = ashr exact i64 %sext, 32
  %58 = icmp slt i64 %indvars.iv, %57
  br i1 %58, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph89
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv109) #4
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = getelementptr inbounds double, ptr %60, i64 %indvars.iv109
  %62 = load double, ptr %61, align 8, !tbaa !22
  %63 = fneg double %62
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv109) #4
  %65 = load ptr, ptr %64, align 8, !tbaa !21
  %66 = getelementptr inbounds double, ptr %65, i64 %indvars.iv.next
  %67 = load double, ptr %66, align 8, !tbaa !22
  %68 = fmul double %67, %63
  store double %68, ptr %66, align 8, !tbaa !22
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %69 = load i32, ptr %13, align 8, !tbaa !5
  %70 = trunc nuw i64 %indvars.iv.next110 to i32
  %71 = icmp sgt i32 %69, %70
  br i1 %71, label %.lr.ph89, label %.loopexit, !llvm.loop !24

.lr.ph:                                           ; preds = %.lr.ph89, %.lr.ph
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph ], [ %indvars.iv, %.lr.ph89 ]
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv109) #4
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds double, ptr %73, i64 %indvars.iv106
  %75 = load double, ptr %74, align 8, !tbaa !22
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv106) #4
  %77 = load ptr, ptr %76, align 8, !tbaa !21
  %78 = getelementptr inbounds double, ptr %77, i64 %indvars.iv.next
  %79 = load double, ptr %78, align 8, !tbaa !22
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv109) #4
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = getelementptr inbounds double, ptr %81, i64 %indvars.iv.next
  %83 = load double, ptr %82, align 8, !tbaa !22
  %84 = call double @llvm.fmuladd.f64(double %75, double %79, double %83)
  store double %84, ptr %82, align 8, !tbaa !22
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %85 = trunc nuw i64 %indvars.iv.next107 to i32
  %86 = icmp slt i32 %85, %56
  br i1 %86, label %.lr.ph, label %._crit_edge, !llvm.loop !25

87:                                               ; preds = %._crit_edge95
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  %88 = load i32, ptr %13, align 8, !tbaa !5
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph98, label %._crit_edge105

.preheader85:                                     ; preds = %.lr.ph98
  %90 = icmp sgt i32 %98, 0
  br i1 %90, label %.preheader84.lr.ph, label %._crit_edge105

.preheader84.lr.ph:                               ; preds = %.preheader85
  %91 = getelementptr inbounds i8, ptr %1, i64 40
  br label %.preheader84

92:                                               ; preds = %._crit_edge95
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %127

.lr.ph98:                                         ; preds = %87, %.lr.ph98
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %.lr.ph98 ], [ 0, %87 ]
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv113) #4
  %95 = load double, ptr %94, align 8, !tbaa !22
  %96 = fdiv double 1.000000e+00, %95
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv113) #4
  store double %96, ptr %97, align 8, !tbaa !22
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %98 = load i32, ptr %13, align 8, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = icmp slt i64 %indvars.iv.next114, %99
  br i1 %100, label %.lr.ph98, label %.preheader85, !llvm.loop !26

.preheader84:                                     ; preds = %.preheader84.lr.ph, %104
  %indvars.iv126 = phi i64 [ 1, %.preheader84.lr.ph ], [ %indvars.iv.next127, %104 ]
  %indvars.iv116 = phi i64 [ 0, %.preheader84.lr.ph ], [ %indvars.iv.next117, %104 ]
  br label %.preheader

._crit_edge105:                                   ; preds = %104, %87, %.preheader85
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %126

.preheader:                                       ; preds = %.preheader84, %._crit_edge102
  %indvars.iv121 = phi i64 [ 0, %.preheader84 ], [ %indvars.iv.next122, %._crit_edge102 ]
  %101 = load i32, ptr %13, align 8, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv116, %102
  br i1 %103, label %.lr.ph101, label %._crit_edge102

104:                                              ; preds = %._crit_edge102
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %105 = load i32, ptr %13, align 8, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next117, %106
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  br i1 %107, label %.preheader84, label %._crit_edge105, !llvm.loop !27

._crit_edge102:                                   ; preds = %.lr.ph101, %.preheader
  %.066.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %122, %.lr.ph101 ]
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %indvars.iv116) #4
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = getelementptr inbounds double, ptr %109, i64 %indvars.iv121
  store double %.066.lcssa, ptr %110, align 8, !tbaa !22
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next122, %indvars.iv126
  br i1 %exitcond.not, label %104, label %.preheader, !llvm.loop !28

.lr.ph101:                                        ; preds = %.preheader, %.lr.ph101
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %.lr.ph101 ], [ %indvars.iv116, %.preheader ]
  %.06699 = phi double [ %122, %.lr.ph101 ], [ 0.000000e+00, %.preheader ]
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %indvars.iv118) #4
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = getelementptr inbounds double, ptr %112, i64 %indvars.iv116
  %114 = load double, ptr %113, align 8, !tbaa !22
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv118) #4
  %116 = load double, ptr %115, align 8, !tbaa !22
  %117 = fmul double %114, %116
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %indvars.iv118) #4
  %119 = load ptr, ptr %118, align 8, !tbaa !21
  %120 = getelementptr inbounds double, ptr %119, i64 %indvars.iv121
  %121 = load double, ptr %120, align 8, !tbaa !22
  %122 = call double @llvm.fmuladd.f64(double %117, double %121, double %.06699)
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %123 = load i32, ptr %13, align 8, !tbaa !5
  %124 = trunc nuw i64 %indvars.iv.next119 to i32
  %125 = icmp sgt i32 %123, %124
  br i1 %125, label %.lr.ph101, label %._crit_edge102, !llvm.loop !29

126:                                              ; preds = %22, %._crit_edge105
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  br label %129

127:                                              ; preds = %92, %25
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %26, %25 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %128

128:                                              ; preds = %127, %23
  %.pn.pn = phi { ptr, i32 } [ %.pn, %127 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn

129:                                              ; preds = %2, %126
  %.177 = phi i1 [ %21, %126 ], [ false, %2 ]
  ret i1 %.177
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 align 2

declare void @_ZN4sptk15SymmetricMatrixC1Ei(ptr, i32) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !7, i64 8}
!6 = !{!"_ZTSN4sptk15SymmetricMatrixE", !7, i64 8, !10, i64 16, !15, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIdSaIdEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !14, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !8, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}


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