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

; 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::Size2" = type { 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::FaceCenteredGrid2" = type { %"class.jet::VectorGrid2", %"class.jet::Array.0", %"class.jet::Array.0", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::LinearArraySampler", %"class.jet::LinearArraySampler", %"class.std::function" }
%"class.jet::VectorGrid2" = type { %"class.jet::VectorField2", %"class.jet::Grid2" }
%"class.jet::VectorField2" = type { %"class.jet::Field2" }
%"class.jet::Field2" = type { ptr }
%"class.jet::Grid2" = type { %"class.jet::Serializable", %"class.jet::Size2", %"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::Size2", %"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 }
%"class.jet::LinearArraySampler" = type { %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::ConstArrayAccessor" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::GridFractionalSinglePhasePressureSolver2" = type { %"class.jet::GridPressureSolver2", %"struct.jet::FdmLinearSystem2", %"struct.jet::FdmCompressedLinearSystem2", %"class.std::shared_ptr", %"struct.jet::FdmMgLinearSystem2", %"class.std::shared_ptr.21", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::function" }
%"class.jet::GridPressureSolver2" = type { ptr }
%"struct.jet::FdmLinearSystem2" = type { %"class.jet::Array", %"class.jet::Array.0", %"class.jet::Array.0" }
%"class.jet::Array" = type { %"class.jet::Size2", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::FdmMatrixRow2, std::allocator<jet::FdmMatrixRow2>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::FdmMatrixRow2, std::allocator<jet::FdmMatrixRow2>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::FdmMatrixRow2, std::allocator<jet::FdmMatrixRow2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::FdmMatrixRow2, std::allocator<jet::FdmMatrixRow2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.jet::FdmCompressedLinearSystem2" = 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.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::FdmMgLinearSystem2" = 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::FdmMatrixRow2, 2>, std::allocator<jet::Array<jet::FdmMatrixRow2, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow2, 2>, std::allocator<jet::Array<jet::FdmMatrixRow2, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow2, 2>, std::allocator<jet::Array<jet::FdmMatrixRow2, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<jet::FdmMatrixRow2, 2>, std::allocator<jet::Array<jet::FdmMatrixRow2, 2>>>::_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, 2>, std::allocator<jet::Array<double, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<double, 2>, std::allocator<jet::Array<double, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<double, 2>, std::allocator<jet::Array<double, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<double, 2>, std::allocator<jet::Array<double, 2>>>::_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, 2>, std::allocator<jet::Array<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<float, 2>, std::allocator<jet::Array<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<float, 2>, std::allocator<jet::Array<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<float, 2>, std::allocator<jet::Array<float, 2>>>::_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: mustprogress uwtable
define dso_local void @_ZN3jet40GridFractionalSinglePhasePressureSolver211buildSystemERKNS_17FaceCenteredGrid2Eb(ptr noundef nonnull align 8 dereferenceable(472) %0, ptr noundef nonnull align 8 dereferenceable(384) %1, i1 noundef zeroext %2) unnamed_addr #1 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::Size2", 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::FaceCenteredGrid2", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.jet::Size2", 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 16, 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(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %27)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %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::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 5
  %30 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver2EEbRKSt10shared_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::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 1
  call void @_ZN3jet16FdmLinearSystem26resizeERKNS_5Size2E(ptr noundef nonnull align 8 dereferenceable(120) %35, ptr noundef nonnull align 8 dereferenceable(16) %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::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 5
  %39 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #5
  %40 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver26paramsEv(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::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %45 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %45, i32 0, i32 0
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestINS_13FdmMatrixRow2EEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %43, ptr noundef %46)
  %47 = load i64, ptr %9, align 8, !tbaa !11
  %48 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %49 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.jet::MgVector", ptr %49, i32 0, i32 0
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIdEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %47, ptr noundef %50)
  %51 = load i64, ptr %9, align 8, !tbaa !11
  %52 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %53 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds %"struct.jet::MgVector", ptr %53, i32 0, i32 0
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIdEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %51, ptr noundef %54)
  %55 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %56 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %56, i32 0, i32 0
  %58 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_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::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 5
  %62 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr null) #5
  br i1 %62, label %63, label %105

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 %86

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

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

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

86:                                               ; preds = %63
  %87 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 1
  %88 = getelementptr inbounds %"struct.jet::FdmLinearSystem2", ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 1
  %90 = getelementptr inbounds %"struct.jet::FdmLinearSystem2", ptr %89, i32 0, i32 2
  %91 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 8
  %92 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef 0) #5
  %93 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 6
  %94 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef 0) #5
  %95 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 7
  %96 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef 0) #5
  %97 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 9
  call void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %97)
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef %88, ptr noundef %90, ptr noundef nonnull align 8 dereferenceable(40) %92, ptr noundef nonnull align 8 dereferenceable(40) %94, ptr noundef nonnull align 8 dereferenceable(40) %96, ptr noundef %14, ptr noundef nonnull align 8 dereferenceable(384) %98)
          to label %99 unwind label %100

99:                                               ; preds = %86
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %104

100:                                              ; preds = %86
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %12, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %222

104:                                              ; preds = %99, %81
  br label %127

105:                                              ; preds = %59
  %106 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %107 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %107, i32 0, i32 0
  %109 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #5
  %110 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %111 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %110, i32 0, i32 2
  %112 = getelementptr inbounds %"struct.jet::MgVector", ptr %111, i32 0, i32 0
  %113 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIdLm2EEESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #5
  %114 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 8
  %115 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef 0) #5
  %116 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 6
  %117 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef 0) #5
  %118 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 7
  %119 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef 0) #5
  %120 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 9
  call void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %120)
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef %109, ptr noundef %113, ptr noundef nonnull align 8 dereferenceable(40) %115, ptr noundef nonnull align 8 dereferenceable(40) %117, ptr noundef nonnull align 8 dereferenceable(40) %119, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(384) %121)
          to label %122 unwind label %123

122:                                              ; preds = %105
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %127

123:                                              ; preds = %105
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %222

127:                                              ; preds = %122, %104
  call void @llvm.lifetime.start.p0(i64 384, ptr %16) #5
  call void @_ZN3jet17FaceCenteredGrid2C1Ev(ptr noundef nonnull align 8 dereferenceable(384) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 1, ptr %17, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %186, %127
  %129 = load i64, ptr %17, align 8, !tbaa !11
  %130 = load i64, ptr %8, align 8, !tbaa !11
  %131 = icmp ult i64 %129, %130
  br i1 %131, label %133, label %132

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

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %135)
          to label %137 unwind label %189

137:                                              ; preds = %133
  invoke void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %136)
          to label %138 unwind label %189

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 8
  %141 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %140)
          to label %142 unwind label %193

142:                                              ; preds = %138
  invoke void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %141)
          to label %143 unwind label %193

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %146 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88) %145)
          to label %147 unwind label %197

147:                                              ; preds = %143
  invoke void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %146)
          to label %148 unwind label %197

148:                                              ; preds = %147
  %149 = getelementptr inbounds %"class.jet::Size2", ptr %18, i32 0, i32 0
  %150 = load i64, ptr %149, align 8, !tbaa !22
  %151 = lshr i64 %150, 1
  %152 = getelementptr inbounds %"class.jet::Size2", ptr %18, i32 0, i32 0
  store i64 %151, ptr %152, align 8, !tbaa !22
  %153 = getelementptr inbounds %"class.jet::Size2", ptr %18, i32 0, i32 1
  %154 = load i64, ptr %153, align 8, !tbaa !24
  %155 = lshr i64 %154, 1
  %156 = getelementptr inbounds %"class.jet::Size2", ptr %18, i32 0, i32 1
  store i64 %155, ptr %156, align 8, !tbaa !24
  %157 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEmLEd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 2.000000e+00)
          to label %158 unwind label %197

158:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  invoke void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %159 unwind label %201

159:                                              ; preds = %158
  invoke void @_ZN3jet11VectorGrid26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(96) %16, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %160 unwind label %201

160:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid27samplerEv(ptr dead_on_unwind writable sret(%"class.std::function") align 8 %22, ptr noundef nonnull align 8 dereferenceable(384) %161)
          to label %162 unwind label %205

162:                                              ; preds = %160
  invoke void @_ZN3jet17FaceCenteredGrid24fillERKSt8functionIFNS_6VectorIdLm2EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(384) %16, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1)
          to label %163 unwind label %209

163:                                              ; preds = %162
  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
  %164 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %165 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds %"struct.jet::MgMatrix", ptr %165, i32 0, i32 0
  %167 = load i64, ptr %17, align 8, !tbaa !11
  %168 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %167) #5
  %169 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 4
  %170 = getelementptr inbounds %"struct.jet::FdmMgLinearSystem2", ptr %169, i32 0, i32 2
  %171 = getelementptr inbounds %"struct.jet::MgVector", ptr %170, i32 0, i32 0
  %172 = load i64, ptr %17, align 8, !tbaa !11
  %173 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIdLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %172) #5
  %174 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 8
  %175 = load i64, ptr %17, align 8, !tbaa !11
  %176 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %175) #5
  %177 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 6
  %178 = load i64, ptr %17, align 8, !tbaa !11
  %179 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %178) #5
  %180 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 7
  %181 = load i64, ptr %17, align 8, !tbaa !11
  %182 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %181) #5
  %183 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %25, i32 0, i32 9
  invoke void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %183)
          to label %184 unwind label %197

184:                                              ; preds = %163
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef %168, ptr noundef %173, ptr noundef nonnull align 8 dereferenceable(40) %176, ptr noundef nonnull align 8 dereferenceable(40) %179, ptr noundef nonnull align 8 dereferenceable(40) %182, ptr noundef %23, ptr noundef nonnull align 8 dereferenceable(384) %16)
          to label %185 unwind label %214

185:                                              ; preds = %184
  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 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %186

186:                                              ; preds = %185
  %187 = load i64, ptr %17, align 8, !tbaa !11
  %188 = add i64 %187, 1
  store i64 %188, ptr %17, align 8, !tbaa !11
  br label %128, !llvm.loop !25

189:                                              ; preds = %137, %133
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %12, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %13, align 4
  br label %220

193:                                              ; preds = %142, %138
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %12, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %13, align 4
  br label %219

197:                                              ; preds = %163, %148, %147, %143
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %12, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %13, align 4
  br label %218

201:                                              ; preds = %159, %158
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %12, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %218

205:                                              ; preds = %160
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  br label %213

209:                                              ; preds = %162
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %12, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %213

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

214:                                              ; preds = %184
  %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 @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br label %218

218:                                              ; preds = %214, %213, %201, %197
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %219

219:                                              ; preds = %218, %193
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %220

220:                                              ; preds = %219, %189
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN3jet17FaceCenteredGrid2D2Ev(ptr noundef nonnull align 8 dereferenceable(384) %16) #5
  call void @llvm.lifetime.end.p0(i64 384, ptr %16) #5
  br label %222

221:                                              ; preds = %132
  call void @_ZN3jet17FaceCenteredGrid2D2Ev(ptr noundef nonnull align 8 dereferenceable(384) %16) #5
  call void @llvm.lifetime.end.p0(i64 384, 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 16, ptr %7) #5
  ret void

222:                                              ; preds = %220, %123, %100, %82
  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 16, ptr %7) #5
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %12, align 8
  %225 = load i32, ptr %13, align 4
  %226 = insertvalue { ptr, i32 } poison, ptr %224, 0
  %227 = insertvalue { ptr, i32 } %226, i32 %225, 1
  resume { ptr, i32 } %227
}

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

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

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver26paramsEv(ptr noundef nonnull align 8 dereferenceable(145)) #4

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

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

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

declare void @_ZN3jet16FdmLinearSystem26resizeERKNS_5Size2E(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(16)) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm2EEESA_SA_St8functionIFNS0_6VectorIdLm2EEERKSD_EERKNS0_17FaceCenteredGrid2E(ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(384)) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(384)) #1

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

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

declare void @_ZN3jet17FaceCenteredGrid2C1Ev(ptr noundef nonnull align 8 dereferenceable(384)) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEmLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #1 align 2

declare void @_ZN3jet11VectorGrid26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

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

declare void @_ZN3jet17FaceCenteredGrid24fillERKSt8functionIFNS_6VectorIdLm2EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #4

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !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_8FdmBlas2EEE", !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_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEEjdPS6_S9_EE", !19, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!20 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayIdLm2EEEPS2_EE", !19, i64 0, !6, i64 24}
!21 = !{!"double", !7, i64 0}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSN3jet5Size2E", !12, i64 0, !12, i64 8}
!24 = !{!23, !12, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"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::Size2" = type { 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::FaceCenteredGrid2" = type { %"class.jet::VectorGrid2", %"class.jet::Array.0", %"class.jet::Array.0", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::LinearArraySampler", %"class.jet::LinearArraySampler", %"class.std::function" }
%"class.jet::VectorGrid2" = type { %"class.jet::VectorField2", %"class.jet::Grid2" }
%"class.jet::VectorField2" = type { %"class.jet::Field2" }
%"class.jet::Field2" = type { ptr }
%"class.jet::Grid2" = type { %"class.jet::Serializable", %"class.jet::Size2", %"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::Size2", %"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 }
%"class.jet::LinearArraySampler" = type { %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::ConstArrayAccessor" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", 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: mustprogress uwtable
define dso_local void @_ZN3jet40GridFractionalSinglePhasePressureSolver211buildSystemERKNS_17FaceCenteredGrid2Eb(ptr noundef nonnull align 8 dereferenceable(472) %0, ptr noundef nonnull align 8 dereferenceable(384) %1, i1 noundef zeroext %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.jet::Size2", 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::FaceCenteredGrid2", align 8
  %9 = alloca %"class.jet::Size2", 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 16, ptr nonnull %4) #5
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 352
  %18 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  %.030.sroa.gep32 = getelementptr inbounds i8, ptr %8, i64 8
  br i1 %18, label %19, label %20

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

20:                                               ; preds = %3
  %21 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  %22 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver26paramsEv(ptr noundef nonnull align 8 dereferenceable(145) %21)
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 280
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestINS_13FdmMatrixRow2EEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %23, ptr noundef nonnull %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 304
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIdEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %23, ptr noundef nonnull %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 328
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIdEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %23, ptr noundef nonnull %26)
  %27 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %28 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  br i1 %28, label %32, label %56

.thread52:                                        ; preds = %19
  %29 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  br i1 %29, label %.thread54, label %56

.thread:                                          ; preds = %19
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN3jet16FdmLinearSystem26resizeERKNS_5Size2E(ptr noundef nonnull align 8 dereferenceable(120) %30, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %31 = call noundef zeroext i1 @_ZSteqIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #5
  br i1 %31, label %.thread49, label %56

32:                                               ; preds = %20
  br i1 %2, label %.thread54, label %.thread49

.thread54:                                        ; preds = %.thread52, %32
  %.0314856 = phi i64 [ %27, %32 ], [ 1, %.thread52 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  %34 = getelementptr inbounds i8, ptr %0, i64 216
  %35 = getelementptr inbounds i8, ptr %0, i64 240
  %36 = getelementptr inbounds i8, ptr %0, i64 416
  %37 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef 0) #5
  %38 = getelementptr inbounds i8, ptr %0, i64 368
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 0) #5
  %40 = getelementptr inbounds i8, ptr %0, i64 392
  %41 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef 0) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 440
  call void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %42)
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm2EEESA_SA_St8functionIFNS0_6VectorIdLm2EEERKSD_EERKNS0_17FaceCenteredGrid2E(ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull align 8 dereferenceable(40) %37, ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull align 8 dereferenceable(40) %41, ptr noundef nonnull %5, ptr noundef nonnull align 8 dereferenceable(384) %1)
          to label %70 unwind label %43

43:                                               ; preds = %.thread54
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %126

.thread49:                                        ; preds = %.thread, %32
  %.0314851 = phi i64 [ %27, %32 ], [ 1, %.thread ]
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = getelementptr inbounds i8, ptr %0, i64 88
  %47 = getelementptr inbounds i8, ptr %0, i64 416
  %48 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 0) #5
  %49 = getelementptr inbounds i8, ptr %0, i64 368
  %50 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_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(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef 0) #5
  %53 = getelementptr inbounds i8, ptr %0, i64 440
  call void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %53)
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(40) %50, ptr noundef nonnull align 8 dereferenceable(40) %52, ptr noundef nonnull %6, ptr noundef nonnull align 8 dereferenceable(384) %1)
          to label %70 unwind label %54

54:                                               ; preds = %.thread49
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %126

56:                                               ; preds = %.thread52, %.thread, %20
  %.03147 = phi i64 [ 1, %.thread ], [ %27, %20 ], [ 1, %.thread52 ]
  %57 = getelementptr inbounds i8, ptr %0, i64 280
  %58 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #5
  %59 = getelementptr inbounds i8, ptr %0, i64 328
  %60 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIdLm2EEESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %61 = getelementptr inbounds i8, ptr %0, i64 416
  %62 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 0) #5
  %63 = getelementptr inbounds i8, ptr %0, i64 368
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef 0) #5
  %65 = getelementptr inbounds i8, ptr %0, i64 392
  %66 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #5
  %67 = getelementptr inbounds i8, ptr %0, i64 440
  call void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %67)
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef nonnull %58, ptr noundef nonnull %60, ptr noundef nonnull align 8 dereferenceable(40) %62, ptr noundef nonnull align 8 dereferenceable(40) %64, ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull %7, ptr noundef nonnull align 8 dereferenceable(384) %1)
          to label %70 unwind label %68

68:                                               ; preds = %56
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %126

70:                                               ; preds = %56, %.thread49, %.thread54
  %.sink = phi ptr [ %5, %.thread54 ], [ %6, %.thread49 ], [ %7, %56 ]
  %.03146 = phi i64 [ %.0314856, %.thread54 ], [ %.0314851, %.thread49 ], [ %.03147, %56 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #5
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %8) #5
  call void @_ZN3jet17FaceCenteredGrid2C1Ev(ptr noundef nonnull align 8 dereferenceable(384) %8)
  %71 = icmp ugt i64 %.03146, 1
  br i1 %71, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %70
  %72 = getelementptr inbounds i8, ptr %0, i64 280
  %73 = getelementptr inbounds i8, ptr %0, i64 328
  %74 = getelementptr inbounds i8, ptr %0, i64 416
  %75 = getelementptr inbounds i8, ptr %0, i64 368
  %76 = getelementptr inbounds i8, ptr %0, i64 392
  %77 = getelementptr inbounds i8, ptr %0, i64 440
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %79 unwind label %.loopexit.split-lp

79:                                               ; preds = %.lr.ph
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %78)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %81 unwind label %.loopexit.split-lp62

81:                                               ; preds = %79
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %80)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %82 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %83 unwind label %.loopexit.split-lp67

83:                                               ; preds = %81
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %82)
  %84 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %85 = lshr <2 x i64> %84, <i64 1, i64 1>
  store <2 x i64> %85, ptr %9, align 16, !tbaa !16
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEmLEd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 2.000000e+00)
          to label %87 unwind label %.loopexit.split-lp67

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  invoke void @_ZN3jet11VectorGrid26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %88 unwind label %.loopexit.split-lp72

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid27samplerEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function") align 8 %13, ptr noundef nonnull align 8 dereferenceable(384) %1)
          to label %89 unwind label %.loopexit.split-lp77

89:                                               ; preds = %88
  invoke void @_ZN3jet17FaceCenteredGrid24fillERKSt8functionIFNS_6VectorIdLm2EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(384) %8, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
          to label %90 unwind label %.loopexit.split-lp82

90:                                               ; preds = %89
  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
  %91 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef 1) #5
  %92 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIdLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 1) #5
  %93 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef 1) #5
  %94 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 1) #5
  %95 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef 1) #5
  invoke void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %77)
          to label %96 unwind label %.loopexit.split-lp67

96:                                               ; preds = %90
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef nonnull %91, ptr noundef nonnull %92, ptr noundef nonnull align 8 dereferenceable(40) %93, ptr noundef nonnull align 8 dereferenceable(40) %94, ptr noundef nonnull align 8 dereferenceable(40) %95, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(384) %8)
          to label %97 unwind label %.loopexit.split-lp87

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

._crit_edge:                                      ; preds = %117, %97, %70
  call void @_ZN3jet17FaceCenteredGrid2D2Ev(ptr noundef nonnull align 8 dereferenceable(384) %8) #5
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  ret void

.peel.next:                                       ; preds = %97, %117
  %.059 = phi i64 [ %118, %117 ], [ 2, %97 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %98 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %.030.sroa.gep32)
          to label %99 unwind label %.loopexit

99:                                               ; preds = %.peel.next
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %98)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %100 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %.030.sroa.gep32)
          to label %101 unwind label %.loopexit61

101:                                              ; preds = %99
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %100)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88) %.030.sroa.gep32)
          to label %103 unwind label %.loopexit66

103:                                              ; preds = %101
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %102)
  %104 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %105 = lshr <2 x i64> %104, <i64 1, i64 1>
  store <2 x i64> %105, ptr %9, align 16, !tbaa !16
  %106 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEmLEd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 2.000000e+00)
          to label %107 unwind label %.loopexit66

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  invoke void @_ZN3jet11VectorGrid26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %108 unwind label %.loopexit71

108:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid27samplerEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function") align 8 %13, ptr noundef nonnull align 8 dereferenceable(384) %8)
          to label %109 unwind label %.loopexit76

109:                                              ; preds = %108
  invoke void @_ZN3jet17FaceCenteredGrid24fillERKSt8functionIFNS_6VectorIdLm2EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(384) %8, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
          to label %110 unwind label %.loopexit81

110:                                              ; preds = %109
  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
  %111 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %.059) #5
  %112 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIdLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %.059) #5
  %113 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %.059) #5
  %114 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %.059) #5
  %115 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %.059) #5
  invoke void @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %77)
          to label %116 unwind label %.loopexit66

116:                                              ; preds = %110
  invoke void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef nonnull %111, ptr noundef nonnull %112, ptr noundef nonnull align 8 dereferenceable(40) %113, ptr noundef nonnull align 8 dereferenceable(40) %114, ptr noundef nonnull align 8 dereferenceable(40) %115, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(384) %8)
          to label %117 unwind label %.loopexit86

117:                                              ; preds = %116
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  %118 = add nuw i64 %.059, 1
  %exitcond.not = icmp eq i64 %118, %.03146
  br i1 %exitcond.not, label %._crit_edge, label %.peel.next, !llvm.loop !17

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

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

.loopexit61:                                      ; preds = %99
  %lpad.loopexit63 = landingpad { ptr, i32 }
          cleanup
  br label %124

.loopexit.split-lp62:                             ; preds = %79
  %lpad.loopexit.split-lp64 = landingpad { ptr, i32 }
          cleanup
  br label %124

.loopexit66:                                      ; preds = %101, %103, %110
  %lpad.loopexit68 = landingpad { ptr, i32 }
          cleanup
  br label %123

.loopexit.split-lp67:                             ; preds = %81, %83, %90
  %lpad.loopexit.split-lp69 = landingpad { ptr, i32 }
          cleanup
  br label %123

.loopexit71:                                      ; preds = %107
  %lpad.loopexit73 = landingpad { ptr, i32 }
          cleanup
  br label %119

.loopexit.split-lp72:                             ; preds = %87
  %lpad.loopexit.split-lp74 = landingpad { ptr, i32 }
          cleanup
  br label %119

119:                                              ; preds = %.loopexit.split-lp72, %.loopexit71
  %lpad.phi75 = phi { ptr, i32 } [ %lpad.loopexit73, %.loopexit71 ], [ %lpad.loopexit.split-lp74, %.loopexit.split-lp72 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %123

.loopexit76:                                      ; preds = %108
  %lpad.loopexit78 = landingpad { ptr, i32 }
          cleanup
  br label %121

.loopexit.split-lp77:                             ; preds = %88
  %lpad.loopexit.split-lp79 = landingpad { ptr, i32 }
          cleanup
  br label %121

.loopexit81:                                      ; preds = %109
  %lpad.loopexit83 = landingpad { ptr, i32 }
          cleanup
  br label %120

.loopexit.split-lp82:                             ; preds = %89
  %lpad.loopexit.split-lp84 = landingpad { ptr, i32 }
          cleanup
  br label %120

120:                                              ; preds = %.loopexit.split-lp82, %.loopexit81
  %lpad.phi85 = phi { ptr, i32 } [ %lpad.loopexit83, %.loopexit81 ], [ %lpad.loopexit.split-lp84, %.loopexit.split-lp82 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %121

121:                                              ; preds = %.loopexit76, %.loopexit.split-lp77, %120
  %.pn = phi { ptr, i32 } [ %lpad.phi85, %120 ], [ %lpad.loopexit78, %.loopexit76 ], [ %lpad.loopexit.split-lp79, %.loopexit.split-lp77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  br label %123

.loopexit86:                                      ; preds = %116
  %lpad.loopexit88 = landingpad { ptr, i32 }
          cleanup
  br label %122

.loopexit.split-lp87:                             ; preds = %96
  %lpad.loopexit.split-lp89 = landingpad { ptr, i32 }
          cleanup
  br label %122

122:                                              ; preds = %.loopexit.split-lp87, %.loopexit86
  %lpad.phi90 = phi { ptr, i32 } [ %lpad.loopexit88, %.loopexit86 ], [ %lpad.loopexit.split-lp89, %.loopexit.split-lp87 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %123

123:                                              ; preds = %.loopexit66, %.loopexit.split-lp67, %122, %121, %119
  %.pn40 = phi { ptr, i32 } [ %lpad.phi90, %122 ], [ %.pn, %121 ], [ %lpad.phi75, %119 ], [ %lpad.loopexit68, %.loopexit66 ], [ %lpad.loopexit.split-lp69, %.loopexit.split-lp67 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %124

124:                                              ; preds = %.loopexit61, %.loopexit.split-lp62, %123
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %123 ], [ %lpad.loopexit63, %.loopexit61 ], [ %lpad.loopexit.split-lp64, %.loopexit.split-lp62 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %125

125:                                              ; preds = %.loopexit, %.loopexit.split-lp, %124
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %124 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN3jet17FaceCenteredGrid2D2Ev(ptr noundef nonnull align 8 dereferenceable(384) %8) #5
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %8) #5
  br label %126

126:                                              ; preds = %125, %68, %54, %43
  %.pn40.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn, %125 ], [ %44, %43 ], [ %55, %54 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn40.pn.pn.pn
}

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

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

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver26paramsEv(ptr noundef nonnull align 8 dereferenceable(145)) local_unnamed_addr #4

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

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

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

declare void @_ZN3jet16FdmLinearSystem26resizeERKNS_5Size2E(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet9MatrixCsrIdEEPNS0_7VectorNIdEES6_RKNS0_5ArrayIfLm2EEESA_SA_St8functionIFNS0_6VectorIdLm2EEERKSD_EERKNS0_17FaceCenteredGrid2E(ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117buildSingleSystemEPN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEEPNS1_IdLm2EEERKNS1_IfLm2EEES9_S9_St8functionIFNS0_6VectorIdLm2EEERKSC_EERKNS0_17FaceCenteredGrid2E(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #1

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

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

declare void @_ZN3jet17FaceCenteredGrid2C1Ev(ptr noundef nonnull align 8 dereferenceable(384)) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEmLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #1 align 2

declare void @_ZN3jet11VectorGrid26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_S7_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

declare void @_ZN3jet17FaceCenteredGrid24fillERKSt8functionIFNS_6VectorIdLm2EEERKS3_EENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #4

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3jet12MgParametersINS_8FdmBlas2EEE", !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_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEEjdPS6_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 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayIdLm2EEEPS2_EE", !12, i64 0, !13, i64 24}
!15 = !{!"double", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18, !19}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"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