; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (grid_fractional_single_phase_pressure_solver3)

; 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.jet::Size3" = type { i64, i64, i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.jet::FaceCenteredGrid3" = type { %"class.jet::VectorGrid3", %"class.jet::Array.0", %"class.jet::Array.0", %"class.jet::Array.0", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::LinearArraySampler", %"class.jet::LinearArraySampler", %"class.jet::LinearArraySampler", %"class.std::function" }
%"class.jet::VectorGrid3" = type { %"class.jet::VectorField3", %"class.jet::Grid3" }
%"class.jet::VectorField3" = type { %"class.jet::Field3" }
%"class.jet::Field3" = type { ptr }
%"class.jet::Grid3" = type { %"class.jet::Serializable", %"class.jet::Size3", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::BoundingBox" }
%"class.jet::Serializable" = type { ptr }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Array.0" = type { %"class.jet::Size3", %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = 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.jet::Vector" = type { double, double, double }
%"class.jet::LinearArraySampler" = type { %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::ConstArrayAccessor" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::GridFractionalSinglePhasePressureSolver3" = type { %"class.jet::GridPressureSolver3", %"struct.jet::FdmLinearSystem3", %"struct.jet::FdmCompressedLinearSystem3", %"class.std::shared_ptr", %"struct.jet::FdmMgLinearSystem3", %"class.std::shared_ptr.21", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::function" }
%"class.jet::GridPressureSolver3" = type { ptr }
%"struct.jet::FdmLinearSystem3" = type { %"class.jet::Array", %"class.jet::Array.0", %"class.jet::Array.0" }
%"class.jet::Array" = type { %"class.jet::Size3", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::FdmMatrixRow3, std::allocator<jet::FdmMatrixRow3>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::FdmMatrixRow3, std::allocator<jet::FdmMatrixRow3>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::FdmMatrixRow3, std::allocator<jet::FdmMatrixRow3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::FdmMatrixRow3, std::allocator<jet::FdmMatrixRow3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.jet::FdmCompressedLinearSystem3" = type { %"class.jet::MatrixCsr", %"class.jet::VectorN", %"class.jet::VectorN" }
%"class.jet::MatrixCsr" = type { %"class.jet::Size2", %"class.std::vector.1", %"class.std::vector.6", %"class.std::vector.6" }
%"class.jet::Size2" = type { i64, i64 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::VectorN" = type { %"class.std::vector.1" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.jet::FdmMgLinearSystem3" = type { %"struct.jet::MgMatrix", %"struct.jet::MgVector", %"struct.jet::MgVector" }
%"struct.jet::MgMatrix" = type { %"class.std::vector.11" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow3, 3>, std::allocator<jet::Array<jet::FdmMatrixRow3, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow3, 3>, std::allocator<jet::Array<jet::FdmMatrixRow3, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow3, 3>, std::allocator<jet::Array<jet::FdmMatrixRow3, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow3, 3>, std::allocator<jet::Array<jet::FdmMatrixRow3, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.jet::MgVector" = type { %"class.std::vector.16" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<jet::Array<double, 3>, std::allocator<jet::Array<double, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<double, 3>, std::allocator<jet::Array<double, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<double, 3>, std::allocator<jet::Array<double, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<double, 3>, std::allocator<jet::Array<double, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.21" = type { %"class.std::__shared_ptr.22" }
%"class.std::__shared_ptr.22" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<jet::Array<float, 3>, std::allocator<jet::Array<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<float, 3>, std::allocator<jet::Array<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<float, 3>, std::allocator<jet::Array<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<float, 3>, std::allocator<jet::Array<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.jet::MgParameters" = type { i64, i32, i32, i32, i32, %"class.std::function.32", %"class.std::function.34", %"class.std::function.34", double }
%"class.std::function.32" = type { %"class.std::_Function_base", ptr }
%"class.std::function.34" = type { %"class.std::_Function_base", ptr }

declare i32 @__gxx_personality_v0(...)

; 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 zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

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

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver36paramsEv(ptr noundef nonnull align 8 dereferenceable(145)) #3

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet40GridFractionalSinglePhasePressureSolver311buildSystemERKNS_17FaceCenteredGrid3Eb(ptr noundef nonnull align 8 dereferenceable(520) %0, ptr noundef nonnull align 8 dereferenceable(696) %1, i1 noundef zeroext %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.jet::Size3", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::function", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::function", align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %"class.jet::FaceCenteredGrid3", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.jet::Size3", align 8
  %19 = alloca %"class.jet::Vector", align 8
  %20 = alloca %"class.jet::Vector", align 8
  %21 = alloca %"class.jet::Vector", align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %"class.std::function", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %24 = zext i1 %2 to i8
  store i8 %24, ptr %6, align 1, !tbaa !9
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %27)
  call void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 1, ptr %8, align 8, !tbaa !11
  %29 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 5
  %30 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr null) #5
  br i1 %30, label %31, label %37

31:                                               ; preds = %3
  %32 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  br i1 %33, label %36, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 1
  call void @_ZN3jet16FdmLinearSystem36resizeERKNS_5Size3E(ptr noundef nonnull align 8 dereferenceable(144) %35, ptr noundef nonnull align 8 dereferenceable(24) %7)
  br label %36

36:                                               ; preds = %34, %31
  br label %59

37:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 5
  %39 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #5
  %40 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver36paramsEv(ptr noundef nonnull align 8 dereferenceable(145) %39)
  %41 = getelementptr inbounds %"struct.jet::MgParameters", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !15
  store i64 %42, ptr %9, align 8, !tbaa !11
  %43 = load i64, ptr %9, align 8, !tbaa !11
  %44 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %45 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %45, i32 0, i32 0
  call void @_ZN3jet11FdmMgUtils321resizeArrayWithFinestINS_13FdmMatrixRow3EEEvRKNS_5Size3EmPSt6vectorINS_5ArrayIT_Lm3EEESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %43, ptr noundef %46)
  %47 = load i64, ptr %9, align 8, !tbaa !11
  %48 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %49 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.jet::MgVector", ptr %49, i32 0, i32 0
  call void @_ZN3jet11FdmMgUtils321resizeArrayWithFinestIdEEvRKNS_5Size3EmPSt6vectorINS_5ArrayIT_Lm3EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %47, ptr noundef %50)
  %51 = load i64, ptr %9, align 8, !tbaa !11
  %52 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %53 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds %"struct.jet::MgVector", ptr %53, i32 0, i32 0
  call void @_ZN3jet11FdmMgUtils321resizeArrayWithFinestIdEEvRKNS_5Size3EmPSt6vectorINS_5ArrayIT_Lm3EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %51, ptr noundef %54)
  %55 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %56 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %56, i32 0, i32 0
  %58 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #5
  store i64 %58, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %59

59:                                               ; preds = %37, %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %60, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 5
  %62 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr null) #5
  br i1 %62, label %63, label %109

63:                                               ; preds = %59
  %64 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %88

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 2
  %68 = getelementptr inbounds %"struct.jet::FdmCompressedLinearSystem3", ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 2
  %70 = getelementptr inbounds %"struct.jet::FdmCompressedLinearSystem3", ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 2
  %72 = getelementptr inbounds %"struct.jet::FdmCompressedLinearSystem3", ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 9
  %74 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 0) #5
  %75 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 6
  %76 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 0) #5
  %77 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 7
  %78 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #5
  %79 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 8
  %80 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef 0) #5
  %81 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 10
  call void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %81)
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm3EEESA_SA_SA_St8functionIFNS0_6VectorIdLm3EEERKSD_EERKNS0_17FaceCenteredGrid3E(ptr noundef %68, ptr noundef %70, ptr noundef %72, ptr noundef nonnull align 8 dereferenceable(48) %74, ptr noundef nonnull align 8 dereferenceable(48) %76, ptr noundef nonnull align 8 dereferenceable(48) %78, ptr noundef nonnull align 8 dereferenceable(48) %80, ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(696) %82)
          to label %83 unwind label %84

83:                                               ; preds = %66
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %108

84:                                               ; preds = %66
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %12, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %235

88:                                               ; preds = %63
  %89 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 1
  %90 = getelementptr inbounds %"struct.jet::FdmLinearSystem3", ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 1
  %92 = getelementptr inbounds %"struct.jet::FdmLinearSystem3", ptr %91, i32 0, i32 2
  %93 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 9
  %94 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef 0) #5
  %95 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 6
  %96 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef 0) #5
  %97 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 7
  %98 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef 0) #5
  %99 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 8
  %100 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef 0) #5
  %101 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 10
  call void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %101)
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef %90, ptr noundef %92, ptr noundef nonnull align 8 dereferenceable(48) %94, ptr noundef nonnull align 8 dereferenceable(48) %96, ptr noundef nonnull align 8 dereferenceable(48) %98, ptr noundef nonnull align 8 dereferenceable(48) %100, ptr noundef %14, ptr noundef nonnull align 8 dereferenceable(696) %102)
          to label %103 unwind label %104

103:                                              ; preds = %88
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %108

104:                                              ; preds = %88
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %12, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %235

108:                                              ; preds = %103, %83
  br label %133

109:                                              ; preds = %59
  %110 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %111 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %111, i32 0, i32 0
  %113 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #5
  %114 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %115 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %114, i32 0, i32 2
  %116 = getelementptr inbounds %"struct.jet::MgVector", ptr %115, i32 0, i32 0
  %117 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIdLm3EEESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #5
  %118 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 9
  %119 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef 0) #5
  %120 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 6
  %121 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef 0) #5
  %122 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 7
  %123 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef 0) #5
  %124 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 8
  %125 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef 0) #5
  %126 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 10
  call void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %126)
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef %113, ptr noundef %117, ptr noundef nonnull align 8 dereferenceable(48) %119, ptr noundef nonnull align 8 dereferenceable(48) %121, ptr noundef nonnull align 8 dereferenceable(48) %123, ptr noundef nonnull align 8 dereferenceable(48) %125, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(696) %127)
          to label %128 unwind label %129

128:                                              ; preds = %109
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %133

129:                                              ; preds = %109
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %235

133:                                              ; preds = %128, %108
  call void @llvm.lifetime.start.p0(i64 696, ptr %16) #5
  call void @_ZN3jet17FaceCenteredGrid3C1Ev(ptr noundef nonnull align 8 dereferenceable(696) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 1, ptr %17, align 8, !tbaa !11
  br label %134

134:                                              ; preds = %199, %133
  %135 = load i64, ptr %17, align 8, !tbaa !11
  %136 = load i64, ptr %8, align 8, !tbaa !11
  %137 = icmp ult i64 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %234

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 8
  %142 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %141)
          to label %143 unwind label %202

143:                                              ; preds = %139
  invoke void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %142)
          to label %144 unwind label %202

144:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  %147 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %146)
          to label %148 unwind label %206

148:                                              ; preds = %144
  invoke void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %147)
          to label %149 unwind label %206

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %150, i64 8
  %152 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid36originEv(ptr noundef nonnull align 8 dereferenceable(128) %151)
          to label %153 unwind label %210

153:                                              ; preds = %149
  invoke void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %152)
          to label %154 unwind label %210

154:                                              ; preds = %153
  %155 = getelementptr inbounds %"class.jet::Size3", ptr %18, i32 0, i32 0
  %156 = load i64, ptr %155, align 8, !tbaa !22
  %157 = lshr i64 %156, 1
  %158 = getelementptr inbounds %"class.jet::Size3", ptr %18, i32 0, i32 0
  store i64 %157, ptr %158, align 8, !tbaa !22
  %159 = getelementptr inbounds %"class.jet::Size3", ptr %18, i32 0, i32 1
  %160 = load i64, ptr %159, align 8, !tbaa !24
  %161 = lshr i64 %160, 1
  %162 = getelementptr inbounds %"class.jet::Size3", ptr %18, i32 0, i32 1
  store i64 %161, ptr %162, align 8, !tbaa !24
  %163 = getelementptr inbounds %"class.jet::Size3", ptr %18, i32 0, i32 2
  %164 = load i64, ptr %163, align 8, !tbaa !25
  %165 = lshr i64 %164, 1
  %166 = getelementptr inbounds %"class.jet::Size3", ptr %18, i32 0, i32 2
  store i64 %165, ptr %166, align 8, !tbaa !25
  %167 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEmLEd(ptr noundef nonnull align 8 dereferenceable(24) %19, double noundef 2.000000e+00)
          to label %168 unwind label %210

168:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  invoke void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %169 unwind label %214

169:                                              ; preds = %168
  invoke void @_ZN3jet11VectorGrid36resizeERKNS_5Size3ERKNS_6VectorIdLm3EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(136) %16, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %170 unwind label %214

170:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid37samplerEv(ptr dead_on_unwind writable sret(%"class.std::function") align 8 %22, ptr noundef nonnull align 8 dereferenceable(696) %171)
          to label %172 unwind label %218

172:                                              ; preds = %170
  invoke void @_ZN3jet17FaceCenteredGrid34fillERKSt8functionIFNS_6VectorIdLm3EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(696) %16, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1)
          to label %173 unwind label %222

173:                                              ; preds = %172
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  %174 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %175 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %175, i32 0, i32 0
  %177 = load i64, ptr %17, align 8, !tbaa !11
  %178 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %177) #5
  %179 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 4
  %180 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem3", ptr %179, i32 0, i32 2
  %181 = getelementptr inbounds %"struct.jet::MgVector", ptr %180, i32 0, i32 0
  %182 = load i64, ptr %17, align 8, !tbaa !11
  %183 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %182) #5
  %184 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 9
  %185 = load i64, ptr %17, align 8, !tbaa !11
  %186 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %185) #5
  %187 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 6
  %188 = load i64, ptr %17, align 8, !tbaa !11
  %189 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %188) #5
  %190 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 7
  %191 = load i64, ptr %17, align 8, !tbaa !11
  %192 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %191) #5
  %193 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 8
  %194 = load i64, ptr %17, align 8, !tbaa !11
  %195 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %194) #5
  %196 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver3", ptr %25, i32 0, i32 10
  invoke void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %196)
          to label %197 unwind label %210

197:                                              ; preds = %173
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef %178, ptr noundef %183, ptr noundef nonnull align 8 dereferenceable(48) %186, ptr noundef nonnull align 8 dereferenceable(48) %189, ptr noundef nonnull align 8 dereferenceable(48) %192, ptr noundef nonnull align 8 dereferenceable(48) %195, ptr noundef %23, ptr noundef nonnull align 8 dereferenceable(696) %16)
          to label %198 unwind label %227

198:                                              ; preds = %197
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  store ptr %16, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  br label %199

199:                                              ; preds = %198
  %200 = load i64, ptr %17, align 8, !tbaa !11
  %201 = add i64 %200, 1
  store i64 %201, ptr %17, align 8, !tbaa !11
  br label %134, !llvm.loop !26

202:                                              ; preds = %143, %139
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %12, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %13, align 4
  br label %233

206:                                              ; preds = %148, %144
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %12, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %13, align 4
  br label %232

210:                                              ; preds = %173, %154, %153, %149
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %12, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %13, align 4
  br label %231

214:                                              ; preds = %169, %168
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %12, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  br label %231

218:                                              ; preds = %170
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %12, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %13, align 4
  br label %226

222:                                              ; preds = %172
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %12, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %226

226:                                              ; preds = %222, %218
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %231

227:                                              ; preds = %197
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %12, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br label %231

231:                                              ; preds = %227, %226, %214, %210
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  br label %232

232:                                              ; preds = %231, %206
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  br label %233

233:                                              ; preds = %232, %202
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN3jet17FaceCenteredGrid3D2Ev(ptr noundef nonnull align 8 dereferenceable(696) %16) #5
  call void @llvm.lifetime.end.p0(i64 696, ptr %16) #5
  br label %235

234:                                              ; preds = %138
  call void @_ZN3jet17FaceCenteredGrid3D2Ev(ptr noundef nonnull align 8 dereferenceable(696) %16) #5
  call void @llvm.lifetime.end.p0(i64 696, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  ret void

235:                                              ; preds = %233, %129, %104, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %12, align 8
  %238 = load i32, ptr %13, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

declare void @_ZN3jet16FdmLinearSystem36resizeERKNS_5Size3E(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm3EEESA_SA_SA_St8functionIFNS0_6VectorIdLm3EEERKSD_EERKNS0_17FaceCenteredGrid3E(ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef nonnull align 8 dereferenceable(696)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef nonnull align 8 dereferenceable(696)) #4

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

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

declare void @_ZN3jet17FaceCenteredGrid3C1Ev(ptr noundef nonnull align 8 dereferenceable(696)) unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid36originEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

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

declare void @_ZN3jet11VectorGrid36resizeERKNS_5Size3ERKNS_6VectorIdLm3EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

declare void @_ZN3jet17FaceCenteredGrid34fillERKSt8functionIFNS_6VectorIdLm3EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3

declare void @_ZNK3jet17FaceCenteredGrid37samplerEv(ptr dead_on_unwind writable sret(%"class.std::function") align 8, ptr noundef nonnull align 8 dereferenceable(696)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet17FaceCenteredGrid3D2Ev(ptr noundef nonnull align 8 dereferenceable(696)) unnamed_addr #1 align 2

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSN3jet12MgParametersINS_8FdmBlas3EEE", !12, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !18, i64 24, !20, i64 56, !20, i64 88, !21, i64 120}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEERKNS1_IdLm3EEEjdPS6_S9_EE", !19, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!20 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayIdLm3EEEPS2_EE", !19, i64 0, !6, i64 24}
!21 = !{!"double", !7, i64 0}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSN3jet5Size3E", !12, i64 0, !12, i64 8, !12, i64 16}
!24 = !{!23, !12, i64 8}
!25 = !{!23, !12, i64 16}
!26 = distinct !{!26, !27}
!27 = !{!"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.jet::Size3" = type { i64, i64, i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.jet::FaceCenteredGrid3" = type { %"class.jet::VectorGrid3", %"class.jet::Array.0", %"class.jet::Array.0", %"class.jet::Array.0", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::LinearArraySampler", %"class.jet::LinearArraySampler", %"class.jet::LinearArraySampler", %"class.std::function" }
%"class.jet::VectorGrid3" = type { %"class.jet::VectorField3", %"class.jet::Grid3" }
%"class.jet::VectorField3" = type { %"class.jet::Field3" }
%"class.jet::Field3" = type { ptr }
%"class.jet::Grid3" = type { %"class.jet::Serializable", %"class.jet::Size3", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::BoundingBox" }
%"class.jet::Serializable" = type { ptr }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Array.0" = type { %"class.jet::Size3", %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = 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.jet::Vector" = type { double, double, double }
%"class.jet::LinearArraySampler" = type { %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::ConstArrayAccessor" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size3", ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) local_unnamed_addr #1

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

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

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver36paramsEv(ptr noundef nonnull align 8 dereferenceable(145)) local_unnamed_addr #3

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet40GridFractionalSinglePhasePressureSolver311buildSystemERKNS_17FaceCenteredGrid3Eb(ptr noundef nonnull align 8 dereferenceable(520) %0, ptr noundef nonnull align 8 dereferenceable(696) %1, i1 noundef zeroext %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.jet::Size3", align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %"class.jet::FaceCenteredGrid3", align 8
  %9 = alloca %"class.jet::Size3", align 16
  %10 = alloca %"class.jet::Vector", align 8
  %11 = alloca %"class.jet::Vector", align 8
  %12 = alloca %"class.jet::Vector", align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %"class.std::function", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %15)
  call void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 376
  %18 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  %.031.sroa.gep33 = getelementptr inbounds i8, ptr %8, i64 8
  br i1 %18, label %19, label %20

19:                                               ; preds = %3
  br i1 %2, label %.thread53, label %.thread

20:                                               ; preds = %3
  %21 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  %22 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver36paramsEv(ptr noundef nonnull align 8 dereferenceable(145) %21)
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 304
  call void @_ZN3jet11FdmMgUtils321resizeArrayWithFinestINS_13FdmMatrixRow3EEEvRKNS_5Size3EmPSt6vectorINS_5ArrayIT_Lm3EEESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %23, ptr noundef nonnull %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 328
  call void @_ZN3jet11FdmMgUtils321resizeArrayWithFinestIdEEvRKNS_5Size3EmPSt6vectorINS_5ArrayIT_Lm3EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %23, ptr noundef nonnull %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 352
  call void @_ZN3jet11FdmMgUtils321resizeArrayWithFinestIdEEvRKNS_5Size3EmPSt6vectorINS_5ArrayIT_Lm3EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %23, ptr noundef nonnull %26)
  %27 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %28 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  br i1 %28, label %32, label %60

.thread53:                                        ; preds = %19
  %29 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  br i1 %29, label %.thread55, label %60

.thread:                                          ; preds = %19
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN3jet16FdmLinearSystem36resizeERKNS_5Size3E(ptr noundef nonnull align 8 dereferenceable(144) %30, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %31 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  br i1 %31, label %.thread50, label %60

32:                                               ; preds = %20
  br i1 %2, label %.thread55, label %.thread50

.thread55:                                        ; preds = %.thread53, %32
  %.0324957 = phi i64 [ %27, %32 ], [ 1, %.thread53 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 152
  %34 = getelementptr inbounds i8, ptr %0, i64 240
  %35 = getelementptr inbounds i8, ptr %0, i64 264
  %36 = getelementptr inbounds i8, ptr %0, i64 464
  %37 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef 0) #5
  %38 = getelementptr inbounds i8, ptr %0, i64 392
  %39 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 0) #5
  %40 = getelementptr inbounds i8, ptr %0, i64 416
  %41 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef 0) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 440
  %43 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef 0) #5
  %44 = getelementptr inbounds i8, ptr %0, i64 488
  call void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %44)
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm3EEESA_SA_SA_St8functionIFNS0_6VectorIdLm3EEERKSD_EERKNS0_17FaceCenteredGrid3E(ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 8 dereferenceable(48) %41, ptr noundef nonnull align 8 dereferenceable(48) %43, ptr noundef nonnull %5, ptr noundef nonnull align 8 dereferenceable(696) %1)
          to label %76 unwind label %45

45:                                               ; preds = %.thread55
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %140

.thread50:                                        ; preds = %.thread, %32
  %.0324952 = phi i64 [ %27, %32 ], [ 1, %.thread ]
  %47 = getelementptr inbounds i8, ptr %0, i64 8
  %48 = getelementptr inbounds i8, ptr %0, i64 104
  %49 = getelementptr inbounds i8, ptr %0, i64 464
  %50 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 0) #5
  %51 = getelementptr inbounds i8, ptr %0, i64 392
  %52 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef 0) #5
  %53 = getelementptr inbounds i8, ptr %0, i64 416
  %54 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 0) #5
  %55 = getelementptr inbounds i8, ptr %0, i64 440
  %56 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef 0) #5
  %57 = getelementptr inbounds i8, ptr %0, i64 488
  call void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %57)
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef nonnull %47, ptr noundef nonnull %48, ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 8 dereferenceable(48) %52, ptr noundef nonnull align 8 dereferenceable(48) %54, ptr noundef nonnull align 8 dereferenceable(48) %56, ptr noundef nonnull %6, ptr noundef nonnull align 8 dereferenceable(696) %1)
          to label %76 unwind label %58

58:                                               ; preds = %.thread50
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %140

60:                                               ; preds = %.thread53, %.thread, %20
  %.03248 = phi i64 [ 1, %.thread ], [ %27, %20 ], [ 1, %.thread53 ]
  %61 = getelementptr inbounds i8, ptr %0, i64 304
  %62 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #5
  %63 = getelementptr inbounds i8, ptr %0, i64 352
  %64 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIdLm3EEESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #5
  %65 = getelementptr inbounds i8, ptr %0, i64 464
  %66 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #5
  %67 = getelementptr inbounds i8, ptr %0, i64 392
  %68 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef 0) #5
  %69 = getelementptr inbounds i8, ptr %0, i64 416
  %70 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 0) #5
  %71 = getelementptr inbounds i8, ptr %0, i64 440
  %72 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 0) #5
  %73 = getelementptr inbounds i8, ptr %0, i64 488
  call void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %73)
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef nonnull %62, ptr noundef nonnull %64, ptr noundef nonnull align 8 dereferenceable(48) %66, ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 8 dereferenceable(48) %70, ptr noundef nonnull align 8 dereferenceable(48) %72, ptr noundef nonnull %7, ptr noundef nonnull align 8 dereferenceable(696) %1)
          to label %76 unwind label %74

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %140

76:                                               ; preds = %60, %.thread50, %.thread55
  %.sink = phi ptr [ %5, %.thread55 ], [ %6, %.thread50 ], [ %7, %60 ]
  %.03247 = phi i64 [ %.0324957, %.thread55 ], [ %.0324952, %.thread50 ], [ %.03248, %60 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #5
  call void @llvm.lifetime.start.p0(i64 696, ptr nonnull %8) #5
  call void @_ZN3jet17FaceCenteredGrid3C1Ev(ptr noundef nonnull align 8 dereferenceable(696) %8)
  %77 = icmp ugt i64 %.03247, 1
  br i1 %77, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %76
  %78 = getelementptr inbounds i8, ptr %9, i64 16
  %79 = getelementptr inbounds i8, ptr %0, i64 304
  %80 = getelementptr inbounds i8, ptr %0, i64 352
  %81 = getelementptr inbounds i8, ptr %0, i64 464
  %82 = getelementptr inbounds i8, ptr %0, i64 392
  %83 = getelementptr inbounds i8, ptr %0, i64 416
  %84 = getelementptr inbounds i8, ptr %0, i64 440
  %85 = getelementptr inbounds i8, ptr %0, i64 488
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %86 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %15)
          to label %87 unwind label %.loopexit.split-lp

87:                                               ; preds = %.lr.ph
  call void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %86)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %15)
          to label %89 unwind label %.loopexit.split-lp63

89:                                               ; preds = %87
  call void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %88)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %90 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid36originEv(ptr noundef nonnull align 8 dereferenceable(128) %15)
          to label %91 unwind label %.loopexit.split-lp68

91:                                               ; preds = %89
  call void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %90)
  %92 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %93 = lshr <2 x i64> %92, <i64 1, i64 1>
  store <2 x i64> %93, ptr %9, align 16, !tbaa !16
  %94 = load i64, ptr %78, align 16, !tbaa !17
  %95 = lshr i64 %94, 1
  store i64 %95, ptr %78, align 16, !tbaa !17
  %96 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEmLEd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef 2.000000e+00)
          to label %97 unwind label %.loopexit.split-lp68

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
  invoke void @_ZN3jet11VectorGrid36resizeERKNS_5Size3ERKNS_6VectorIdLm3EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(136) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %98 unwind label %.loopexit.split-lp73

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid37samplerEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function") align 8 %13, ptr noundef nonnull align 8 dereferenceable(696) %1)
          to label %99 unwind label %.loopexit.split-lp78

99:                                               ; preds = %98
  invoke void @_ZN3jet17FaceCenteredGrid34fillERKSt8functionIFNS_6VectorIdLm3EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(696) %8, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
          to label %100 unwind label %.loopexit.split-lp83

100:                                              ; preds = %99
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  %101 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef 1) #5
  %102 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef 1) #5
  %103 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef 1) #5
  %104 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 1) #5
  %105 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 1) #5
  %106 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef 1) #5
  invoke void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %107 unwind label %.loopexit.split-lp68

107:                                              ; preds = %100
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef nonnull %101, ptr noundef nonnull %102, ptr noundef nonnull align 8 dereferenceable(48) %103, ptr noundef nonnull align 8 dereferenceable(48) %104, ptr noundef nonnull align 8 dereferenceable(48) %105, ptr noundef nonnull align 8 dereferenceable(48) %106, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(696) %8)
          to label %108 unwind label %.loopexit.split-lp88

108:                                              ; preds = %107
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  %exitcond.peel.not = icmp eq i64 %.03247, 2
  br i1 %exitcond.peel.not, label %._crit_edge, label %.peel.next

._crit_edge:                                      ; preds = %131, %108, %76
  call void @_ZN3jet17FaceCenteredGrid3D2Ev(ptr noundef nonnull align 8 dereferenceable(696) %8) #5
  call void @llvm.lifetime.end.p0(i64 696, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret void

.peel.next:                                       ; preds = %108, %131
  %.060 = phi i64 [ %132, %131 ], [ 2, %108 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %109 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %.031.sroa.gep33)
          to label %110 unwind label %.loopexit

110:                                              ; preds = %.peel.next
  call void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %109)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %111 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %.031.sroa.gep33)
          to label %112 unwind label %.loopexit62

112:                                              ; preds = %110
  call void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %111)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %113 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid36originEv(ptr noundef nonnull align 8 dereferenceable(128) %.031.sroa.gep33)
          to label %114 unwind label %.loopexit67

114:                                              ; preds = %112
  call void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %113)
  %115 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %116 = lshr <2 x i64> %115, <i64 1, i64 1>
  store <2 x i64> %116, ptr %9, align 16, !tbaa !16
  %117 = load i64, ptr %78, align 16, !tbaa !17
  %118 = lshr i64 %117, 1
  store i64 %118, ptr %78, align 16, !tbaa !17
  %119 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEmLEd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef 2.000000e+00)
          to label %120 unwind label %.loopexit67

120:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
  invoke void @_ZN3jet11VectorGrid36resizeERKNS_5Size3ERKNS_6VectorIdLm3EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(136) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %121 unwind label %.loopexit72

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid37samplerEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function") align 8 %13, ptr noundef nonnull align 8 dereferenceable(696) %8)
          to label %122 unwind label %.loopexit77

122:                                              ; preds = %121
  invoke void @_ZN3jet17FaceCenteredGrid34fillERKSt8functionIFNS_6VectorIdLm3EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(696) %8, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
          to label %123 unwind label %.loopexit82

123:                                              ; preds = %122
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  %124 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %.060) #5
  %125 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %.060) #5
  %126 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %.060) #5
  %127 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %.060) #5
  %128 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %.060) #5
  %129 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3jet5ArrayIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %.060) #5
  invoke void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %130 unwind label %.loopexit67

130:                                              ; preds = %123
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef nonnull %124, ptr noundef nonnull %125, ptr noundef nonnull align 8 dereferenceable(48) %126, ptr noundef nonnull align 8 dereferenceable(48) %127, ptr noundef nonnull align 8 dereferenceable(48) %128, ptr noundef nonnull align 8 dereferenceable(48) %129, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(696) %8)
          to label %131 unwind label %.loopexit87

131:                                              ; preds = %130
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  %132 = add nuw i64 %.060, 1
  %exitcond.not = icmp eq i64 %132, %.03247
  br i1 %exitcond.not, label %._crit_edge, label %.peel.next, !llvm.loop !19

.loopexit:                                        ; preds = %.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit.split-lp:                               ; preds = %.lr.ph
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit62:                                      ; preds = %110
  %lpad.loopexit64 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit.split-lp63:                             ; preds = %87
  %lpad.loopexit.split-lp65 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit67:                                      ; preds = %112, %114, %123
  %lpad.loopexit69 = landingpad { ptr, i32 }
          cleanup
  br label %137

.loopexit.split-lp68:                             ; preds = %89, %91, %100
  %lpad.loopexit.split-lp70 = landingpad { ptr, i32 }
          cleanup
  br label %137

.loopexit72:                                      ; preds = %120
  %lpad.loopexit74 = landingpad { ptr, i32 }
          cleanup
  br label %133

.loopexit.split-lp73:                             ; preds = %97
  %lpad.loopexit.split-lp75 = landingpad { ptr, i32 }
          cleanup
  br label %133

133:                                              ; preds = %.loopexit.split-lp73, %.loopexit72
  %lpad.phi76 = phi { ptr, i32 } [ %lpad.loopexit74, %.loopexit72 ], [ %lpad.loopexit.split-lp75, %.loopexit.split-lp73 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %137

.loopexit77:                                      ; preds = %121
  %lpad.loopexit79 = landingpad { ptr, i32 }
          cleanup
  br label %135

.loopexit.split-lp78:                             ; preds = %98
  %lpad.loopexit.split-lp80 = landingpad { ptr, i32 }
          cleanup
  br label %135

.loopexit82:                                      ; preds = %122
  %lpad.loopexit84 = landingpad { ptr, i32 }
          cleanup
  br label %134

.loopexit.split-lp83:                             ; preds = %99
  %lpad.loopexit.split-lp85 = landingpad { ptr, i32 }
          cleanup
  br label %134

134:                                              ; preds = %.loopexit.split-lp83, %.loopexit82
  %lpad.phi86 = phi { ptr, i32 } [ %lpad.loopexit84, %.loopexit82 ], [ %lpad.loopexit.split-lp85, %.loopexit.split-lp83 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %135

135:                                              ; preds = %.loopexit77, %.loopexit.split-lp78, %134
  %.pn = phi { ptr, i32 } [ %lpad.phi86, %134 ], [ %lpad.loopexit79, %.loopexit77 ], [ %lpad.loopexit.split-lp80, %.loopexit.split-lp78 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  br label %137

.loopexit87:                                      ; preds = %130
  %lpad.loopexit89 = landingpad { ptr, i32 }
          cleanup
  br label %136

.loopexit.split-lp88:                             ; preds = %107
  %lpad.loopexit.split-lp90 = landingpad { ptr, i32 }
          cleanup
  br label %136

136:                                              ; preds = %.loopexit.split-lp88, %.loopexit87
  %lpad.phi91 = phi { ptr, i32 } [ %lpad.loopexit89, %.loopexit87 ], [ %lpad.loopexit.split-lp90, %.loopexit.split-lp88 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %137

137:                                              ; preds = %.loopexit67, %.loopexit.split-lp68, %136, %135, %133
  %.pn41 = phi { ptr, i32 } [ %lpad.phi91, %136 ], [ %.pn, %135 ], [ %lpad.phi76, %133 ], [ %lpad.loopexit69, %.loopexit67 ], [ %lpad.loopexit.split-lp70, %.loopexit.split-lp68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %138

138:                                              ; preds = %.loopexit62, %.loopexit.split-lp63, %137
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %137 ], [ %lpad.loopexit64, %.loopexit62 ], [ %lpad.loopexit.split-lp65, %.loopexit.split-lp63 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %139

139:                                              ; preds = %.loopexit, %.loopexit.split-lp, %138
  %.pn41.pn.pn = phi { ptr, i32 } [ %.pn41.pn, %138 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZN3jet17FaceCenteredGrid3D2Ev(ptr noundef nonnull align 8 dereferenceable(696) %8) #5
  call void @llvm.lifetime.end.p0(i64 696, ptr nonnull %8) #5
  br label %140

140:                                              ; preds = %139, %74, %58, %45
  %.pn41.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn.pn, %139 ], [ %46, %45 ], [ %59, %58 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn41.pn.pn.pn
}

declare void @_ZN3jet16FdmLinearSystem36resizeERKNS_5Size3E(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm3EEESA_SA_SA_St8functionIFNS0_6VectorIdLm3EEERKSD_EERKNS0_17FaceCenteredGrid3E(ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef nonnull align 8 dereferenceable(696)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFN3jet6VectorIdLm3EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEEPNS1_IdLm3EEERKNS1_IfLm3EEES9_S9_S9_St8functionIFNS0_6VectorIdLm3EEERKSC_EERKNS0_17FaceCenteredGrid3E(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef nonnull align 8 dereferenceable(696)) local_unnamed_addr #4

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

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

declare void @_ZN3jet17FaceCenteredGrid3C1Ev(ptr noundef nonnull align 8 dereferenceable(696)) unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid36originEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEmLEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #4 align 2

declare void @_ZN3jet11VectorGrid36resizeERKNS_5Size3ERKNS_6VectorIdLm3EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

declare void @_ZN3jet17FaceCenteredGrid34fillERKSt8functionIFNS_6VectorIdLm3EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3

declare void @_ZNK3jet17FaceCenteredGrid37samplerEv(ptr dead_on_unwind writable sret(%"class.std::function") align 8, ptr noundef nonnull align 8 dereferenceable(696)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet17FaceCenteredGrid3D2Ev(ptr noundef nonnull align 8 dereferenceable(696)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3jet12MgParametersINS_8FdmBlas3EEE", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !14, i64 56, !14, i64 88, !15, i64 120}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayINS0_13FdmMatrixRow3ELm3EEERKNS1_IdLm3EEEjdPS6_S9_EE", !12, i64 0, !13, i64 24}
!12 = !{!"_ZTSSt14_Function_base", !8, i64 0, !13, i64 16}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayIdLm3EEEPS2_EE", !12, i64 0, !13, i64 24}
!15 = !{!"double", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !7, i64 16}
!18 = !{!"_ZTSN3jet5Size3E", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = distinct !{!19, !20, !21}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass