; 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.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::minus" = type { i8 }
%class.anon.8 = type { double }
%"struct.std::plus" = type { i8 }
%"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 }
%"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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; 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) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation3RunERKSt6vectorIdSaIdEEPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(19) %0, ptr noundef nonnull align 8 dereferenceable(24) %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 i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"struct.std::minus", align 1
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %27 = alloca double, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %class.anon.8, align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"struct.std::plus", align 1
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", 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
  %40 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %41 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !9
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  store i64 %44, ptr %8, align 8, !tbaa !13
  %45 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 5
  %46 = load i8, ptr %45, align 2, !tbaa !15, !range !16, !noundef !17
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %56

48:                                               ; preds = %3
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  %51 = load i64, ptr %8, align 8, !tbaa !13
  %52 = icmp ne i64 %50, %51
  br i1 %52, label %56, label %53

53:                                               ; preds = %48
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = icmp eq ptr null, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %53, %48, %3
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %336

57:                                               ; preds = %53
  %58 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 2
  %59 = load i32, ptr %58, align 4, !tbaa !18
  %60 = icmp sle i32 1, %59
  br i1 %60, label %61, label %71

61:                                               ; preds = %57
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %62, i32 0, i32 2
  %64 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #5
  %65 = load i64, ptr %8, align 8, !tbaa !13
  %66 = icmp ne i64 %64, %65
  br i1 %66, label %67, label %71

67:                                               ; preds = %61
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %68, i32 0, i32 2
  %70 = load i64, ptr %8, align 8, !tbaa !13
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %70)
  br label %71

71:                                               ; preds = %67, %61, %57
  %72 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !18
  %74 = icmp sle i32 2, %73
  br i1 %74, label %75, label %87

75:                                               ; preds = %71
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %76, i32 0, i32 3
  %78 = call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %77)
  %79 = load i64, ptr %8, align 8, !tbaa !13
  %80 = trunc i64 %79 to i32
  %81 = icmp ne i32 %78, %80
  br i1 %81, label %82, label %87

82:                                               ; preds = %75
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %83, i32 0, i32 3
  %85 = load i64, ptr %8, align 8, !tbaa !13
  %86 = trunc i64 %85 to i32
  call void @_ZN4sptk15SymmetricMatrix6ResizeEi(ptr noundef nonnull align 8 dereferenceable(64) %84, i32 noundef %86)
  br label %87

87:                                               ; preds = %82, %75, %71
  %88 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 4
  %89 = load i8, ptr %88, align 1, !tbaa !19, !range !16, !noundef !17
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %101

91:                                               ; preds = %87
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %92, i32 0, i32 4
  %94 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #5
  %95 = load i64, ptr %8, align 8, !tbaa !13
  %96 = icmp ne i64 %94, %95
  br i1 %96, label %97, label %101

97:                                               ; preds = %91
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %98, i32 0, i32 4
  %100 = load i64, ptr %8, align 8, !tbaa !13
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100)
  br label %101

101:                                              ; preds = %97, %91, %87
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !20
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 8, !tbaa !20
  %106 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !18
  %108 = icmp sle i32 1, %107
  br i1 %108, label %109, label %138

109:                                              ; preds = %101
  %110 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 4
  %111 = load i8, ptr %110, align 1, !tbaa !19, !range !16, !noundef !17
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %138

113:                                              ; preds = %109
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #5
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %10, i32 0, i32 0
  store ptr %115, ptr %116, align 8
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #5
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %11, i32 0, i32 0
  store ptr %118, ptr %119, align 8
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %120, i32 0, i32 2
  %122 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #5
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %124, i32 0, i32 4
  %126 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #5
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %10, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %11, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8
  %136 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St5minusIdEET1_T_SD_T0_SC_T2_(ptr %129, ptr %131, ptr %133, ptr %135)
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  br label %138

138:                                              ; preds = %113, %109, %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %139, i32 0, i32 4
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef 0) #5
  store ptr %141, ptr %16, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 2
  %143 = load i32, ptr %142, align 4, !tbaa !18
  %144 = icmp sle i32 2, %143
  br i1 %144, label %145, label %264

145:                                              ; preds = %138
  %146 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 4
  %147 = load i8, ptr %146, align 1, !tbaa !19, !range !16, !noundef !17
  %148 = trunc i8 %147 to i1
  br i1 %148, label %149, label %211

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 8, !tbaa !20
  %153 = sitofp i32 %152 to double
  store double %153, ptr %17, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %154 = load double, ptr %17, align 8, !tbaa !31
  %155 = fsub double %154, 1.000000e+00
  %156 = load double, ptr %17, align 8, !tbaa !31
  %157 = fdiv double %155, %156
  store double %157, ptr %18, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !33
  br label %158

158:                                              ; preds = %207, %149
  %159 = load i32, ptr %19, align 4, !tbaa !33
  %160 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !9
  %162 = icmp sle i32 %159, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %158
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %210

164:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %165 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 3
  %166 = load i8, ptr %165, align 8, !tbaa !34, !range !16, !noundef !17
  %167 = trunc i8 %166 to i1
  br i1 %167, label %168, label %170

168:                                              ; preds = %164
  %169 = load i32, ptr %19, align 4, !tbaa !33
  br label %171

170:                                              ; preds = %164
  br label %171

171:                                              ; preds = %170, %168
  %172 = phi i32 [ %169, %168 ], [ 0, %170 ]
  store i32 %172, ptr %20, align 4, !tbaa !33
  br label %173

173:                                              ; preds = %199, %171
  %174 = load i32, ptr %20, align 4, !tbaa !33
  %175 = load i32, ptr %19, align 4, !tbaa !33
  %176 = icmp sle i32 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %206

178:                                              ; preds = %173
  %179 = load double, ptr %18, align 8, !tbaa !31
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = load i32, ptr %19, align 4, !tbaa !33
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds double, ptr %180, i64 %182
  %184 = load double, ptr %183, align 8, !tbaa !31
  %185 = fmul double %179, %184
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = load i32, ptr %20, align 4, !tbaa !33
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %191, i32 0, i32 3
  %193 = load i32, ptr %19, align 4, !tbaa !33
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %21, ptr noundef nonnull align 8 dereferenceable(64) %192, i32 noundef %193)
  %194 = load i32, ptr %20, align 4, !tbaa !33
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %21, i32 noundef %194)
          to label %196 unwind label %202

196:                                              ; preds = %178
  %197 = load double, ptr %195, align 8, !tbaa !31
  %198 = call double @llvm.fmuladd.f64(double %185, double %190, double %197)
  store double %198, ptr %195, align 8, !tbaa !31
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  br label %199

199:                                              ; preds = %196
  %200 = load i32, ptr %20, align 4, !tbaa !33
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %20, align 4, !tbaa !33
  br label %173, !llvm.loop !35

202:                                              ; preds = %178
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %22, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %23, align 4
  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 @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %335

206:                                              ; preds = %177
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %19, align 4, !tbaa !33
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %19, align 4, !tbaa !33
  br label %158, !llvm.loop !37

210:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %263

211:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !33
  br label %212

212:                                              ; preds = %259, %211
  %213 = load i32, ptr %24, align 4, !tbaa !33
  %214 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 1
  %215 = load i32, ptr %214, align 8, !tbaa !9
  %216 = icmp sle i32 %213, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %212
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %262

218:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %219 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 3
  %220 = load i8, ptr %219, align 8, !tbaa !34, !range !16, !noundef !17
  %221 = trunc i8 %220 to i1
  br i1 %221, label %222, label %224

222:                                              ; preds = %218
  %223 = load i32, ptr %24, align 4, !tbaa !33
  br label %225

224:                                              ; preds = %218
  br label %225

225:                                              ; preds = %224, %222
  %226 = phi i32 [ %223, %222 ], [ 0, %224 ]
  store i32 %226, ptr %25, align 4, !tbaa !33
  br label %227

227:                                              ; preds = %251, %225
  %228 = load i32, ptr %25, align 4, !tbaa !33
  %229 = load i32, ptr %24, align 4, !tbaa !33
  %230 = icmp sle i32 %228, %229
  br i1 %230, label %232, label %231

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

232:                                              ; preds = %227
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = load i32, ptr %24, align 4, !tbaa !33
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %233, i64 noundef %235) #5
  %237 = load double, ptr %236, align 8, !tbaa !31
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = load i32, ptr %25, align 4, !tbaa !33
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %238, i64 noundef %240) #5
  %242 = load double, ptr %241, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %243, i32 0, i32 3
  %245 = load i32, ptr %24, align 4, !tbaa !33
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %26, ptr noundef nonnull align 8 dereferenceable(64) %244, i32 noundef %245)
  %246 = load i32, ptr %25, align 4, !tbaa !33
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %26, i32 noundef %246)
          to label %248 unwind label %254

248:                                              ; preds = %232
  %249 = load double, ptr %247, align 8, !tbaa !31
  %250 = call double @llvm.fmuladd.f64(double %237, double %242, double %249)
  store double %250, ptr %247, align 8, !tbaa !31
  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 %251

251:                                              ; preds = %248
  %252 = load i32, ptr %25, align 4, !tbaa !33
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %25, align 4, !tbaa !33
  br label %227, !llvm.loop !38

254:                                              ; preds = %232
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %22, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %23, 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 4, ptr %24) #5
  br label %335

258:                                              ; preds = %231
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %24, align 4, !tbaa !33
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %24, align 4, !tbaa !33
  br label %212, !llvm.loop !39

262:                                              ; preds = %217
  br label %263

263:                                              ; preds = %262, %210
  br label %264

264:                                              ; preds = %263, %138
  %265 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 2
  %266 = load i32, ptr %265, align 4, !tbaa !18
  %267 = icmp sle i32 1, %266
  br i1 %267, label %268, label %334

268:                                              ; preds = %264
  %269 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %40, i32 0, i32 4
  %270 = load i8, ptr %269, align 1, !tbaa !19, !range !16, !noundef !17
  %271 = trunc i8 %270 to i1
  br i1 %271, label %272, label %308

272:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %273, i32 0, i32 1
  %275 = load i32, ptr %274, align 8, !tbaa !20
  %276 = sitofp i32 %275 to double
  %277 = fdiv double 1.000000e+00, %276
  store double %277, ptr %27, align 8, !tbaa !31
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %278, i32 0, i32 4
  %280 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %279) #5
  %281 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %280, ptr %281, align 8
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %282, i32 0, i32 4
  %284 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %283) #5
  %285 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %284, ptr %285, align 8
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %286, i32 0, i32 2
  %288 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %287) #5
  %289 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %288, ptr %289, align 8
  %290 = load ptr, ptr %7, align 8, !tbaa !5
  %291 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %290, i32 0, i32 2
  %292 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %291) #5
  %293 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %292, ptr %293, align 8
  %294 = getelementptr inbounds %class.anon.8, ptr %32, i32 0, i32 0
  %295 = load double, ptr %27, align 8, !tbaa !31
  store double %295, ptr %294, align 8, !tbaa !40
  %296 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8
  %298 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8
  %300 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8
  %302 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8
  %304 = getelementptr inbounds %class.anon.8, ptr %32, i32 0, i32 0
  %305 = load double, ptr %304, align 8
  %306 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_S6_ZNK4sptk22StatisticsAccumulation3RunERKS5_PNS8_6BufferEE3$_0ET1_T_SF_T0_SE_T2_"(ptr %297, ptr %299, ptr %301, ptr %303, double %305)
  %307 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %306, ptr %307, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %333

308:                                              ; preds = %268
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %309) #5
  %311 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %34, i32 0, i32 0
  store ptr %310, ptr %311, align 8
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %312) #5
  %314 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %35, i32 0, i32 0
  store ptr %313, ptr %314, align 8
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %315, i32 0, i32 2
  %317 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %316) #5
  %318 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %317, ptr %318, align 8
  %319 = load ptr, ptr %7, align 8, !tbaa !5
  %320 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %319, i32 0, i32 2
  %321 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %320) #5
  %322 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %321, ptr %322, align 8
  %323 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %34, i32 0, i32 0
  %324 = load ptr, ptr %323, align 8
  %325 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %35, i32 0, i32 0
  %326 = load ptr, ptr %325, align 8
  %327 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %328 = load ptr, ptr %327, align 8
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  %330 = load ptr, ptr %329, align 8
  %331 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St4plusIdEET1_T_SD_T0_SC_T2_(ptr %324, ptr %326, ptr %328, ptr %330)
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  br label %333

333:                                              ; preds = %308, %272
  br label %334

334:                                              ; preds = %333, %264
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %336

335:                                              ; preds = %254, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %338

336:                                              ; preds = %334, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %337 = load i1, ptr %4, align 1
  ret i1 %337

338:                                              ; preds = %335
  %339 = load ptr, ptr %22, align 8
  %340 = load i32, ptr %23, align 4
  %341 = insertvalue { ptr, i32 } poison, ptr %339, 0
  %342 = insertvalue { ptr, i32 } %341, i32 %340, 1
  resume { ptr, i32 } %342
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St5minusIdEET1_T_SD_T0_SC_T2_(ptr, ptr, ptr, ptr) #1

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_S6_ZNK4sptk22StatisticsAccumulation3RunERKS5_PNS8_6BufferEE3$_0ET1_T_SF_T0_SE_T2_"(ptr, ptr, ptr, ptr, double) #1

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St4plusIdEET1_T_SD_T0_SC_T2_(ptr, ptr, ptr, ptr) #1

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

!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 = !{!"_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 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !12, i64 18}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!10, !11, i64 12}
!19 = !{!10, !12, i64 17}
!20 = !{!21, !11, i64 8}
!21 = !{!"_ZTSN4sptk22StatisticsAccumulation6BufferE", !11, i64 8, !22, i64 16, !26, i64 40, !22, i64 104}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN4sptk15SymmetricMatrixE", !11, i64 8, !22, i64 16, !27, i64 40}
!27 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !7, i64 0}
!33 = !{!11, !11, i64 0}
!34 = !{!10, !12, i64 16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !36}
!40 = !{!41, !32, i64 0}
!41 = !{!"_ZTSZNK4sptk22StatisticsAccumulation3RunERKSt6vectorIdSaIdEEPNS0_6BufferEE3$_0", !32, i64 0}


; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) 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 #0 align 2

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

; 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 #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation3RunERKSt6vectorIdSaIdEEPNS0_6BufferE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(19) %0, ptr noundef nonnull align 8 dereferenceable(24) %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 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add nsw i32 %7, 1
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds i8, ptr %0, i64 18
  %11 = load i8, ptr %10, align 2, !tbaa !11, !range !12, !noundef !13
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %143

13:                                               ; preds = %3
  %14 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %15 = icmp ne i64 %14, %9
  %16 = icmp eq ptr %2, null
  %or.cond = or i1 %16, %15
  br i1 %or.cond, label %143, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 12
  %19 = load i32, ptr %18, align 4, !tbaa !14
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %21, label %.thread

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %2, i64 16
  %23 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %.not = icmp eq i64 %23, %9
  br i1 %.not, label %25, label %24

24:                                               ; preds = %21
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %9)
  br label %25

25:                                               ; preds = %24, %21
  %.pr = load i32, ptr %18, align 4, !tbaa !14
  %26 = icmp sgt i32 %.pr, 1
  br i1 %26, label %27, label %.thread

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %2, i64 40
  %29 = tail call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %28)
  %.not89 = icmp eq i32 %29, %8
  br i1 %.not89, label %.thread, label %30

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

.thread:                                          ; preds = %17, %30, %27, %25
  %31 = getelementptr inbounds i8, ptr %0, i64 17
  %32 = load i8, ptr %31, align 1, !tbaa !15, !range !12, !noundef !13
  %33 = trunc nuw i8 %32 to i1
  br i1 %33, label %34, label %38

34:                                               ; preds = %.thread
  %35 = getelementptr inbounds i8, ptr %2, i64 104
  %36 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #5
  %.not90 = icmp eq i64 %36, %9
  br i1 %.not90, label %38, label %37

37:                                               ; preds = %34
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %9)
  br label %38

38:                                               ; preds = %37, %34, %.thread
  %39 = getelementptr inbounds i8, ptr %2, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !16
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %39, align 8, !tbaa !16
  %42 = load i32, ptr %18, align 4, !tbaa !14
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %44, label %55

44:                                               ; preds = %38
  %45 = load i8, ptr %31, align 1, !tbaa !15, !range !12, !noundef !13
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %55

47:                                               ; preds = %44
  %48 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %49 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %50 = getelementptr inbounds i8, ptr %2, i64 16
  %51 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
  %52 = getelementptr inbounds i8, ptr %2, i64 104
  %53 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #5
  %54 = tail call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St5minusIdEET1_T_SD_T0_SC_T2_(ptr %48, ptr %49, ptr %51, ptr %53)
  br label %55

55:                                               ; preds = %47, %44, %38
  %56 = getelementptr inbounds i8, ptr %2, i64 104
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef 0) #5
  %58 = load i32, ptr %18, align 4, !tbaa !14
  %59 = icmp sgt i32 %58, 1
  br i1 %59, label %60, label %119

60:                                               ; preds = %55
  %61 = load i8, ptr %31, align 1, !tbaa !15, !range !12, !noundef !13
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %66, label %.preheader

.preheader:                                       ; preds = %60
  %63 = load i32, ptr %6, align 8, !tbaa !5
  %.not91100 = icmp slt i32 %63, 0
  br i1 %.not91100, label %thread-pre-split96, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %64 = getelementptr inbounds i8, ptr %0, i64 16
  %65 = getelementptr inbounds i8, ptr %2, i64 40
  br label %97

66:                                               ; preds = %60
  %67 = load i32, ptr %39, align 8, !tbaa !16
  %68 = sitofp i32 %67 to double
  %69 = fadd double %68, -1.000000e+00
  %70 = fdiv double %69, %68
  %71 = load i32, ptr %6, align 8, !tbaa !5
  %.not93103 = icmp slt i32 %71, 0
  br i1 %.not93103, label %thread-pre-split96, label %.lr.ph105

.lr.ph105:                                        ; preds = %66
  %72 = getelementptr inbounds i8, ptr %0, i64 16
  %73 = getelementptr inbounds i8, ptr %2, i64 40
  br label %74

74:                                               ; preds = %.lr.ph105, %82
  %indvars.iv117 = phi i64 [ 0, %.lr.ph105 ], [ %indvars.iv.next118, %82 ]
  %75 = load i8, ptr %72, align 8, !tbaa !28, !range !12, !noundef !13
  %76 = trunc nuw i8 %75 to i1
  %77 = trunc nuw nsw i64 %indvars.iv117 to i32
  %78 = and i64 %indvars.iv117, 4294967295
  %79 = getelementptr inbounds double, ptr %57, i64 %indvars.iv117
  %80 = select i1 %76, i64 %78, i64 0
  %81 = add nuw nsw i64 %indvars.iv117, 1
  %wide.trip.count115 = and i64 %81, 4294967295
  br label %85

82:                                               ; preds = %91
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %83 = load i32, ptr %6, align 8, !tbaa !5
  %84 = sext i32 %83 to i64
  %.not93.not = icmp slt i64 %indvars.iv117, %84
  br i1 %.not93.not, label %74, label %thread-pre-split96, !llvm.loop !29

85:                                               ; preds = %74, %91
  %indvars.iv111 = phi i64 [ %80, %74 ], [ %indvars.iv.next112, %91 ]
  %86 = load double, ptr %79, align 8, !tbaa !31
  %87 = getelementptr inbounds double, ptr %57, i64 %indvars.iv111
  %88 = load double, ptr %87, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %4, ptr noundef nonnull align 8 dereferenceable(64) %73, i32 noundef %77)
  %89 = trunc nuw nsw i64 %indvars.iv111 to i32
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %89)
          to label %91 unwind label %95

91:                                               ; preds = %85
  %92 = fmul double %70, %86
  %93 = load double, ptr %90, align 8, !tbaa !31
  %94 = call double @llvm.fmuladd.f64(double %92, double %88, double %93)
  store double %94, ptr %90, align 8, !tbaa !31
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count115
  br i1 %exitcond116.not, label %82, label %85, !llvm.loop !33

95:                                               ; preds = %85
  %96 = landingpad { ptr, i32 }
          cleanup
  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 %142

97:                                               ; preds = %.lr.ph, %104
  %indvars.iv108 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next109, %104 ]
  %98 = load i8, ptr %64, align 8, !tbaa !28, !range !12, !noundef !13
  %99 = trunc nuw i8 %98 to i1
  %100 = trunc nuw nsw i64 %indvars.iv108 to i32
  %101 = and i64 %indvars.iv108, 4294967295
  %102 = select i1 %99, i64 %101, i64 0
  %103 = add nuw nsw i64 %indvars.iv108, 1
  %wide.trip.count = and i64 %103, 4294967295
  br label %107

104:                                              ; preds = %114
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %105 = load i32, ptr %6, align 8, !tbaa !5
  %106 = sext i32 %105 to i64
  %.not91.not = icmp slt i64 %indvars.iv108, %106
  br i1 %.not91.not, label %97, label %thread-pre-split96, !llvm.loop !34

107:                                              ; preds = %97, %114
  %indvars.iv = phi i64 [ %102, %97 ], [ %indvars.iv.next, %114 ]
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv108) #5
  %109 = load double, ptr %108, align 8, !tbaa !31
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %111 = load double, ptr %110, align 8, !tbaa !31
  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) %65, i32 noundef %100)
  %112 = trunc nuw nsw i64 %indvars.iv to i32
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %112)
          to label %114 unwind label %117

114:                                              ; preds = %107
  %115 = load double, ptr %113, align 8, !tbaa !31
  %116 = call double @llvm.fmuladd.f64(double %109, double %111, double %115)
  store double %116, ptr %113, align 8, !tbaa !31
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %104, label %107, !llvm.loop !35

117:                                              ; preds = %107
  %118 = 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 %142

thread-pre-split96:                               ; preds = %104, %82, %.preheader, %66
  %.pr97 = load i32, ptr %18, align 4, !tbaa !14
  br label %119

119:                                              ; preds = %thread-pre-split96, %55
  %120 = phi i32 [ %.pr97, %thread-pre-split96 ], [ %58, %55 ]
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %143

122:                                              ; preds = %119
  %123 = load i8, ptr %31, align 1, !tbaa !15, !range !12, !noundef !13
  %124 = trunc nuw i8 %123 to i1
  br i1 %124, label %125, label %135

125:                                              ; preds = %122
  %126 = load i32, ptr %39, align 8, !tbaa !16
  %127 = sitofp i32 %126 to double
  %128 = fdiv double 1.000000e+00, %127
  %129 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  %130 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  %131 = getelementptr inbounds i8, ptr %2, i64 16
  %132 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #5
  %133 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #5
  %134 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_S6_ZNK4sptk22StatisticsAccumulation3RunERKS5_PNS8_6BufferEE3$_0ET1_T_SF_T0_SE_T2_"(ptr %129, ptr %130, ptr %132, ptr %133, double %128)
  br label %143

135:                                              ; preds = %122
  %136 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %137 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %138 = getelementptr inbounds i8, ptr %2, i64 16
  %139 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #5
  %140 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #5
  %141 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St4plusIdEET1_T_SD_T0_SC_T2_(ptr %136, ptr %137, ptr %139, ptr %140)
  br label %143

142:                                              ; preds = %117, %95
  %.pn = phi { ptr, i32 } [ %96, %95 ], [ %118, %117 ]
  resume { ptr, i32 } %.pn

143:                                              ; preds = %119, %135, %125, %3, %13
  %.0 = phi i1 [ false, %13 ], [ false, %3 ], [ true, %125 ], [ true, %135 ], [ true, %119 ]
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St5minusIdEET1_T_SD_T0_SC_T2_(ptr, ptr, ptr, ptr) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_S6_ZNK4sptk22StatisticsAccumulation3RunERKS5_PNS8_6BufferEE3$_0ET1_T_SF_T0_SE_T2_"(ptr, ptr, ptr, ptr, double) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St4plusIdEET1_T_SD_T0_SC_T2_(ptr, ptr, ptr, ptr) local_unnamed_addr #1

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

!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 = !{!"_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 = !{!6, !10, i64 18}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 12}
!15 = !{!6, !10, i64 17}
!16 = !{!17, !7, i64 8}
!17 = !{!"_ZTSN4sptk22StatisticsAccumulation6BufferE", !7, i64 8, !18, i64 16, !23, i64 40, !18, i64 104}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!22 = !{!"any pointer", !8, i64 0}
!23 = !{!"_ZTSN4sptk15SymmetricMatrixE", !7, i64 8, !18, 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", !22, i64 0, !22, i64 8, !22, i64 16}
!28 = !{!6, !10, i64 16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !8, i64 0}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}
!35 = distinct !{!35, !30}


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