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

declare noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #1

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #1

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 ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #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) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation5MergeEiRKSt6vectorIdSaIdEERKNS_15SymmetricMatrixEPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(19) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef %4) #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"struct.std::minus", align 1
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %37 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %38 = alloca double, align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %class.anon.9, align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %"struct.std::plus", align 1
  %50 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8
  %52 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 5
  %53 = load i8, ptr %52, align 2, !tbaa !11, !range !14, !noundef !15
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %61

55:                                               ; preds = %5
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = icmp sle i32 %56, 0
  br i1 %57, label %61, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = icmp eq ptr null, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %58, %55, %5
  store i1 false, ptr %6, align 1
  br label %380

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %63 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 1
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  store i64 %66, ptr %12, align 8, !tbaa !17
  %67 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 2
  %68 = load i32, ptr %67, align 4, !tbaa !19
  %69 = icmp sle i32 1, %68
  br i1 %69, label %70, label %76

70:                                               ; preds = %62
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #4
  %73 = load i64, ptr %12, align 8, !tbaa !17
  %74 = icmp ne i64 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %379

76:                                               ; preds = %70, %62
  %77 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !19
  %79 = icmp sle i32 2, %78
  br i1 %79, label %80, label %87

80:                                               ; preds = %76
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %81)
  %83 = load i64, ptr %12, align 8, !tbaa !17
  %84 = trunc i64 %83 to i32
  %85 = icmp ne i32 %82, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %80
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %379

87:                                               ; preds = %80, %76
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !20
  %91 = icmp eq i32 0, %90
  br i1 %91, label %92, label %112

92:                                               ; preds = %87
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %94, i32 0, i32 1
  store i32 %93, ptr %95, align 8, !tbaa !20
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #4
  br i1 %97, label %103, label %98

98:                                               ; preds = %92
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %100, i32 0, i32 2
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 8 dereferenceable(24) %99)
  br label %103

103:                                              ; preds = %98, %92
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix5EmptyEv(ptr noundef nonnull align 8 dereferenceable(64) %104)
  br i1 %105, label %111, label %106

106:                                              ; preds = %103
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %108, i32 0, i32 3
  %110 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %109, ptr noundef nonnull align 8 dereferenceable(64) %107)
  br label %111

111:                                              ; preds = %106, %103
  store i1 true, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %379

112:                                              ; preds = %87
  %113 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 4
  %114 = load i8, ptr %113, align 1, !tbaa !31, !range !14, !noundef !15
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %152

116:                                              ; preds = %112
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %117, i32 0, i32 4
  %119 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #4
  %120 = load i64, ptr %12, align 8, !tbaa !17
  %121 = icmp ne i64 %119, %120
  br i1 %121, label %122, label %126

122:                                              ; preds = %116
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %123, i32 0, i32 4
  %125 = load i64, ptr %12, align 8, !tbaa !17
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %125)
  br label %126

126:                                              ; preds = %122, %116
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %127, i32 0, i32 2
  %129 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #4
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %131, i32 0, i32 2
  %133 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #4
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #4
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %16, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %138, i32 0, i32 4
  %140 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #4
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %140, ptr %141, align 8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %16, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_St5minusIdEET1_T_SD_T0_SC_T2_(ptr %143, ptr %145, ptr %147, ptr %149)
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  br label %152

152:                                              ; preds = %126, %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %153, i32 0, i32 4
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef 0) #4
  store ptr %155, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 8, !tbaa !20
  %159 = sitofp i32 %158 to double
  store double %159, ptr %21, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = sitofp i32 %160 to double
  store double %161, ptr %22, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %162 = load double, ptr %21, align 8, !tbaa !32
  %163 = load double, ptr %22, align 8, !tbaa !32
  %164 = fadd double %162, %163
  store double %164, ptr %23, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %165 = load double, ptr %21, align 8, !tbaa !32
  %166 = load double, ptr %22, align 8, !tbaa !32
  %167 = fmul double %165, %166
  store double %167, ptr %24, align 8, !tbaa !32
  %168 = load i32, ptr %8, align 4, !tbaa !9
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 8, !tbaa !20
  %172 = add nsw i32 %171, %168
  store i32 %172, ptr %170, align 8, !tbaa !20
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = call noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix5EmptyEv(ptr noundef nonnull align 8 dereferenceable(64) %173)
  br i1 %174, label %311, label %175

175:                                              ; preds = %152
  %176 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 4
  %177 = load i8, ptr %176, align 1, !tbaa !31, !range !14, !noundef !15
  %178 = trunc i8 %177 to i1
  br i1 %178, label %179, label %251

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %180 = load double, ptr %24, align 8, !tbaa !32
  %181 = load double, ptr %23, align 8, !tbaa !32
  %182 = fdiv double %180, %181
  store double %182, ptr %25, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %247, %179
  %184 = load i32, ptr %26, align 4, !tbaa !9
  %185 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 1
  %186 = load i32, ptr %185, align 8, !tbaa !16
  %187 = icmp sle i32 %184, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %183
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %250

189:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %190 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 3
  %191 = load i8, ptr %190, align 8, !tbaa !34, !range !14, !noundef !15
  %192 = trunc i8 %191 to i1
  br i1 %192, label %193, label %195

193:                                              ; preds = %189
  %194 = load i32, ptr %26, align 4, !tbaa !9
  br label %196

195:                                              ; preds = %189
  br label %196

196:                                              ; preds = %195, %193
  %197 = phi i32 [ %194, %193 ], [ 0, %195 ]
  store i32 %197, ptr %27, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %234, %196
  %199 = load i32, ptr %27, align 4, !tbaa !9
  %200 = load i32, ptr %26, align 4, !tbaa !9
  %201 = icmp sle i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %246

203:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #4
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load i32, ptr %26, align 4, !tbaa !9
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %29, ptr noundef nonnull align 8 dereferenceable(64) %204, i32 noundef %205)
  %206 = load i32, ptr %27, align 4, !tbaa !9
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %29, i32 noundef %206)
          to label %208 unwind label %237

208:                                              ; preds = %203
  %209 = load double, ptr %207, align 8, !tbaa !32
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %29) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  store double %209, ptr %28, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %210 = load double, ptr %25, align 8, !tbaa !32
  %211 = load ptr, ptr %20, align 8, !tbaa !5
  %212 = load i32, ptr %26, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %211, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !32
  %216 = fmul double %210, %215
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = load i32, ptr %27, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !32
  %222 = fmul double %216, %221
  store double %222, ptr %32, align 8, !tbaa !32
  %223 = load double, ptr %28, align 8, !tbaa !32
  %224 = load double, ptr %32, align 8, !tbaa !32
  %225 = fadd double %223, %224
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #4
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %226, i32 0, i32 3
  %228 = load i32, ptr %26, align 4, !tbaa !9
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %33, ptr noundef nonnull align 8 dereferenceable(64) %227, i32 noundef %228)
  %229 = load i32, ptr %27, align 4, !tbaa !9
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %33, i32 noundef %229)
          to label %231 unwind label %241

231:                                              ; preds = %208
  %232 = load double, ptr %230, align 8, !tbaa !32
  %233 = fadd double %232, %225
  store double %233, ptr %230, align 8, !tbaa !32
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %33) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  br label %234

234:                                              ; preds = %231
  %235 = load i32, ptr %27, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %27, align 4, !tbaa !9
  br label %198, !llvm.loop !35

237:                                              ; preds = %203
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %30, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %31, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %29) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  br label %245

241:                                              ; preds = %208
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %30, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %31, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %33) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  br label %245

245:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %378

246:                                              ; preds = %202
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %26, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %26, align 4, !tbaa !9
  br label %183, !llvm.loop !37

250:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %310

251:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %306, %251
  %253 = load i32, ptr %34, align 4, !tbaa !9
  %254 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 1
  %255 = load i32, ptr %254, align 8, !tbaa !16
  %256 = icmp sle i32 %253, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %252
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  br label %309

258:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  %259 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 3
  %260 = load i8, ptr %259, align 8, !tbaa !34, !range !14, !noundef !15
  %261 = trunc i8 %260 to i1
  br i1 %261, label %262, label %264

262:                                              ; preds = %258
  %263 = load i32, ptr %34, align 4, !tbaa !9
  br label %265

264:                                              ; preds = %258
  br label %265

265:                                              ; preds = %264, %262
  %266 = phi i32 [ %263, %262 ], [ 0, %264 ]
  store i32 %266, ptr %35, align 4, !tbaa !9
  br label %267

267:                                              ; preds = %288, %265
  %268 = load i32, ptr %35, align 4, !tbaa !9
  %269 = load i32, ptr %34, align 4, !tbaa !9
  %270 = icmp sle i32 %268, %269
  br i1 %270, label %272, label %271

271:                                              ; preds = %267
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %305

272:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #4
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  %274 = load i32, ptr %34, align 4, !tbaa !9
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %36, ptr noundef nonnull align 8 dereferenceable(64) %273, i32 noundef %274)
  %275 = load i32, ptr %35, align 4, !tbaa !9
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %36, i32 noundef %275)
          to label %277 unwind label %291

277:                                              ; preds = %272
  %278 = load double, ptr %276, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #4
  %279 = load ptr, ptr %11, align 8, !tbaa !5
  %280 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %279, i32 0, i32 3
  %281 = load i32, ptr %34, align 4, !tbaa !9
  invoke void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %37, ptr noundef nonnull align 8 dereferenceable(64) %280, i32 noundef %281)
          to label %282 unwind label %295

282:                                              ; preds = %277
  %283 = load i32, ptr %35, align 4, !tbaa !9
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %37, i32 noundef %283)
          to label %285 unwind label %299

285:                                              ; preds = %282
  %286 = load double, ptr %284, align 8, !tbaa !32
  %287 = fadd double %286, %278
  store double %287, ptr %284, align 8, !tbaa !32
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %37) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %36) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #4
  br label %288

288:                                              ; preds = %285
  %289 = load i32, ptr %35, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %35, align 4, !tbaa !9
  br label %267, !llvm.loop !38

291:                                              ; preds = %272
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %30, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %31, align 4
  br label %304

295:                                              ; preds = %277
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %30, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %31, align 4
  br label %303

299:                                              ; preds = %282
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %30, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %31, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %37) #4
  br label %303

303:                                              ; preds = %299, %295
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #4
  br label %304

304:                                              ; preds = %303, %291
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %36) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  br label %378

305:                                              ; preds = %271
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %34, align 4, !tbaa !9
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %34, align 4, !tbaa !9
  br label %252, !llvm.loop !39

309:                                              ; preds = %257
  br label %310

310:                                              ; preds = %309, %250
  br label %311

311:                                              ; preds = %310, %152
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  %313 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %312) #4
  br i1 %313, label %377, label %314

314:                                              ; preds = %311
  %315 = getelementptr inbounds %"class.sptk::StatisticsAccumulation", ptr %51, i32 0, i32 4
  %316 = load i8, ptr %315, align 1, !tbaa !31, !range !14, !noundef !15
  %317 = trunc i8 %316 to i1
  br i1 %317, label %318, label %351

318:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %319 = load double, ptr %21, align 8, !tbaa !32
  %320 = load double, ptr %23, align 8, !tbaa !32
  %321 = fdiv double %319, %320
  store double %321, ptr %38, align 8, !tbaa !32
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %322, i32 0, i32 4
  %324 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %323) #4
  %325 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %324, ptr %325, align 8
  %326 = load ptr, ptr %11, align 8, !tbaa !5
  %327 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %326, i32 0, i32 4
  %328 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #4
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %330) #4
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %41, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  %333 = load ptr, ptr %11, align 8, !tbaa !5
  %334 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %333, i32 0, i32 2
  %335 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #4
  %336 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %335, ptr %336, align 8
  %337 = getelementptr inbounds %class.anon.9, ptr %43, i32 0, i32 0
  %338 = load double, ptr %38, align 8, !tbaa !32
  store double %338, ptr %337, align 8, !tbaa !40
  %339 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  %340 = load ptr, ptr %339, align 8
  %341 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %342 = load ptr, ptr %341, align 8
  %343 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %41, i32 0, i32 0
  %344 = load ptr, ptr %343, align 8
  %345 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  %346 = load ptr, ptr %345, align 8
  %347 = getelementptr inbounds %class.anon.9, ptr %43, i32 0, i32 0
  %348 = load double, ptr %347, align 8
  %349 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZNK4sptk22StatisticsAccumulation5MergeEiRKS5_RKNSA_15SymmetricMatrixEPNSB_6BufferEE3$_0ET1_T_SL_T0_SK_T2_"(ptr %340, ptr %342, ptr %344, ptr %346, double %348)
  %350 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %349, ptr %350, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  br label %376

351:                                              ; preds = %314
  %352 = load ptr, ptr %9, align 8, !tbaa !5
  %353 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %352) #4
  %354 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %45, i32 0, i32 0
  store ptr %353, ptr %354, align 8
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  %356 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %355) #4
  %357 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %46, i32 0, i32 0
  store ptr %356, ptr %357, align 8
  %358 = load ptr, ptr %11, align 8, !tbaa !5
  %359 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %358, i32 0, i32 2
  %360 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %359) #4
  %361 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %47, i32 0, i32 0
  store ptr %360, ptr %361, align 8
  %362 = load ptr, ptr %11, align 8, !tbaa !5
  %363 = getelementptr inbounds %"class.sptk::StatisticsAccumulation::Buffer", ptr %362, i32 0, i32 2
  %364 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %363) #4
  %365 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %364, ptr %365, align 8
  %366 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %45, i32 0, i32 0
  %367 = load ptr, ptr %366, align 8
  %368 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %46, i32 0, i32 0
  %369 = load ptr, ptr %368, align 8
  %370 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %47, i32 0, i32 0
  %371 = load ptr, ptr %370, align 8
  %372 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  %373 = load ptr, ptr %372, align 8
  %374 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St4plusIdEET1_T_SD_T0_SC_T2_(ptr %367, ptr %369, ptr %371, ptr %373)
  %375 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %50, i32 0, i32 0
  store ptr %374, ptr %375, align 8
  br label %376

376:                                              ; preds = %351, %318
  br label %377

377:                                              ; preds = %376, %311
  store i1 true, ptr %6, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %379

378:                                              ; preds = %304, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %382

379:                                              ; preds = %377, %111, %86, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %380

380:                                              ; preds = %379, %61
  %381 = load i1, ptr %6, align 1
  ret i1 %381

382:                                              ; preds = %378
  %383 = load ptr, ptr %30, align 8
  %384 = load i32, ptr %31, align 4
  %385 = insertvalue { ptr, i32 } poison, ptr %383, 0
  %386 = insertvalue { ptr, i32 } %385, i32 %384, 1
  resume { ptr, i32 } %386
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_St5minusIdEET1_T_SD_T0_SC_T2_(ptr, ptr, ptr, ptr) #2

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZNK4sptk22StatisticsAccumulation5MergeEiRKS5_RKNSA_15SymmetricMatrixEPNSB_6BufferEE3$_0ET1_T_SL_T0_SK_T2_"(ptr, ptr, ptr, ptr, double) #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 18}
!12 = !{!"_ZTSN4sptk22StatisticsAccumulationE", !10, i64 8, !10, i64 12, !13, i64 16, !13, i64 17, !13, i64 18}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!12, !10, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!12, !10, i64 12}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTSN4sptk22StatisticsAccumulation6BufferE", !10, 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", !10, 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 = !{!12, !13, i64 17}
!32 = !{!33, !33, i64 0}
!33 = !{!"double", !7, i64 0}
!34 = !{!12, !13, i64 16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !36}
!40 = !{!41, !33, i64 0}
!41 = !{!"_ZTSZNK4sptk22StatisticsAccumulation5MergeEiRKSt6vectorIdSaIdEERKNS_15SymmetricMatrixEPNS0_6BufferEE3$_0", !33, 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #1

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #1

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 ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #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 #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation5MergeEiRKSt6vectorIdSaIdEERKNS_15SymmetricMatrixEPNS0_6BufferE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(19) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef %4) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %7 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %8 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %9 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 18
  %11 = load i8, ptr %10, align 2, !tbaa !5, !range !11, !noundef !12
  %12 = trunc nuw i8 %11 to i1
  %.not = xor i1 %12, true
  %13 = icmp slt i32 %1, 1
  %or.cond = or i1 %13, %.not
  %14 = icmp eq ptr %4, null
  %or.cond3 = or i1 %14, %or.cond
  br i1 %or.cond3, label %153, label %15

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = add nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %.thread

23:                                               ; preds = %15
  %24 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %.not112 = icmp eq i64 %24, %19
  br i1 %.not112, label %25, label %153

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

27:                                               ; preds = %25
  %28 = tail call noundef i32 @_ZNK4sptk15SymmetricMatrix15GetNumDimensionEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
  %.not113 = icmp eq i32 %28, %18
  br i1 %.not113, label %.thread, label %153

.thread:                                          ; preds = %15, %27, %25
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !15
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %42

32:                                               ; preds = %.thread
  store i32 %1, ptr %29, align 8, !tbaa !15
  %33 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  br i1 %33, label %37, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %4, i64 16
  %36 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br label %37

37:                                               ; preds = %34, %32
  %38 = tail call noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix5EmptyEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
  br i1 %38, label %153, label %39

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %4, i64 40
  %41 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %40, ptr noundef nonnull align 8 dereferenceable(64) %3)
  br label %153

42:                                               ; preds = %.thread
  %43 = getelementptr inbounds i8, ptr %0, i64 17
  %44 = load i8, ptr %43, align 1, !tbaa !27, !range !11, !noundef !12
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %46, label %57

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %4, i64 104
  %48 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #4
  %.not114 = icmp eq i64 %48, %19
  br i1 %.not114, label %50, label %49

49:                                               ; preds = %46
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %19)
  br label %50

50:                                               ; preds = %49, %46
  %51 = getelementptr inbounds i8, ptr %4, i64 16
  %52 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  %53 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  %54 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %55 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #4
  %56 = tail call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_St5minusIdEET1_T_SD_T0_SC_T2_(ptr %52, ptr %53, ptr %54, ptr %55)
  br label %57

57:                                               ; preds = %50, %42
  %58 = getelementptr inbounds i8, ptr %4, i64 104
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef 0) #4
  %60 = load i32, ptr %29, align 8, !tbaa !15
  %61 = sitofp i32 %60 to double
  %62 = uitofp nneg i32 %1 to double
  %63 = fadd double %62, %61
  %64 = fmul double %62, %61
  %65 = add nsw i32 %60, %1
  store i32 %65, ptr %29, align 8, !tbaa !15
  %66 = tail call noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix5EmptyEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
  br i1 %66, label %.loopexit, label %67

67:                                               ; preds = %57
  %68 = load i8, ptr %43, align 1, !tbaa !27, !range !11, !noundef !12
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %73, label %.preheader

.preheader:                                       ; preds = %67
  %70 = load i32, ptr %16, align 8, !tbaa !13
  %.not115126 = icmp slt i32 %70, 0
  br i1 %.not115126, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %71 = getelementptr inbounds i8, ptr %0, i64 16
  %72 = getelementptr inbounds i8, ptr %4, i64 40
  br label %108

73:                                               ; preds = %67
  %74 = fdiv double %64, %63
  %75 = load i32, ptr %16, align 8, !tbaa !13
  %.not119129 = icmp slt i32 %75, 0
  br i1 %.not119129, label %.loopexit, label %.lr.ph131

.lr.ph131:                                        ; preds = %73
  %76 = getelementptr inbounds i8, ptr %0, i64 16
  %77 = getelementptr inbounds i8, ptr %4, i64 40
  br label %78

78:                                               ; preds = %.lr.ph131, %86
  %indvars.iv136 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next137, %86 ]
  %79 = load i8, ptr %76, align 8, !tbaa !28, !range !11, !noundef !12
  %80 = trunc nuw i8 %79 to i1
  %81 = trunc nuw nsw i64 %indvars.iv136 to i32
  %82 = and i64 %indvars.iv136, 4294967295
  %83 = getelementptr inbounds double, ptr %59, i64 %indvars.iv136
  %84 = select i1 %80, i64 %82, i64 0
  %85 = add nuw nsw i64 %indvars.iv136, 1
  %wide.trip.count = and i64 %85, 4294967295
  br label %89

86:                                               ; preds = %98
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %87 = load i32, ptr %16, align 8, !tbaa !13
  %88 = sext i32 %87 to i64
  %.not119.not = icmp slt i64 %indvars.iv136, %88
  br i1 %.not119.not, label %78, label %.loopexit, !llvm.loop !29

89:                                               ; preds = %78, %98
  %indvars.iv = phi i64 [ %84, %78 ], [ %indvars.iv.next, %98 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %6, ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef %81)
  %90 = trunc nuw nsw i64 %indvars.iv to i32
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %90)
          to label %92 unwind label %104

92:                                               ; preds = %89
  %93 = load double, ptr %91, align 8, !tbaa !31
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  %94 = load double, ptr %83, align 8, !tbaa !31
  %95 = getelementptr inbounds double, ptr %59, i64 %indvars.iv
  %96 = load double, ptr %95, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %7, ptr noundef nonnull align 8 dereferenceable(64) %77, i32 noundef %81)
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef %90)
          to label %98 unwind label %106

98:                                               ; preds = %92
  %99 = fmul double %74, %94
  %100 = fmul double %99, %96
  %101 = fadd double %93, %100
  %102 = load double, ptr %97, align 8, !tbaa !31
  %103 = fadd double %101, %102
  store double %103, ptr %97, align 8, !tbaa !31
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond135.not, label %86, label %89, !llvm.loop !33

104:                                              ; preds = %89
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %152

106:                                              ; preds = %92
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %152

108:                                              ; preds = %.lr.ph, %113
  %.0107127 = phi i32 [ 0, %.lr.ph ], [ %112, %113 ]
  %109 = load i8, ptr %71, align 8, !tbaa !28, !range !11, !noundef !12
  %110 = trunc nuw i8 %109 to i1
  %111 = select i1 %110, i32 %.0107127, i32 0
  %112 = add nuw nsw i32 %.0107127, 1
  br label %115

113:                                              ; preds = %121
  %114 = load i32, ptr %16, align 8, !tbaa !13
  %.not115.not = icmp slt i32 %.0107127, %114
  br i1 %.not115.not, label %108, label %.loopexit, !llvm.loop !34

115:                                              ; preds = %108, %121
  %.0108125 = phi i32 [ %111, %108 ], [ %124, %121 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %8, ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef %.0107127)
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef %.0108125)
          to label %117 unwind label %125

117:                                              ; preds = %115
  %118 = load double, ptr %116, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  invoke void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %9, ptr noundef nonnull align 8 dereferenceable(64) %72, i32 noundef %.0107127)
          to label %119 unwind label %127

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %9, i32 noundef %.0108125)
          to label %121 unwind label %129

121:                                              ; preds = %119
  %122 = load double, ptr %120, align 8, !tbaa !31
  %123 = fadd double %118, %122
  store double %123, ptr %120, align 8, !tbaa !31
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  %124 = add nuw i32 %.0108125, 1
  %exitcond.not = icmp eq i32 %.0108125, %.0107127
  br i1 %exitcond.not, label %113, label %115, !llvm.loop !35

125:                                              ; preds = %115
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %132

127:                                              ; preds = %117
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %119
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #4
  br label %131

131:                                              ; preds = %129, %127
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  br label %132

132:                                              ; preds = %131, %125
  %.pn.pn = phi { ptr, i32 } [ %.pn, %131 ], [ %126, %125 ]
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  br label %152

.loopexit:                                        ; preds = %113, %86, %.preheader, %73, %57
  %133 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  br i1 %133, label %153, label %134

134:                                              ; preds = %.loopexit
  %135 = load i8, ptr %43, align 1, !tbaa !27, !range !11, !noundef !12
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %137, label %145

137:                                              ; preds = %134
  %138 = fdiv double %61, %63
  %139 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #4
  %140 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #4
  %141 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %142 = getelementptr inbounds i8, ptr %4, i64 16
  %143 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #4
  %144 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZNK4sptk22StatisticsAccumulation5MergeEiRKS5_RKNSA_15SymmetricMatrixEPNSB_6BufferEE3$_0ET1_T_SL_T0_SK_T2_"(ptr %139, ptr %140, ptr %141, ptr %143, double %138)
  br label %153

145:                                              ; preds = %134
  %146 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %147 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %148 = getelementptr inbounds i8, ptr %4, i64 16
  %149 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #4
  %150 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #4
  %151 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EES9_St4plusIdEET1_T_SD_T0_SC_T2_(ptr %146, ptr %147, ptr %149, ptr %150)
  br label %153

152:                                              ; preds = %104, %106, %132
  %.pn121.pn = phi { ptr, i32 } [ %.pn.pn, %132 ], [ %107, %106 ], [ %105, %104 ]
  resume { ptr, i32 } %.pn121.pn

153:                                              ; preds = %23, %27, %39, %37, %137, %145, %.loopexit, %5
  %.1 = phi i1 [ false, %5 ], [ false, %23 ], [ false, %27 ], [ true, %39 ], [ true, %37 ], [ true, %137 ], [ true, %145 ], [ true, %.loopexit ]
  ret i1 %.1
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_St5minusIdEET1_T_SD_T0_SC_T2_(ptr, ptr, ptr, ptr) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZNK4sptk22StatisticsAccumulation5MergeEiRKS5_RKNSA_15SymmetricMatrixEPNSB_6BufferEE3$_0ET1_T_SL_T0_SK_T2_"(ptr, ptr, ptr, ptr, double) local_unnamed_addr #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !7, i64 8}
!14 = !{!6, !7, i64 12}
!15 = !{!16, !7, i64 8}
!16 = !{!"_ZTSN4sptk22StatisticsAccumulation6BufferE", !7, i64 8, !17, i64 16, !22, i64 40, !17, i64 104}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!"_ZTSN4sptk15SymmetricMatrixE", !7, i64 8, !17, i64 16, !23, i64 40}
!23 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!27 = !{!6, !10, i64 17}
!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