; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src/pressuresolver.ll (ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.GridIndex = type { i32, i32, i32 }
%class.PressureSolver = type { i32, i32, i32, double, double, double, i32, double, i32, ptr, ptr, ptr, ptr, %class.GridIndexKeyMap }
%class.GridIndexKeyMap = type <{ i32, i32, i32, [4 x i8], %"class.std::vector.5", i32, [4 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.VectorXd = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.MatrixCoefficients = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MatrixCell, std::allocator<MatrixCell>>::_Vector_impl" }
%"struct.std::_Vector_base<MatrixCell, std::allocator<MatrixCell>>::_Vector_impl" = type { %"struct.std::_Vector_base<MatrixCell, std::allocator<MatrixCell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MatrixCell, std::allocator<MatrixCell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.MatrixCell = type { i8, i8, i8, i8 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [50 x i8], align 1
@__FUNCTION__._ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_ = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: noreturn nounwind
declare void @abort() #5

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15GridIndexVector4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.GridIndex, align 4
  %14 = alloca { i64, i32 }, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.GridIndex, align 4
  %17 = alloca { i64, i32 }, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.GridIndex, align 4
  %20 = alloca { i64, i32 }, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef i64 @_ZN18MatrixCoefficients4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call noundef i64 @_ZN8VectorXd4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = icmp eq i64 %25, %27
  br i1 %28, label %29, label %35

29:                                               ; preds = %4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef i64 @_ZN8VectorXd4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef i64 @_ZN8VectorXd4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %34 = icmp eq i64 %31, %33
  br i1 %34, label %45, label %35

35:                                               ; preds = %29, %4
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @.str.10)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str.2)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.3)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @.str.4)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @__FUNCTION__._ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str.5)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef 389)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @abort() #9
  unreachable

45:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %46 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 5
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 4
  %49 = load double, ptr %48, align 8, !tbaa !18
  %50 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 3
  %51 = load double, ptr %50, align 8, !tbaa !19
  %52 = fmul double %49, %51
  %53 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 3
  %54 = load double, ptr %53, align 8, !tbaa !19
  %55 = fmul double %52, %54
  %56 = fdiv double %47, %55
  store double %56, ptr %9, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %57 = load double, ptr %9, align 8, !tbaa !20
  %58 = fneg double %57
  store double %58, ptr %10, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !21
  br label %59

59:                                               ; preds = %219, %45
  %60 = load i32, ptr %11, align 4, !tbaa !21
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 9
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = call noundef i64 @_ZN15GridIndexVector4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %63)
  %65 = icmp ult i64 %61, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %222

67:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #10
  %68 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 9
  %69 = load ptr, ptr %68, align 8, !tbaa !22
  %70 = load i32, ptr %11, align 4, !tbaa !21
  %71 = call { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40) %69, i32 noundef %70)
  store { i64, i32 } %71, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %14, i64 12, i1 false)
  %72 = getelementptr inbounds %struct.GridIndex, ptr %13, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #10
  store i32 %73, ptr %12, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #10
  %74 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = load i32, ptr %11, align 4, !tbaa !21
  %77 = call { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40) %75, i32 noundef %76)
  store { i64, i32 } %77, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %17, i64 12, i1 false)
  %78 = getelementptr inbounds %struct.GridIndex, ptr %16, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #10
  store i32 %79, ptr %15, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #10
  %80 = getelementptr inbounds %class.PressureSolver, ptr %23, i32 0, i32 9
  %81 = load ptr, ptr %80, align 8, !tbaa !22
  %82 = load i32, ptr %11, align 4, !tbaa !21
  %83 = call { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40) %81, i32 noundef %82)
  store { i64, i32 } %83, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  %84 = getelementptr inbounds %struct.GridIndex, ptr %19, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #10
  store i32 %85, ptr %18, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  store double 0.000000e+00, ptr %21, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  %86 = load i32, ptr %12, align 4, !tbaa !21
  %87 = sub nsw i32 %86, 1
  %88 = load i32, ptr %15, align 4, !tbaa !21
  %89 = load i32, ptr %18, align 4, !tbaa !21
  %90 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %87, i32 noundef %88, i32 noundef %89)
  store i32 %90, ptr %22, align 4, !tbaa !21
  %91 = load i32, ptr %22, align 4, !tbaa !21
  %92 = icmp ne i32 %91, -1
  br i1 %92, label %93, label %102

93:                                               ; preds = %67
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.VectorXd, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %22, align 4, !tbaa !21
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #10
  %99 = load double, ptr %98, align 8, !tbaa !20
  %100 = load double, ptr %21, align 8, !tbaa !20
  %101 = fadd double %100, %99
  store double %101, ptr %21, align 8, !tbaa !20
  br label %102

102:                                              ; preds = %93, %67
  %103 = load i32, ptr %12, align 4, !tbaa !21
  %104 = add nsw i32 %103, 1
  %105 = load i32, ptr %15, align 4, !tbaa !21
  %106 = load i32, ptr %18, align 4, !tbaa !21
  %107 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %104, i32 noundef %105, i32 noundef %106)
  store i32 %107, ptr %22, align 4, !tbaa !21
  %108 = load i32, ptr %22, align 4, !tbaa !21
  %109 = icmp ne i32 %108, -1
  br i1 %109, label %110, label %119

110:                                              ; preds = %102
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.VectorXd, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %22, align 4, !tbaa !21
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #10
  %116 = load double, ptr %115, align 8, !tbaa !20
  %117 = load double, ptr %21, align 8, !tbaa !20
  %118 = fadd double %117, %116
  store double %118, ptr %21, align 8, !tbaa !20
  br label %119

119:                                              ; preds = %110, %102
  %120 = load i32, ptr %12, align 4, !tbaa !21
  %121 = load i32, ptr %15, align 4, !tbaa !21
  %122 = sub nsw i32 %121, 1
  %123 = load i32, ptr %18, align 4, !tbaa !21
  %124 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %120, i32 noundef %122, i32 noundef %123)
  store i32 %124, ptr %22, align 4, !tbaa !21
  %125 = load i32, ptr %22, align 4, !tbaa !21
  %126 = icmp ne i32 %125, -1
  br i1 %126, label %127, label %136

127:                                              ; preds = %119
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.VectorXd, ptr %128, i32 0, i32 0
  %130 = load i32, ptr %22, align 4, !tbaa !21
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131) #10
  %133 = load double, ptr %132, align 8, !tbaa !20
  %134 = load double, ptr %21, align 8, !tbaa !20
  %135 = fadd double %134, %133
  store double %135, ptr %21, align 8, !tbaa !20
  br label %136

136:                                              ; preds = %127, %119
  %137 = load i32, ptr %12, align 4, !tbaa !21
  %138 = load i32, ptr %15, align 4, !tbaa !21
  %139 = add nsw i32 %138, 1
  %140 = load i32, ptr %18, align 4, !tbaa !21
  %141 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %137, i32 noundef %139, i32 noundef %140)
  store i32 %141, ptr %22, align 4, !tbaa !21
  %142 = load i32, ptr %22, align 4, !tbaa !21
  %143 = icmp ne i32 %142, -1
  br i1 %143, label %144, label %153

144:                                              ; preds = %136
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %class.VectorXd, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %22, align 4, !tbaa !21
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %148) #10
  %150 = load double, ptr %149, align 8, !tbaa !20
  %151 = load double, ptr %21, align 8, !tbaa !20
  %152 = fadd double %151, %150
  store double %152, ptr %21, align 8, !tbaa !20
  br label %153

153:                                              ; preds = %144, %136
  %154 = load i32, ptr %12, align 4, !tbaa !21
  %155 = load i32, ptr %15, align 4, !tbaa !21
  %156 = load i32, ptr %18, align 4, !tbaa !21
  %157 = sub nsw i32 %156, 1
  %158 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %154, i32 noundef %155, i32 noundef %157)
  store i32 %158, ptr %22, align 4, !tbaa !21
  %159 = load i32, ptr %22, align 4, !tbaa !21
  %160 = icmp ne i32 %159, -1
  br i1 %160, label %161, label %170

161:                                              ; preds = %153
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.VectorXd, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %22, align 4, !tbaa !21
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %165) #10
  %167 = load double, ptr %166, align 8, !tbaa !20
  %168 = load double, ptr %21, align 8, !tbaa !20
  %169 = fadd double %168, %167
  store double %169, ptr %21, align 8, !tbaa !20
  br label %170

170:                                              ; preds = %161, %153
  %171 = load i32, ptr %12, align 4, !tbaa !21
  %172 = load i32, ptr %15, align 4, !tbaa !21
  %173 = load i32, ptr %18, align 4, !tbaa !21
  %174 = add nsw i32 %173, 1
  %175 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %171, i32 noundef %172, i32 noundef %174)
  store i32 %175, ptr %22, align 4, !tbaa !21
  %176 = load i32, ptr %22, align 4, !tbaa !21
  %177 = icmp ne i32 %176, -1
  br i1 %177, label %178, label %187

178:                                              ; preds = %170
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %class.VectorXd, ptr %179, i32 0, i32 0
  %181 = load i32, ptr %22, align 4, !tbaa !21
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #10
  %184 = load double, ptr %183, align 8, !tbaa !20
  %185 = load double, ptr %21, align 8, !tbaa !20
  %186 = fadd double %185, %184
  store double %186, ptr %21, align 8, !tbaa !20
  br label %187

187:                                              ; preds = %178, %170
  %188 = load double, ptr %10, align 8, !tbaa !20
  %189 = load double, ptr %21, align 8, !tbaa !20
  %190 = fmul double %189, %188
  store double %190, ptr %21, align 8, !tbaa !20
  %191 = load i32, ptr %12, align 4, !tbaa !21
  %192 = load i32, ptr %15, align 4, !tbaa !21
  %193 = load i32, ptr %18, align 4, !tbaa !21
  %194 = call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %23, i32 noundef %191, i32 noundef %192, i32 noundef %193)
  store i32 %194, ptr %22, align 4, !tbaa !21
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %class.MatrixCoefficients, ptr %195, i32 0, i32 0
  %197 = load i32, ptr %22, align 4, !tbaa !21
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt6vectorI10MatrixCellSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #10
  %200 = getelementptr inbounds %struct.MatrixCell, ptr %199, i32 0, i32 0
  %201 = load i8, ptr %200, align 1, !tbaa !27
  %202 = sitofp i8 %201 to double
  %203 = load double, ptr %9, align 8, !tbaa !20
  %204 = fmul double %202, %203
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %class.VectorXd, ptr %205, i32 0, i32 0
  %207 = load i32, ptr %22, align 4, !tbaa !21
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208) #10
  %210 = load double, ptr %209, align 8, !tbaa !20
  %211 = load double, ptr %21, align 8, !tbaa !20
  %212 = call double @llvm.fmuladd.f64(double %204, double %210, double %211)
  store double %212, ptr %21, align 8, !tbaa !20
  %213 = load double, ptr %21, align 8, !tbaa !20
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.VectorXd, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %22, align 4, !tbaa !21
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #10
  store double %213, ptr %218, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %219

219:                                              ; preds = %187
  %220 = load i32, ptr %11, align 4, !tbaa !21
  %221 = add i32 %220, 1
  store i32 %221, ptr %11, align 4, !tbaa !21
  br label %59, !llvm.loop !29

222:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 32}
!10 = !{!"_ZTS14PressureSolver", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !12, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !13, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTS15GridIndexKeyMap", !11, i64 0, !11, i64 4, !11, i64 8, !14, i64 16, !11, i64 40}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !12, i64 16}
!20 = !{!12, !12, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{!10, !6, i64 64}
!23 = !{!24, !11, i64 0}
!24 = !{!"_ZTS9GridIndex", !11, i64 0, !11, i64 4, !11, i64 8}
!25 = !{!24, !11, i64 4}
!26 = !{!24, !11, i64 8}
!27 = !{!28, !7, i64 0}
!28 = !{!"_ZTS10MatrixCell", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [50 x i8], align 1
@__FUNCTION__._ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_ = external hidden unnamed_addr constant [13 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15GridIndexVector4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #3 align 2 {
  %5 = tail call noundef i64 @_ZN18MatrixCoefficients4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %6 = tail call noundef i64 @_ZN8VectorXd4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %7 = icmp eq i64 %5, %6
  br i1 %7, label %8, label %12

8:                                                ; preds = %4
  %9 = tail call noundef i64 @_ZN8VectorXd4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %10 = tail call noundef i64 @_ZN8VectorXd4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %11 = icmp eq i64 %9, %10
  br i1 %11, label %22, label %12

12:                                               ; preds = %8, %4
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.10)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.2)
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.3)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.4)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @__FUNCTION__._ZN14PressureSolver12_applyMatrixER18MatrixCoefficientsR8VectorXdS3_)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.5)
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 389)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @abort() #7
  unreachable

22:                                               ; preds = %8
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load double, ptr %25, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load double, ptr %27, align 8, !tbaa !18
  %29 = fmul double %26, %28
  %30 = fmul double %28, %29
  %31 = fdiv double %24, %30
  %32 = fneg double %31
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = tail call noundef i64 @_ZN15GridIndexVector4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %34)
  %.not91 = icmp eq i64 %35, 0
  br i1 %.not91, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %89, %22
  ret void

.lr.ph:                                           ; preds = %22, %89
  %.07890 = phi i32 [ %101, %89 ], [ 0, %22 ]
  %36 = load ptr, ptr %33, align 8, !tbaa !19
  %37 = tail call { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40) %36, i32 noundef %.07890)
  %.fca.0.extract43 = extractvalue { i64, i32 } %37, 0
  %.sroa.047.0.extract.trunc = trunc i64 %.fca.0.extract43 to i32
  %38 = load ptr, ptr %33, align 8, !tbaa !19
  %39 = tail call { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40) %38, i32 noundef %.07890)
  %.fca.0.extract31 = extractvalue { i64, i32 } %39, 0
  %.sroa.035.4.extract.shift = lshr i64 %.fca.0.extract31, 32
  %.sroa.035.4.extract.trunc = trunc nuw i64 %.sroa.035.4.extract.shift to i32
  %40 = load ptr, ptr %33, align 8, !tbaa !19
  %41 = tail call { i64, i32 } @_ZN15GridIndexVector2atEi(ptr noundef nonnull align 8 dereferenceable(40) %40, i32 noundef %.07890)
  %.fca.1.extract = extractvalue { i64, i32 } %41, 1
  %42 = add nsw i32 %.sroa.047.0.extract.trunc, -1
  %43 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %42, i32 noundef %.sroa.035.4.extract.trunc, i32 noundef %.fca.1.extract)
  %.not = icmp eq i32 %43, -1
  br i1 %.not, label %49, label %44

44:                                               ; preds = %.lr.ph
  %45 = sext i32 %43 to i64
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %45) #8
  %47 = load double, ptr %46, align 8, !tbaa !20
  %48 = fadd double %47, 0.000000e+00
  br label %49

49:                                               ; preds = %44, %.lr.ph
  %.0 = phi double [ %48, %44 ], [ 0.000000e+00, %.lr.ph ]
  %50 = add nsw i32 %.sroa.047.0.extract.trunc, 1
  %51 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %50, i32 noundef %.sroa.035.4.extract.trunc, i32 noundef %.fca.1.extract)
  %.not85 = icmp eq i32 %51, -1
  br i1 %.not85, label %57, label %52

52:                                               ; preds = %49
  %53 = sext i32 %51 to i64
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %53) #8
  %55 = load double, ptr %54, align 8, !tbaa !20
  %56 = fadd double %.0, %55
  br label %57

57:                                               ; preds = %52, %49
  %.1 = phi double [ %56, %52 ], [ %.0, %49 ]
  %58 = add nsw i32 %.sroa.035.4.extract.trunc, -1
  %59 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %.sroa.047.0.extract.trunc, i32 noundef %58, i32 noundef %.fca.1.extract)
  %.not86 = icmp eq i32 %59, -1
  br i1 %.not86, label %65, label %60

60:                                               ; preds = %57
  %61 = sext i32 %59 to i64
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %61) #8
  %63 = load double, ptr %62, align 8, !tbaa !20
  %64 = fadd double %.1, %63
  br label %65

65:                                               ; preds = %60, %57
  %.2 = phi double [ %64, %60 ], [ %.1, %57 ]
  %66 = add nsw i32 %.sroa.035.4.extract.trunc, 1
  %67 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %.sroa.047.0.extract.trunc, i32 noundef %66, i32 noundef %.fca.1.extract)
  %.not87 = icmp eq i32 %67, -1
  br i1 %.not87, label %73, label %68

68:                                               ; preds = %65
  %69 = sext i32 %67 to i64
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %69) #8
  %71 = load double, ptr %70, align 8, !tbaa !20
  %72 = fadd double %.2, %71
  br label %73

73:                                               ; preds = %68, %65
  %.3 = phi double [ %72, %68 ], [ %.2, %65 ]
  %74 = add nsw i32 %.fca.1.extract, -1
  %75 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %.sroa.047.0.extract.trunc, i32 noundef %.sroa.035.4.extract.trunc, i32 noundef %74)
  %.not88 = icmp eq i32 %75, -1
  br i1 %.not88, label %81, label %76

76:                                               ; preds = %73
  %77 = sext i32 %75 to i64
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %77) #8
  %79 = load double, ptr %78, align 8, !tbaa !20
  %80 = fadd double %.3, %79
  br label %81

81:                                               ; preds = %76, %73
  %.4 = phi double [ %80, %76 ], [ %.3, %73 ]
  %82 = add nsw i32 %.fca.1.extract, 1
  %83 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %.sroa.047.0.extract.trunc, i32 noundef %.sroa.035.4.extract.trunc, i32 noundef %82)
  %.not89 = icmp eq i32 %83, -1
  br i1 %.not89, label %89, label %84

84:                                               ; preds = %81
  %85 = sext i32 %83 to i64
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %85) #8
  %87 = load double, ptr %86, align 8, !tbaa !20
  %88 = fadd double %.4, %87
  br label %89

89:                                               ; preds = %84, %81
  %.5 = phi double [ %88, %84 ], [ %.4, %81 ]
  %90 = fmul double %.5, %32
  %91 = tail call noundef i32 @_ZN14PressureSolver18_GridToVectorIndexEiii(ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef %.sroa.047.0.extract.trunc, i32 noundef %.sroa.035.4.extract.trunc, i32 noundef %.fca.1.extract)
  %92 = sext i32 %91 to i64
  %93 = tail call noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt6vectorI10MatrixCellSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %92) #8
  %94 = load i8, ptr %93, align 1, !tbaa !21
  %95 = sitofp i8 %94 to double
  %96 = fmul double %31, %95
  %97 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %92) #8
  %98 = load double, ptr %97, align 8, !tbaa !20
  %99 = tail call double @llvm.fmuladd.f64(double %96, double %98, double %90)
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %92) #8
  store double %99, ptr %100, align 8, !tbaa !20
  %101 = add i32 %.07890, 1
  %102 = zext i32 %101 to i64
  %103 = load ptr, ptr %33, align 8, !tbaa !19
  %104 = tail call noundef i64 @_ZN15GridIndexVector4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %103)
  %105 = icmp ugt i64 %104, %102
  br i1 %105, label %.lr.ph, label %._crit_edge, !llvm.loop !23
}

attributes #0 = { inlinehint 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 = { inlinehint 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 = { "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 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 #4 = { noreturn nounwind "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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 32}
!6 = !{!"_ZTS14PressureSolver", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !12, i64 96}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTS15GridIndexKeyMap", !7, i64 0, !7, i64 4, !7, i64 8, !13, i64 16, !7, i64 40}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!6, !10, i64 24}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !11, i64 64}
!20 = !{!10, !10, i64 0}
!21 = !{!22, !8, i64 0}
!22 = !{!"_ZTS10MatrixCell", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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