; 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.48" = 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.jet::Vector" = type { double, double }
%class.anon = type { ptr, ptr, ptr }
%class.anon.51 = type { ptr, ptr, ptr, ptr }
%class.anon.52 = type { ptr, ptr, ptr, 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 }
%"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 }
%"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 @_ZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_(ptr noundef nonnull align 8 dereferenceable(472) %0, ptr noundef nonnull align 8 dereferenceable(384) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.jet::Size2", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.jet::Size2", align 8
  %15 = alloca %"class.jet::Size2", align 8
  %16 = alloca %"class.jet::Size2", align 8
  %17 = alloca float, align 4
  %18 = alloca %"class.jet::Size2", align 8
  %19 = alloca %"class.jet::Size2", align 8
  %20 = alloca %"class.jet::Size2", align 8
  %21 = alloca float, align 4
  %22 = alloca %"class.std::function.48", align 8
  %23 = alloca %"class.std::function.48", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::function.48", align 8
  %27 = alloca %"class.std::function", align 8
  %28 = alloca %"class.jet::Vector", align 8
  %29 = alloca %class.anon, align 8
  %30 = alloca %class.anon.51, align 8
  %31 = alloca %class.anon.52, align 8
  %32 = alloca i64, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %41)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %42)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 1, ptr %12, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 5
  %44 = call noundef zeroext i1 @_ZStneIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr null) #6
  br i1 %44, label %45, label %51

45:                                               ; preds = %5
  %46 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 5
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  %48 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver26paramsEv(ptr noundef nonnull align 8 dereferenceable(145) %47)
  %49 = getelementptr inbounds %"struct.jet::MgParameters", ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  store i64 %50, ptr %12, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %45, %5
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIfEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %52, ptr noundef %53)
  %54 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 6
  %55 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %56 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  call void @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56)
  %57 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 7
  %58 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %59 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  call void @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %79, %51
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %63 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #6
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %82

66:                                               ; preds = %60
  %67 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 6
  %68 = load i64, ptr %13, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %70 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %71 = load i64, ptr %13, align 8, !tbaa !9
  %72 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %71) #6
  call void @_ZNK3jet5ArrayIfLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %72)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @_ZN3jet5Size2C2Emm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef 1, i64 noundef 0)
  call void @_ZN3jetplERKNS_5Size2ES2_(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store float 0.000000e+00, ptr %17, align 4, !tbaa !18
  call void @_ZN3jet5ArrayIfLm2EE6resizeERKNS_5Size2ERKf(ptr noundef nonnull align 8 dereferenceable(40) %69, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %73 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 7
  %74 = load i64, ptr %13, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %74) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %76 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %77 = load i64, ptr %13, align 8, !tbaa !9
  %78 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77) #6
  call void @_ZNK3jet5ArrayIfLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %78)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @_ZN3jet5Size2C2Emm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef 0, i64 noundef 1)
  call void @_ZN3jetplERKNS_5Size2ES2_(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float 0.000000e+00, ptr %21, align 4, !tbaa !18
  call void @_ZN3jet5ArrayIfLm2EE6resizeERKNS_5Size2ERKf(ptr noundef nonnull align 8 dereferenceable(40) %75, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %79

79:                                               ; preds = %66
  %80 = load i64, ptr %13, align 8, !tbaa !9
  %81 = add i64 %80, 1
  store i64 %81, ptr %13, align 8, !tbaa !9
  br label %60, !llvm.loop !20

82:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 8
  call void @_ZNK3jet5Grid218cellCenterPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.48") align 8 %22, ptr noundef nonnull align 8 dereferenceable(88) %84)
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.48") align 8 %23, ptr noundef nonnull align 8 dereferenceable(384) %85)
          to label %86 unwind label %130

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.48") align 8 %26, ptr noundef nonnull align 8 dereferenceable(384) %87)
          to label %88 unwind label %134

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  %91 = getelementptr inbounds ptr, ptr %90, i64 5
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr dead_on_unwind writable sret(%"class.std::function") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %93 unwind label %138

93:                                               ; preds = %88
  %94 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 9
  %95 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEaSEOS6_(ptr noundef nonnull align 8 dereferenceable(32) %94, ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %97)
          to label %99 unwind label %142

99:                                               ; preds = %93
  invoke void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %98)
          to label %100 unwind label %142

100:                                              ; preds = %99
  %101 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %102 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef 0) #6
  %103 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 0
  store ptr %39, ptr %103, align 8, !tbaa !24
  %104 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 1
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %105, ptr %104, align 8, !tbaa !5
  %106 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 2
  store ptr %22, ptr %106, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %102, ptr noundef byval(%class.anon) align 8 %29)
          to label %107 unwind label %142

107:                                              ; preds = %100
  %108 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 6
  %109 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef 0) #6
  %110 = getelementptr inbounds %class.anon.51, ptr %30, i32 0, i32 0
  store ptr %23, ptr %110, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.anon.51, ptr %30, i32 0, i32 1
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %112, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.anon.51, ptr %30, i32 0, i32 2
  store ptr %28, ptr %113, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.anon.51, ptr %30, i32 0, i32 3
  store ptr %39, ptr %114, align 8, !tbaa !26
  invoke void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %109, ptr noundef byval(%class.anon.51) align 8 %30)
          to label %115 unwind label %142

115:                                              ; preds = %107
  %116 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 7
  %117 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef 0) #6
  %118 = getelementptr inbounds %class.anon.52, ptr %31, i32 0, i32 0
  store ptr %26, ptr %118, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.anon.52, ptr %31, i32 0, i32 1
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %120, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.anon.52, ptr %31, i32 0, i32 2
  store ptr %28, ptr %121, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.anon.52, ptr %31, i32 0, i32 3
  store ptr %39, ptr %122, align 8, !tbaa !28
  invoke void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %117, ptr noundef byval(%class.anon.52) align 8 %31)
          to label %123 unwind label %142

123:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store i64 1, ptr %32, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %177, %123
  %125 = load i64, ptr %32, align 8, !tbaa !9
  %126 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %127 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #6
  %128 = icmp ult i64 %125, %127
  br i1 %128, label %146, label %129

129:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %184

130:                                              ; preds = %82
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %24, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %25, align 4
  br label %188

134:                                              ; preds = %86
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %24, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %25, align 4
  br label %187

138:                                              ; preds = %88
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %24, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %186

142:                                              ; preds = %115, %107, %100, %99, %93
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %24, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %25, align 4
  br label %185

146:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %147 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %148 = load i64, ptr %32, align 8, !tbaa !9
  %149 = sub i64 %148, 1
  %150 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #6
  store ptr %150, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %151 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 8
  %152 = load i64, ptr %32, align 8, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %152) #6
  store ptr %153, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %154 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 6
  %155 = load i64, ptr %32, align 8, !tbaa !9
  %156 = sub i64 %155, 1
  %157 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #6
  store ptr %157, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %158 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 6
  %159 = load i64, ptr %32, align 8, !tbaa !9
  %160 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %159) #6
  store ptr %160, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %161 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 7
  %162 = load i64, ptr %32, align 8, !tbaa !9
  %163 = sub i64 %162, 1
  %164 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %163) #6
  store ptr %164, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %165 = getelementptr inbounds %"class.jet::GridFractionalSinglePhasePressureSolver2", ptr %39, i32 0, i32 7
  %166 = load i64, ptr %32, align 8, !tbaa !9
  %167 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %166) #6
  store ptr %167, ptr %38, align 8, !tbaa !5
  %168 = load ptr, ptr %33, align 8, !tbaa !5
  %169 = load ptr, ptr %34, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_18restrictERKN3jet5ArrayIfLm2EEEPS2_(ptr noundef nonnull align 8 dereferenceable(40) %168, ptr noundef %169)
          to label %170 unwind label %180

170:                                              ; preds = %146
  %171 = load ptr, ptr %35, align 8, !tbaa !5
  %172 = load ptr, ptr %36, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_18restrictERKN3jet5ArrayIfLm2EEEPS2_(ptr noundef nonnull align 8 dereferenceable(40) %171, ptr noundef %172)
          to label %173 unwind label %180

173:                                              ; preds = %170
  %174 = load ptr, ptr %37, align 8, !tbaa !5
  %175 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_18restrictERKN3jet5ArrayIfLm2EEEPS2_(ptr noundef nonnull align 8 dereferenceable(40) %174, ptr noundef %175)
          to label %176 unwind label %180

176:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %177

177:                                              ; preds = %176
  %178 = load i64, ptr %32, align 8, !tbaa !9
  %179 = add i64 %178, 1
  store i64 %179, ptr %32, align 8, !tbaa !9
  br label %124, !llvm.loop !30

180:                                              ; preds = %173, %170, %146
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %24, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %185

184:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  ret void

185:                                              ; preds = %180, %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %186

186:                                              ; preds = %185, %138
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %187

187:                                              ; preds = %186, %134
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %188

188:                                              ; preds = %187, %130
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr %24, align 8
  %191 = load i32, ptr %25, align 4
  %192 = insertvalue { ptr, i32 } poison, ptr %190, 0
  %193 = insertvalue { ptr, i32 } %192, i32 %191, 1
  resume { ptr, i32 } %193
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3jetplERKNS_5Size2ES2_(ptr dead_on_unwind noalias writable sret(%"class.jet::Size2") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet5ArrayIfLm2EE4sizeEv(ptr dead_on_unwind noalias writable sret(%"class.jet::Size2") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon) align 8) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.51) align 8) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.52) align 8) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN3jet12MgParametersINS_8FdmBlas2EEE", !10, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24, !16, i64 56, !16, i64 88, !17, i64 120}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEEjdPS6_S9_EE", !15, i64 0, !6, i64 24}
!15 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!16 = !{!"_ZTSSt8functionIFvRKN3jet5ArrayIdLm2EEEPS2_EE", !15, i64 0, !6, i64 24}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_E3$_0", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!27, !6, i64 24}
!27 = !{!"_ZTSZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_E3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!29, !6, i64 24}
!29 = !{!"_ZTSZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_E3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!30 = distinct !{!30, !21}


; 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.48" = 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.jet::Vector" = type { double, double }
%class.anon = type { ptr, ptr, ptr }
%class.anon.51 = type { ptr, ptr, ptr, ptr }
%class.anon.52 = type { ptr, ptr, ptr, 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 @_ZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_(ptr noundef nonnull align 8 dereferenceable(472) %0, ptr noundef nonnull align 8 dereferenceable(384) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.jet::Size2", align 8
  %7 = alloca %"class.jet::Size2", align 8
  %8 = alloca %"class.jet::Size2", align 8
  %9 = alloca %"class.jet::Size2", align 8
  %10 = alloca float, align 4
  %11 = alloca %"class.jet::Size2", align 8
  %12 = alloca %"class.jet::Size2", align 8
  %13 = alloca %"class.jet::Size2", align 8
  %14 = alloca float, align 4
  %15 = alloca %"class.std::function.48", align 8
  %16 = alloca %"class.std::function.48", align 8
  %17 = alloca %"class.std::function.48", align 8
  %18 = alloca %"class.std::function", align 8
  %19 = alloca %"class.jet::Vector", align 8
  %20 = alloca %class.anon, align 8
  %21 = alloca %class.anon.51, align 8
  %22 = alloca %class.anon.52, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %23)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 352
  %26 = call noundef zeroext i1 @_ZStneIN3jet12FdmMgSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr null) #6
  br i1 %26, label %27, label %31

27:                                               ; preds = %5
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet12FdmMgSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  %29 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3jet12FdmMgSolver26paramsEv(ptr noundef nonnull align 8 dereferenceable(145) %28)
  %30 = load i64, ptr %29, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %27, %5
  %.0 = phi i64 [ %30, %27 ], [ 1, %5 ]
  %32 = getelementptr inbounds i8, ptr %0, i64 416
  call void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIfEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %.0, ptr noundef nonnull %32)
  %33 = getelementptr inbounds i8, ptr %0, i64 368
  %34 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 392
  %36 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %36)
  %37 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %.not = icmp eq i64 %37, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @_ZNK3jet5Grid218cellCenterPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.48") align 8 %15, ptr noundef nonnull align 8 dereferenceable(88) %23)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  invoke void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.48") align 8 %16, ptr noundef nonnull align 8 dereferenceable(384) %1)
          to label %45 unwind label %70

.lr.ph:                                           ; preds = %31, %.lr.ph
  %.03243 = phi i64 [ %42, %.lr.ph ], [ 0, %31 ]
  %38 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %.03243) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %.03243) #6
  call void @_ZNK3jet5ArrayIfLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %39)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN3jet5Size2C2Emm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef 1, i64 noundef 0)
  call void @_ZN3jetplERKNS_5Size2ES2_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store float 0.000000e+00, ptr %10, align 4, !tbaa !16
  call void @_ZN3jet5ArrayIfLm2EE6resizeERKNS_5Size2ERKf(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %40 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %.03243) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %41 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %.03243) #6
  call void @_ZNK3jet5ArrayIfLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %41)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @_ZN3jet5Size2C2Emm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef 0, i64 noundef 1)
  call void @_ZN3jetplERKNS_5Size2ES2_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store float 0.000000e+00, ptr %14, align 4, !tbaa !16
  call void @_ZN3jet5ArrayIfLm2EE6resizeERKNS_5Size2ERKf(ptr noundef nonnull align 8 dereferenceable(40) %40, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %42 = add nuw i64 %.03243, 1
  %43 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %.lr.ph, label %._crit_edge, !llvm.loop !18

45:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  invoke void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.48") align 8 %17, ptr noundef nonnull align 8 dereferenceable(384) %1)
          to label %46 unwind label %72

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  %47 = load ptr, ptr %3, align 8, !tbaa !20
  %48 = getelementptr inbounds i8, ptr %47, i64 40
  %49 = load ptr, ptr %48, align 8
  invoke void %49(ptr dead_on_unwind nonnull writable sret(%"class.std::function") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %50 unwind label %74

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %0, i64 440
  %52 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFN3jet6VectorIdLm2EEERKS2_EEaSEOS6_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %23)
          to label %54 unwind label %76

54:                                               ; preds = %50
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %53)
  %55 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 0) #6
  store ptr %0, ptr %20, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %20, i64 8
  store ptr %4, ptr %56, align 8, !tbaa !24
  %57 = getelementptr inbounds i8, ptr %20, i64 16
  store ptr %15, ptr %57, align 8, !tbaa !24
  invoke void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %55, ptr noundef nonnull byval(%class.anon) align 8 %20)
          to label %58 unwind label %76

58:                                               ; preds = %54
  %59 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 0) #6
  store ptr %16, ptr %21, align 8, !tbaa !24
  %60 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %2, ptr %60, align 8, !tbaa !24
  %61 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr %19, ptr %61, align 8, !tbaa !24
  %62 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %0, ptr %62, align 8, !tbaa !25
  invoke void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %59, ptr noundef nonnull byval(%class.anon.51) align 8 %21)
          to label %63 unwind label %76

63:                                               ; preds = %58
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef 0) #6
  store ptr %17, ptr %22, align 8, !tbaa !24
  %65 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %2, ptr %65, align 8, !tbaa !24
  %66 = getelementptr inbounds i8, ptr %22, i64 16
  store ptr %19, ptr %66, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %22, i64 24
  store ptr %0, ptr %67, align 8, !tbaa !27
  invoke void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %64, ptr noundef nonnull byval(%class.anon.52) align 8 %22)
          to label %.preheader unwind label %76

.preheader:                                       ; preds = %63
  %68 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %69 = icmp ugt i64 %68, 1
  br i1 %69, label %.lr.ph45, label %._crit_edge46

._crit_edge46:                                    ; preds = %87, %.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  ret void

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %96

72:                                               ; preds = %45
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %95

74:                                               ; preds = %46
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %94

76:                                               ; preds = %63, %58, %54, %50
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %93

.lr.ph45:                                         ; preds = %.preheader, %87
  %.03844 = phi i64 [ %88, %87 ], [ 1, %.preheader ]
  %78 = add i64 %.03844, -1
  %79 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %78) #6
  %80 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %.03844) #6
  %81 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %78) #6
  %82 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %.03844) #6
  %83 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %78) #6
  %84 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %.03844) #6
  invoke void @_ZN12_GLOBAL__N_18restrictERKN3jet5ArrayIfLm2EEEPS2_(ptr noundef nonnull align 8 dereferenceable(40) %79, ptr noundef nonnull %80)
          to label %85 unwind label %91

85:                                               ; preds = %.lr.ph45
  invoke void @_ZN12_GLOBAL__N_18restrictERKN3jet5ArrayIfLm2EEEPS2_(ptr noundef nonnull align 8 dereferenceable(40) %81, ptr noundef nonnull %82)
          to label %86 unwind label %91

86:                                               ; preds = %85
  invoke void @_ZN12_GLOBAL__N_18restrictERKN3jet5ArrayIfLm2EEEPS2_(ptr noundef nonnull align 8 dereferenceable(40) %83, ptr noundef nonnull %84)
          to label %87 unwind label %91

87:                                               ; preds = %86
  %88 = add nuw i64 %.03844, 1
  %89 = call noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %90 = icmp ult i64 %88, %89
  br i1 %90, label %.lr.ph45, label %._crit_edge46, !llvm.loop !29

91:                                               ; preds = %86, %85, %.lr.ph45
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %93

93:                                               ; preds = %91, %76
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %94

94:                                               ; preds = %93, %74
  %.pn.pn = phi { ptr, i32 } [ %.pn, %93 ], [ %75, %74 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %95

95:                                               ; preds = %94, %72
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %94 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %96

96:                                               ; preds = %95, %70
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %95 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet11FdmMgUtils221resizeArrayWithFinestIfEEvRKNS_5Size2EmPSt6vectorINS_5ArrayIT_Lm2EEESaIS8_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 @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EE4sizeEv(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(40) ptr @_ZNSt6vectorIN3jet5ArrayIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3jetplERKNS_5Size2ES2_(ptr dead_on_unwind noalias writable sret(%"class.jet::Size2") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet5ArrayIfLm2EE4sizeEv(ptr dead_on_unwind noalias writable sret(%"class.jet::Size2") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

declare void @_ZNK3jet5Grid218cellCenterPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.48") align 8, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3

declare void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.48") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #3

declare void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.48") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.51) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIfLm2EE20parallelForEachIndexIZNS_40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES9_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.52) align 8) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !9, i64 0}
!22 = !{!23, !13, i64 0}
!23 = !{!"_ZTSZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_E3$_0", !13, i64 0, !13, i64 8, !13, i64 16}
!24 = !{!13, !13, i64 0}
!25 = !{!26, !13, i64 24}
!26 = !{!"_ZTSZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_E3$_1", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!27 = !{!28, !13, i64 24}
!28 = !{!"_ZTSZN3jet40GridFractionalSinglePhasePressureSolver212buildWeightsERKNS_17FaceCenteredGrid2ERKNS_12ScalarField2ERKNS_12VectorField2ES6_E3$_2", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!29 = distinct !{!29, !19}


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