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

; 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.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.sptk::StatisticsAccumulation" = type <{ ptr, i32, i32, i8, i8, i8, [5 x i8] }>
%"class.sptk::StatisticsAccumulation::Buffer" = type { ptr, i32, %"class.std::vector", %"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 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7GetMeanERKNS0_6BufferEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(19), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #1 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 @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #1 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation17GetFullCovarianceERKNS0_6BufferEPNS_15SymmetricMatrixE(ptr noundef nonnull align 8 dereferenceable(19) %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %16 = alloca %"class.std::vector", 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 %"class.sptk::SymmetricMatrix::Row", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  %23 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 5
  %24 = load i8, ptr %23, align 2, !tbaa !9, !range !13, !noundef !14
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %42

26:                                               ; preds = %3
  %27 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = icmp slt i32 %28, 2
  br i1 %29, label %42, label %30

30:                                               ; preds = %26
  %31 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 3
  %32 = load i8, ptr %31, align 8, !tbaa !16, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  br i1 %33, label %42, label %34

34:                                               ; preds = %30
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !17
  %38 = icmp sle i32 %37, 0
  br i1 %38, label %42, label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = icmp eq ptr null, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %39, %34, %30, %26, %3
  store i1 false, ptr %4, align 1
  br label %201

43:                                               ; preds = %39
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %44)
  %46 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !28
  %48 = add nsw i32 %47, 1
  %49 = icmp ne i32 %45, %48
  br i1 %49, label %50, label %55

50:                                               ; preds = %43
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !28
  %54 = add nsw i32 %53, 1
  call void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64) %51, i32 noundef %54)
  br label %55

55:                                               ; preds = %50, %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = sitofp i32 %58 to double
  %60 = fdiv double 1.000000e+00, %59
  store double %60, ptr %8, align 8, !tbaa !29
  %61 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 4
  %62 = load i8, ptr %61, align 1, !tbaa !31, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %115

64:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !32
  br label %65

65:                                               ; preds = %111, %64
  %66 = load i32, ptr %9, align 4, !tbaa !32
  %67 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 1
  %68 = load i32, ptr %67, align 8, !tbaa !28
  %69 = icmp sle i32 %66, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %65
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %114

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !32
  br label %72

72:                                               ; preds = %93, %71
  %73 = load i32, ptr %11, align 4, !tbaa !32
  %74 = load i32, ptr %9, align 4, !tbaa !32
  %75 = icmp sle i32 %73, %74
  br i1 %75, label %77, label %76

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

77:                                               ; preds = %72
  %78 = load double, ptr %8, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %79, i32 0, i32 3
  %81 = load i32, ptr %9, align 4, !tbaa !32
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %12, ptr noundef nonnull align 8 dereferenceable(64) %80, i32 noundef %81)
  %82 = load i32, ptr %11, align 4, !tbaa !32
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %82)
          to label %84 unwind label %96

84:                                               ; preds = %77
  %85 = load double, ptr %83, align 8, !tbaa !29
  %86 = fmul double %78, %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !32
  invoke void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %15, ptr noundef nonnull align 8 dereferenceable(64) %87, i32 noundef %88)
          to label %89 unwind label %100

89:                                               ; preds = %84
  %90 = load i32, ptr %11, align 4, !tbaa !32
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %90)
          to label %92 unwind label %104

92:                                               ; preds = %89
  store double %86, ptr %91, align 8, !tbaa !29
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %11, align 4, !tbaa !32
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %11, align 4, !tbaa !32
  br label %72, !llvm.loop !33

96:                                               ; preds = %77
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %13, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %14, align 4
  br label %109

100:                                              ; preds = %84
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %13, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %14, align 4
  br label %108

104:                                              ; preds = %89
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %13, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %14, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %15) #5
  br label %108

108:                                              ; preds = %104, %100
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  br label %109

109:                                              ; preds = %108, %96
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %200

110:                                              ; preds = %76
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %9, align 4, !tbaa !32
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !32
  br label %65, !llvm.loop !35

114:                                              ; preds = %70
  br label %198

115:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = invoke noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7GetMeanERKNS0_6BufferEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(19) %22, ptr noundef nonnull align 8 dereferenceable(128) %116, ptr noundef %16)
          to label %118 unwind label %120

118:                                              ; preds = %115
  br i1 %117, label %124, label %119

119:                                              ; preds = %118
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %194

120:                                              ; preds = %115
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %13, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %14, align 4
  br label %197

124:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #5
  store ptr %125, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !32
  br label %126

126:                                              ; preds = %190, %124
  %127 = load i32, ptr %18, align 4, !tbaa !32
  %128 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %22, i32 0, i32 1
  %129 = load i32, ptr %128, align 8, !tbaa !28
  %130 = icmp sle i32 %127, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %126
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %193

132:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !32
  br label %133

133:                                              ; preds = %167, %132
  %134 = load i32, ptr %19, align 4, !tbaa !32
  %135 = load i32, ptr %18, align 4, !tbaa !32
  %136 = icmp sle i32 %134, %135
  br i1 %136, label %138, label %137

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

138:                                              ; preds = %133
  %139 = load double, ptr %8, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %140, i32 0, i32 3
  %142 = load i32, ptr %18, align 4, !tbaa !32
  invoke void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %20, ptr noundef nonnull align 8 dereferenceable(64) %141, i32 noundef %142)
          to label %143 unwind label %170

143:                                              ; preds = %138
  %144 = load i32, ptr %19, align 4, !tbaa !32
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %20, i32 noundef %144)
          to label %146 unwind label %174

146:                                              ; preds = %143
  %147 = load double, ptr %145, align 8, !tbaa !29
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = load i32, ptr %18, align 4, !tbaa !32
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !29
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = load i32, ptr %19, align 4, !tbaa !32
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %153, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !29
  %158 = fmul double %152, %157
  %159 = fneg double %158
  %160 = call double @llvm.fmuladd.f64(double %139, double %147, double %159)
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = load i32, ptr %18, align 4, !tbaa !32
  invoke void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %21, ptr noundef nonnull align 8 dereferenceable(64) %161, i32 noundef %162)
          to label %163 unwind label %178

163:                                              ; preds = %146
  %164 = load i32, ptr %19, align 4, !tbaa !32
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %21, i32 noundef %164)
          to label %166 unwind label %182

166:                                              ; preds = %163
  store double %160, ptr %165, align 8, !tbaa !29
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  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 %167

167:                                              ; preds = %166
  %168 = load i32, ptr %19, align 4, !tbaa !32
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %19, align 4, !tbaa !32
  br label %133, !llvm.loop !36

170:                                              ; preds = %138
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %13, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %14, align 4
  br label %188

174:                                              ; preds = %143
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %13, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %14, align 4
  br label %187

178:                                              ; preds = %146
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %13, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %14, align 4
  br label %186

182:                                              ; preds = %163
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %13, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %14, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %21) #5
  br label %186

186:                                              ; preds = %182, %178
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  br label %187

187:                                              ; preds = %186, %174
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %20) #5
  br label %188

188:                                              ; preds = %187, %170
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %197

189:                                              ; preds = %137
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %18, align 4, !tbaa !32
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %18, align 4, !tbaa !32
  br label %126, !llvm.loop !37

193:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  store i32 0, ptr %10, align 4
  br label %194

194:                                              ; preds = %193, %119
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  %195 = load i32, ptr %10, align 4
  switch i32 %195, label %199 [
    i32 0, label %196
  ]

196:                                              ; preds = %194
  br label %198

197:                                              ; preds = %188, %120
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  br label %200

198:                                              ; preds = %196, %114
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %199

199:                                              ; preds = %198, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %201

200:                                              ; preds = %197, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %203

201:                                              ; preds = %199, %42
  %202 = load i1, ptr %4, align 1
  ret i1 %202

203:                                              ; preds = %200
  %204 = load ptr, ptr %13, align 8
  %205 = load i32, ptr %14, align 4
  %206 = insertvalue { ptr, i32 } poison, ptr %204, 0
  %207 = insertvalue { ptr, i32 } %206, i32 %205, 1
  resume { ptr, i32 } %207
}

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

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

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


; 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] }>
%"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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7GetMeanERKNS0_6BufferEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(19), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #1 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 @_ZNK4sptk15SymmetricMatrixixEi(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 #1 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation17GetFullCovarianceERKNS0_6BufferEPNS_15SymmetricMatrixE(ptr noundef nonnull align 8 dereferenceable(19) %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %5 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %8 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 18
  %10 = load i8, ptr %9, align 2, !tbaa !5, !range !11, !noundef !12
  %11 = trunc nuw i8 %10 to i1
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = load i32, ptr %12, align 4
  %14 = icmp sgt i32 %13, 1
  %or.cond71.not = select i1 %11, i1 %14, i1 false
  br i1 %or.cond71.not, label %15, label %.loopexit

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load i8, ptr %16, align 8, !tbaa !13, !range !11, !noundef !12
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %.loopexit, label %19

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %22 = icmp slt i32 %21, 1
  %23 = icmp eq ptr %2, null
  %or.cond = or i1 %23, %22
  br i1 %or.cond, label %.loopexit, label %24

24:                                               ; preds = %19
  %25 = tail call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %2)
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = load i32, ptr %26, align 8, !tbaa !26
  %28 = add nsw i32 %27, 1
  %.not = icmp eq i32 %25, %28
  br i1 %.not, label %30, label %29

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

30:                                               ; preds = %29, %24
  %31 = load i32, ptr %20, align 8, !tbaa !14
  %32 = sitofp i32 %31 to double
  %33 = fdiv double 1.000000e+00, %32
  %34 = getelementptr inbounds i8, ptr %0, i64 17
  %35 = load i8, ptr %34, align 1, !tbaa !27, !range !11, !noundef !12
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %.preheader73, label %59

.preheader73:                                     ; preds = %30
  %37 = load i32, ptr %26, align 8, !tbaa !26
  %.not6279 = icmp slt i32 %37, 0
  br i1 %.not6279, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader73
  %38 = getelementptr inbounds i8, ptr %1, i64 40
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %39
  %indvars.iv91 = phi i32 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next92, %39 ]
  %.05380 = phi i32 [ 0, %.preheader.lr.ph ], [ %40, %39 ]
  br label %42

39:                                               ; preds = %49
  %40 = add nuw nsw i32 %.05380, 1
  %41 = load i32, ptr %26, align 8, !tbaa !26
  %.not62.not = icmp slt i32 %.05380, %41
  %indvars.iv.next92 = add nuw i32 %indvars.iv91, 1
  br i1 %.not62.not, label %.preheader, label %.loopexit, !llvm.loop !28

42:                                               ; preds = %.preheader, %49
  %.05178 = phi i32 [ 0, %.preheader ], [ %50, %49 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %4, ptr noundef nonnull align 8 dereferenceable(64) %38, i32 noundef %.05380)
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %.05178)
          to label %44 unwind label %51

44:                                               ; preds = %42
  %45 = load double, ptr %43, align 8, !tbaa !30
  %46 = fmul double %33, %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %5, ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %.05380)
          to label %47 unwind label %53

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.05178)
          to label %49 unwind label %55

49:                                               ; preds = %47
  store double %46, ptr %48, align 8, !tbaa !30
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  %50 = add nuw i32 %.05178, 1
  %exitcond93.not = icmp eq i32 %50, %indvars.iv91
  br i1 %exitcond93.not, label %39, label %42, !llvm.loop !32

51:                                               ; preds = %42
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %58

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %47
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  br label %57

57:                                               ; preds = %55, %53
  %.pn64 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %58

58:                                               ; preds = %57, %51
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %57 ], [ %52, %51 ]
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %100

59:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %60 = invoke noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7GetMeanERKNS0_6BufferEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(19) %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef nonnull %6)
          to label %61 unwind label %62

61:                                               ; preds = %59
  br i1 %60, label %64, label %.critedge

62:                                               ; preds = %59
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %99

64:                                               ; preds = %61
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #5
  %66 = load i32, ptr %26, align 8, !tbaa !26
  %.not5676 = icmp slt i32 %66, 0
  br i1 %.not5676, label %._crit_edge, label %.preheader74.lr.ph

.preheader74.lr.ph:                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %1, i64 40
  br label %.preheader74

.preheader74:                                     ; preds = %.preheader74.lr.ph, %70
  %indvars.iv86 = phi i64 [ 0, %.preheader74.lr.ph ], [ %indvars.iv.next87, %70 ]
  %indvars.iv84 = phi i64 [ 1, %.preheader74.lr.ph ], [ %indvars.iv.next85, %70 ]
  %68 = getelementptr inbounds double, ptr %65, i64 %indvars.iv86
  %69 = trunc nuw nsw i64 %indvars.iv86 to i32
  br label %73

70:                                               ; preds = %87
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %71 = load i32, ptr %26, align 8, !tbaa !26
  %72 = sext i32 %71 to i64
  %.not56.not = icmp slt i64 %indvars.iv86, %72
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  br i1 %.not56.not, label %.preheader74, label %._crit_edge, !llvm.loop !33

73:                                               ; preds = %.preheader74, %87
  %indvars.iv = phi i64 [ 0, %.preheader74 ], [ %indvars.iv.next, %87 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  invoke void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %7, ptr noundef nonnull align 8 dereferenceable(64) %67, i32 noundef %69)
          to label %74 unwind label %88

74:                                               ; preds = %73
  %75 = trunc nuw nsw i64 %indvars.iv to i32
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef %75)
          to label %77 unwind label %90

77:                                               ; preds = %74
  %78 = load double, ptr %76, align 8, !tbaa !30
  %79 = load double, ptr %68, align 8, !tbaa !30
  %80 = getelementptr inbounds double, ptr %65, i64 %indvars.iv
  %81 = load double, ptr %80, align 8, !tbaa !30
  %82 = fneg double %79
  %83 = fmul double %81, %82
  %84 = call double @llvm.fmuladd.f64(double %33, double %78, double %83)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  invoke void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %8, ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %69)
          to label %85 unwind label %92

85:                                               ; preds = %77
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef %75)
          to label %87 unwind label %94

87:                                               ; preds = %85
  store double %84, ptr %86, align 8, !tbaa !30
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv84
  br i1 %exitcond.not, label %70, label %73, !llvm.loop !34

88:                                               ; preds = %73
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %98

90:                                               ; preds = %74
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %77
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %85
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #5
  br label %96

96:                                               ; preds = %94, %92
  %.pn = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %97

97:                                               ; preds = %96, %90
  %.pn.pn = phi { ptr, i32 } [ %.pn, %96 ], [ %91, %90 ]
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #5
  br label %98

98:                                               ; preds = %97, %88
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %97 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %99

._crit_edge:                                      ; preds = %70, %64
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %.loopexit

99:                                               ; preds = %98, %62
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %98 ], [ %63, %62 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %100

.critedge:                                        ; preds = %61
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %.loopexit

100:                                              ; preds = %99, %58
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %58 ], [ %.pn.pn.pn.pn, %99 ]
  resume { ptr, i32 } %.pn64.pn.pn

.loopexit:                                        ; preds = %39, %.preheader73, %._crit_edge, %.critedge, %3, %15, %19
  %.2 = phi i1 [ false, %19 ], [ false, %15 ], [ false, %3 ], [ false, %.critedge ], [ true, %._crit_edge ], [ true, %.preheader73 ], [ true, %39 ]
  ret i1 %.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 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 #1 align 2

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

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


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