; LLVM IR from sp-nitech/SPTK :: src/math (reverse_levinson_durbin_recursion)

; 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::Row" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.sptk::ReverseLevinsonDurbinRecursion" = type <{ ptr, i32, i8, [3 x i8] }>
%"class.sptk::ReverseLevinsonDurbinRecursion::Buffer" = type { ptr, %"class.sptk::SymmetricMatrix", %"class.std::vector" }
%"class.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector", %"class.std::vector.0" }
%"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::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 }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk30ReverseLevinsonDurbinRecursion3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %31 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %33 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %10, align 4, !tbaa !13
  %36 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 2
  %37 = load i8, ptr %36, align 4, !tbaa !14, !range !15, !noundef !16
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %51

39:                                               ; preds = %4
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #5
  %42 = load i32, ptr %10, align 4, !tbaa !13
  %43 = sext i32 %42 to i64
  %44 = icmp ne i64 %41, %43
  br i1 %44, label %51, label %45

45:                                               ; preds = %39
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = icmp eq ptr null, %46
  br i1 %47, label %51, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = icmp eq ptr null, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %48, %45, %39, %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %314

52:                                               ; preds = %48
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #5
  %55 = load i32, ptr %10, align 4, !tbaa !13
  %56 = sext i32 %55 to i64
  %57 = icmp ne i64 %54, %56
  br i1 %57, label %58, label %62

58:                                               ; preds = %52
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !13
  %61 = sext i32 %60 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61)
  br label %62

62:                                               ; preds = %58, %52
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %63, i32 0, i32 1
  %65 = call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %64)
  %66 = load i32, ptr %10, align 4, !tbaa !13
  %67 = icmp ne i32 %65, %66
  br i1 %67, label %68, label %72

68:                                               ; preds = %62
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %69, i32 0, i32 1
  %71 = load i32, ptr %10, align 4, !tbaa !13
  call void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64) %70, i32 noundef %71)
  br label %72

72:                                               ; preds = %68, %62
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %73, i32 0, i32 2
  %75 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #5
  %76 = load i32, ptr %10, align 4, !tbaa !13
  %77 = sext i32 %76 to i64
  %78 = icmp ne i64 %75, %77
  br i1 %78, label %79, label %84

79:                                               ; preds = %72
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %80, i32 0, i32 2
  %82 = load i32, ptr %10, align 4, !tbaa !13
  %83 = sext i32 %82 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83)
  br label %84

84:                                               ; preds = %79, %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef 0) #5
  store ptr %86, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #5
  store ptr %88, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %89, i32 0, i32 2
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef 0) #5
  store ptr %91, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !13
  br label %92

92:                                               ; preds = %105, %84
  %93 = load i32, ptr %15, align 4, !tbaa !13
  %94 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !9
  %96 = icmp sle i32 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %112

98:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %99, i32 0, i32 1
  %101 = load i32, ptr %15, align 4, !tbaa !13
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %16, ptr noundef nonnull align 8 dereferenceable(64) %100, i32 noundef %101)
  %102 = load i32, ptr %15, align 4, !tbaa !13
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %16, i32 noundef %102)
          to label %104 unwind label %108

104:                                              ; preds = %98
  store double 1.000000e+00, ptr %103, align 8, !tbaa !17
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %15, align 4, !tbaa !13
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %15, align 4, !tbaa !13
  br label %92, !llvm.loop !19

108:                                              ; preds = %98
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %17, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %18, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %313

112:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !13
  br label %113

113:                                              ; preds = %135, %112
  %114 = load i32, ptr %19, align 4, !tbaa !13
  %115 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !9
  %117 = icmp slt i32 %114, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %113
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %142

119:                                              ; preds = %113
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %122 = load i32, ptr %121, align 8, !tbaa !9
  %123 = load i32, ptr %19, align 4, !tbaa !13
  %124 = sub nsw i32 %122, %123
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %120, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !9
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %20, ptr noundef nonnull align 8 dereferenceable(64) %129, i32 noundef %131)
  %132 = load i32, ptr %19, align 4, !tbaa !13
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %20, i32 noundef %132)
          to label %134 unwind label %138

134:                                              ; preds = %119
  store double %127, ptr %133, align 8, !tbaa !17
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %19, align 4, !tbaa !13
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %19, align 4, !tbaa !13
  br label %113, !llvm.loop !21

138:                                              ; preds = %119
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %17, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %18, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %313

142:                                              ; preds = %118
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds double, ptr %143, i64 0
  %145 = load double, ptr %144, align 8, !tbaa !17
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %146, i64 0
  %148 = load double, ptr %147, align 8, !tbaa !17
  %149 = fmul double %145, %148
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %152 = load i32, ptr %151, align 8, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %150, i64 %153
  store double %149, ptr %154, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %155 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %156 = load i32, ptr %155, align 8, !tbaa !9
  %157 = sub nsw i32 %156, 1
  store i32 %157, ptr %21, align 4, !tbaa !13
  br label %158

158:                                              ; preds = %234, %142
  %159 = load i32, ptr %21, align 4, !tbaa !13
  %160 = icmp sle i32 0, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %158
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %238

162:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %163, i32 0, i32 1
  %165 = load i32, ptr %21, align 4, !tbaa !13
  %166 = add nsw i32 %165, 1
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %23, ptr noundef nonnull align 8 dereferenceable(64) %164, i32 noundef %166)
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %23, i32 noundef 0)
          to label %168 unwind label %183

168:                                              ; preds = %162
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  store ptr %167, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %169 = load ptr, ptr %22, align 8, !tbaa !5
  %170 = getelementptr inbounds double, ptr %169, i64 0
  %171 = load double, ptr %170, align 8, !tbaa !17
  %172 = load ptr, ptr %22, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 0
  %174 = load double, ptr %173, align 8, !tbaa !17
  %175 = fneg double %171
  %176 = call double @llvm.fmuladd.f64(double %175, double %174, double 1.000000e+00)
  %177 = fdiv double 1.000000e+00, %176
  store double %177, ptr %24, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !13
  br label %178

178:                                              ; preds = %214, %168
  %179 = load i32, ptr %25, align 4, !tbaa !13
  %180 = load i32, ptr %21, align 4, !tbaa !13
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %187, label %182

182:                                              ; preds = %178
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %221

183:                                              ; preds = %162
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %17, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %18, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  br label %237

187:                                              ; preds = %178
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = load i32, ptr %25, align 4, !tbaa !13
  %190 = add nsw i32 %189, 1
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %188, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !17
  %194 = load ptr, ptr %22, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %194, i64 0
  %196 = load double, ptr %195, align 8, !tbaa !17
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = load i32, ptr %21, align 4, !tbaa !13
  %199 = load i32, ptr %25, align 4, !tbaa !13
  %200 = sub nsw i32 %198, %199
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %197, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !17
  %204 = fneg double %196
  %205 = call double @llvm.fmuladd.f64(double %204, double %203, double %193)
  %206 = load double, ptr %24, align 8, !tbaa !17
  %207 = fmul double %205, %206
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %208, i32 0, i32 1
  %210 = load i32, ptr %21, align 4, !tbaa !13
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %26, ptr noundef nonnull align 8 dereferenceable(64) %209, i32 noundef %210)
  %211 = load i32, ptr %25, align 4, !tbaa !13
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %26, i32 noundef %211)
          to label %213 unwind label %217

213:                                              ; preds = %187
  store double %207, ptr %212, align 8, !tbaa !17
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %26) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %25, align 4, !tbaa !13
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %25, align 4, !tbaa !13
  br label %178, !llvm.loop !22

217:                                              ; preds = %187
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %17, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %18, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %26) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %237

221:                                              ; preds = %182
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = load i32, ptr %21, align 4, !tbaa !13
  %224 = add nsw i32 %223, 1
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds double, ptr %222, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !17
  %228 = load double, ptr %24, align 8, !tbaa !17
  %229 = fmul double %227, %228
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = load i32, ptr %21, align 4, !tbaa !13
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds double, ptr %230, i64 %232
  store double %229, ptr %233, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %234

234:                                              ; preds = %221
  %235 = load i32, ptr %21, align 4, !tbaa !13
  %236 = add nsw i32 %235, -1
  store i32 %236, ptr %21, align 4, !tbaa !13
  br label %158, !llvm.loop !23

237:                                              ; preds = %217, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %313

238:                                              ; preds = %161
  %239 = load ptr, ptr %14, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %239, i64 0
  %241 = load double, ptr %240, align 8, !tbaa !17
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %242, i64 0
  store double %241, ptr %243, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 1, ptr %27, align 4, !tbaa !13
  br label %244

244:                                              ; preds = %304, %238
  %245 = load i32, ptr %27, align 4, !tbaa !13
  %246 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion", ptr %32, i32 0, i32 1
  %247 = load i32, ptr %246, align 8, !tbaa !9
  %248 = icmp sle i32 %245, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %244
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %312

250:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  store double 0.000000e+00, ptr %28, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 1, ptr %29, align 4, !tbaa !13
  br label %251

251:                                              ; preds = %277, %250
  %252 = load i32, ptr %29, align 4, !tbaa !13
  %253 = load i32, ptr %27, align 4, !tbaa !13
  %254 = icmp slt i32 %252, %253
  br i1 %254, label %256, label %255

255:                                              ; preds = %251
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %284

256:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #5
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %257, i32 0, i32 1
  %259 = load i32, ptr %27, align 4, !tbaa !13
  %260 = sub nsw i32 %259, 1
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %30, ptr noundef nonnull align 8 dereferenceable(64) %258, i32 noundef %260)
  %261 = load i32, ptr %27, align 4, !tbaa !13
  %262 = load i32, ptr %29, align 4, !tbaa !13
  %263 = sub nsw i32 %261, %262
  %264 = sub nsw i32 %263, 1
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %30, i32 noundef %264)
          to label %266 unwind label %280

266:                                              ; preds = %256
  %267 = load double, ptr %265, align 8, !tbaa !17
  %268 = load ptr, ptr %13, align 8, !tbaa !5
  %269 = load i32, ptr %27, align 4, !tbaa !13
  %270 = load i32, ptr %29, align 4, !tbaa !13
  %271 = sub nsw i32 %269, %270
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds double, ptr %268, i64 %272
  %274 = load double, ptr %273, align 8, !tbaa !17
  %275 = load double, ptr %28, align 8, !tbaa !17
  %276 = call double @llvm.fmuladd.f64(double %267, double %274, double %275)
  store double %276, ptr %28, align 8, !tbaa !17
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %30) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  br label %277

277:                                              ; preds = %266
  %278 = load i32, ptr %29, align 4, !tbaa !13
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %29, align 4, !tbaa !13
  br label %251, !llvm.loop !24

280:                                              ; preds = %256
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %17, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %18, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %30) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %311

284:                                              ; preds = %255
  %285 = load double, ptr %28, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #5
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = getelementptr inbounds %"class.sptk::ReverseLevinsonDurbinRecursion::Buffer", ptr %286, i32 0, i32 1
  %288 = load i32, ptr %27, align 4, !tbaa !13
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %31, ptr noundef nonnull align 8 dereferenceable(64) %287, i32 noundef %288)
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %31, i32 noundef 0)
          to label %290 unwind label %307

290:                                              ; preds = %284
  %291 = load double, ptr %289, align 8, !tbaa !17
  %292 = load ptr, ptr %14, align 8, !tbaa !5
  %293 = load i32, ptr %27, align 4, !tbaa !13
  %294 = sub nsw i32 %293, 1
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds double, ptr %292, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !17
  %298 = call double @llvm.fmuladd.f64(double %291, double %297, double %285)
  %299 = fneg double %298
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  %301 = load i32, ptr %27, align 4, !tbaa !13
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds double, ptr %300, i64 %302
  store double %299, ptr %303, align 8, !tbaa !17
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %31) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %304

304:                                              ; preds = %290
  %305 = load i32, ptr %27, align 4, !tbaa !13
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %27, align 4, !tbaa !13
  br label %244, !llvm.loop !25

307:                                              ; preds = %284
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %17, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %18, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %31) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #5
  br label %311

311:                                              ; preds = %307, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %313

312:                                              ; preds = %249
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %314

313:                                              ; preds = %311, %237, %138, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %316

314:                                              ; preds = %312, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %315 = load i1, ptr %5, align 1
  ret i1 %315

316:                                              ; preds = %313
  %317 = load ptr, ptr %17, align 8
  %318 = load i32, ptr %18, align 4
  %319 = insertvalue { ptr, i32 } poison, ptr %317, 0
  %320 = insertvalue { ptr, i32 } %319, i32 %318, 1
  resume { ptr, i32 } %320
}

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

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

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

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

declare void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #0 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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


; 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::Row" = type <{ ptr, ptr, i32, [4 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk30ReverseLevinsonDurbinRecursion3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(13) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %6 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %7 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %8 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %9 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %10 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = add nsw i32 %12, 1
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  %15 = load i8, ptr %14, align 4, !tbaa !11, !range !12, !noundef !13
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %.loopexit

17:                                               ; preds = %4
  %18 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %19 = sext i32 %13 to i64
  %20 = icmp ne i64 %18, %19
  %21 = icmp eq ptr %2, null
  %or.cond = or i1 %21, %20
  %22 = icmp eq ptr %3, null
  %or.cond3 = or i1 %22, %or.cond
  br i1 %or.cond3, label %.loopexit, label %23

23:                                               ; preds = %17
  %24 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not = icmp eq i64 %24, %18
  br i1 %.not, label %26, label %25

25:                                               ; preds = %23
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %18)
  br label %26

26:                                               ; preds = %25, %23
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = tail call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %27)
  %.not102 = icmp eq i32 %28, %13
  br i1 %.not102, label %30, label %29

29:                                               ; preds = %26
  tail call void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %13)
  br label %30

30:                                               ; preds = %29, %26
  %31 = getelementptr inbounds i8, ptr %3, i64 72
  %32 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  %.not103 = icmp eq i64 %32, %18
  br i1 %.not103, label %34, label %33

33:                                               ; preds = %30
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %18)
  br label %34

34:                                               ; preds = %33, %30
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #5
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #5
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #5
  %38 = load i32, ptr %11, align 8, !tbaa !5
  %.not104114 = icmp slt i32 %38, 0
  br i1 %.not104114, label %._crit_edge.thread, label %.lr.ph

.preheader111:                                    ; preds = %41
  %39 = icmp sgt i32 %43, 0
  br i1 %39, label %.lr.ph117, label %._crit_edge.thread

.lr.ph:                                           ; preds = %34, %41
  %.095115 = phi i32 [ %42, %41 ], [ 0, %34 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %5, ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %.095115)
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.095115)
          to label %41 unwind label %44

41:                                               ; preds = %.lr.ph
  store double 1.000000e+00, ptr %40, align 8, !tbaa !14
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  %42 = add nuw nsw i32 %.095115, 1
  %43 = load i32, ptr %11, align 8, !tbaa !5
  %.not104.not = icmp slt i32 %.095115, %43
  br i1 %.not104.not, label %.lr.ph, label %.preheader111, !llvm.loop !16

44:                                               ; preds = %.lr.ph
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %132

._crit_edge.thread:                               ; preds = %.preheader111, %34
  %.lcssa.ph = phi i32 [ %43, %.preheader111 ], [ %38, %34 ]
  %46 = load double, ptr %35, align 8, !tbaa !14
  %47 = fmul double %46, %46
  %48 = sext i32 %.lcssa.ph to i64
  %49 = getelementptr inbounds double, ptr %37, i64 %48
  store double %47, ptr %49, align 8, !tbaa !14
  br label %._crit_edge127.thread

._crit_edge:                                      ; preds = %63
  %50 = load double, ptr %35, align 8, !tbaa !14
  %51 = fmul double %50, %50
  %52 = sext i32 %65 to i64
  %53 = getelementptr inbounds double, ptr %37, i64 %52
  store double %51, ptr %53, align 8, !tbaa !14
  %54 = icmp sgt i32 %65, 0
  br i1 %54, label %.lr.ph126.preheader, label %._crit_edge127.thread

.lr.ph126.preheader:                              ; preds = %._crit_edge
  %55 = add nsw i32 %65, -1
  %56 = zext nneg i32 %55 to i64
  br label %.lr.ph126

.lr.ph117:                                        ; preds = %.preheader111, %63
  %57 = phi i32 [ %65, %63 ], [ %43, %.preheader111 ]
  %.090116 = phi i32 [ %64, %63 ], [ 0, %.preheader111 ]
  %58 = sub nsw i32 %57, %.090116
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %35, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %6, ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %57)
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %.090116)
          to label %63 unwind label %67

63:                                               ; preds = %.lr.ph117
  store double %61, ptr %62, align 8, !tbaa !14
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %64 = add nuw nsw i32 %.090116, 1
  %65 = load i32, ptr %11, align 8, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %.lr.ph117, label %._crit_edge, !llvm.loop !18

67:                                               ; preds = %.lr.ph117
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %132

._crit_edge127.thread:                            ; preds = %._crit_edge, %._crit_edge.thread
  %69 = load double, ptr %37, align 8, !tbaa !14
  store double %69, ptr %36, align 8, !tbaa !14
  br label %.loopexit

._crit_edge127:                                   ; preds = %._crit_edge121, %._crit_edge121.thread
  %.pre = load i32, ptr %11, align 8, !tbaa !5
  %70 = icmp slt i32 %.pre, 1
  %71 = load double, ptr %37, align 8, !tbaa !14
  store double %71, ptr %36, align 8, !tbaa !14
  %invariant.gep = getelementptr i8, ptr %37, i64 -8
  br i1 %70, label %.loopexit, label %.preheader

.lr.ph126:                                        ; preds = %.lr.ph126.preheader, %._crit_edge121
  %indvars.iv142 = phi i64 [ %52, %.lr.ph126.preheader ], [ %indvars.iv.next143, %._crit_edge121 ]
  %indvars.iv140 = phi i64 [ %56, %.lr.ph126.preheader ], [ %indvars.iv.next141, %._crit_edge121 ]
  %indvars.iv.next143 = add nsw i64 %indvars.iv142, -1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %72 = trunc nuw nsw i64 %indvars.iv142 to i32
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %7, ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %72)
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef 0)
          to label %74 unwind label %89

74:                                               ; preds = %.lr.ph126
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  %75 = load double, ptr %73, align 8, !tbaa !14
  %76 = fneg double %75
  %77 = call double @llvm.fmuladd.f64(double %76, double %75, double 1.000000e+00)
  %78 = fdiv double 1.000000e+00, %77
  %79 = icmp sgt i64 %indvars.iv142, 1
  br i1 %79, label %.lr.ph120.preheader, label %._crit_edge121.thread

._crit_edge121.thread:                            ; preds = %74
  %80 = getelementptr inbounds double, ptr %37, i64 %indvars.iv142
  %81 = load double, ptr %80, align 8, !tbaa !14
  %82 = fmul double %78, %81
  %83 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next143
  store double %82, ptr %83, align 8, !tbaa !14
  br label %._crit_edge127

.lr.ph120.preheader:                              ; preds = %74
  %84 = trunc nuw nsw i64 %indvars.iv.next143 to i32
  br label %.lr.ph120

._crit_edge121:                                   ; preds = %99
  %85 = getelementptr inbounds double, ptr %37, i64 %indvars.iv142
  %86 = load double, ptr %85, align 8, !tbaa !14
  %87 = fmul double %78, %86
  %88 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next143
  store double %87, ptr %88, align 8, !tbaa !14
  %indvars.iv.next141 = add nsw i64 %indvars.iv140, -1
  br i1 %79, label %.lr.ph126, label %._crit_edge127, !llvm.loop !19

89:                                               ; preds = %.lr.ph126
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %132

.lr.ph120:                                        ; preds = %.lr.ph120.preheader, %99
  %indvars.iv = phi i64 [ 0, %.lr.ph120.preheader ], [ %indvars.iv.next, %99 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %91 = getelementptr inbounds double, ptr %73, i64 %indvars.iv.next
  %92 = load double, ptr %91, align 8, !tbaa !14
  %93 = load double, ptr %73, align 8, !tbaa !14
  %94 = sub nsw i64 %indvars.iv.next143, %indvars.iv
  %95 = getelementptr inbounds double, ptr %73, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %8, ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %84)
  %97 = trunc nuw nsw i64 %indvars.iv to i32
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef %97)
          to label %99 unwind label %103

99:                                               ; preds = %.lr.ph120
  %100 = fneg double %93
  %101 = call double @llvm.fmuladd.f64(double %100, double %96, double %92)
  %102 = fmul double %78, %101
  store double %102, ptr %98, align 8, !tbaa !14
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv140
  br i1 %exitcond.not, label %._crit_edge121, label %.lr.ph120, !llvm.loop !20

103:                                              ; preds = %.lr.ph120
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %132

.preheader:                                       ; preds = %._crit_edge127, %122
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %122 ], [ 1, %._crit_edge127 ]
  %105 = icmp ugt i64 %indvars.iv151, 1
  br i1 %105, label %.lr.ph130, label %._crit_edge131

.lr.ph130:                                        ; preds = %.preheader
  %106 = trunc i64 %indvars.iv151 to i32
  %107 = add i32 %106, -1
  br label %110

._crit_edge131:                                   ; preds = %115, %.preheader
  %.085.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %119, %115 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %108 = trunc nuw nsw i64 %indvars.iv151 to i32
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %10, ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %108)
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef 0)
          to label %122 unwind label %130

110:                                              ; preds = %.lr.ph130, %115
  %indvars.iv147 = phi i64 [ 1, %.lr.ph130 ], [ %indvars.iv.next148, %115 ]
  %.085128 = phi double [ 0.000000e+00, %.lr.ph130 ], [ %119, %115 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %9, ptr noundef nonnull align 8 dereferenceable(64) %27, i32 noundef %107)
  %111 = sub nsw i64 %indvars.iv151, %indvars.iv147
  %112 = trunc i64 %111 to i32
  %113 = add i32 %112, -1
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %9, i32 noundef %113)
          to label %115 unwind label %120

115:                                              ; preds = %110
  %116 = load double, ptr %114, align 8, !tbaa !14
  %117 = getelementptr inbounds double, ptr %36, i64 %111
  %118 = load double, ptr %117, align 8, !tbaa !14
  %119 = call double @llvm.fmuladd.f64(double %116, double %118, double %.085128)
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next148, %indvars.iv151
  br i1 %exitcond150.not, label %._crit_edge131, label %110, !llvm.loop !21

120:                                              ; preds = %110
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %132

122:                                              ; preds = %._crit_edge131
  %123 = load double, ptr %109, align 8, !tbaa !14
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv151
  %124 = load double, ptr %gep, align 8, !tbaa !14
  %125 = call double @llvm.fmuladd.f64(double %123, double %124, double %.085.lcssa)
  %126 = fneg double %125
  %127 = getelementptr inbounds double, ptr %36, i64 %indvars.iv151
  store double %126, ptr %127, align 8, !tbaa !14
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %128 = load i32, ptr %11, align 8, !tbaa !5
  %129 = sext i32 %128 to i64
  %.not105.not = icmp slt i64 %indvars.iv151, %129
  br i1 %.not105.not, label %.preheader, label %.loopexit, !llvm.loop !22

130:                                              ; preds = %._crit_edge131
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %132

132:                                              ; preds = %120, %130, %89, %103, %67, %44
  %.pn109 = phi { ptr, i32 } [ %45, %44 ], [ %68, %67 ], [ %104, %103 ], [ %90, %89 ], [ %121, %120 ], [ %131, %130 ]
  resume { ptr, i32 } %.pn109

.loopexit:                                        ; preds = %122, %._crit_edge127.thread, %._crit_edge127, %4, %17
  %.088 = phi i1 [ false, %17 ], [ false, %4 ], [ true, %._crit_edge127 ], [ true, %._crit_edge127.thread ], [ true, %122 ]
  ret i1 %.088
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

declare void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20)) 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

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

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

!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 = !{!"_ZTSN4sptk30ReverseLevinsonDurbinRecursionE", !7, i64 8, !10, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!6, !10, i64 12}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


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