; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (grid_fractional_boundary_condition_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.jet::ArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.std::function.9" = 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::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<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::Array.11" = type { %"class.jet::Size2", %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::Vector" = type { double, double }
%"class.std::function.17" = type { %"class.std::_Function_base", ptr }
%class.anon = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.20 = type { ptr, ptr, ptr, ptr, ptr }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::ConstArrayAccessor.21" = type { %"class.jet::Size2", ptr }
%class.anon.22 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.23 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.24 = type { ptr, ptr }
%class.anon.25 = type { ptr, ptr }
%"class.jet::GridFractionalBoundaryConditionSolver2" = type { %"class.jet::GridBoundaryConditionSolver2.base", %"class.std::shared_ptr.0", %"class.std::shared_ptr.3" }
%"class.jet::GridBoundaryConditionSolver2.base" = type <{ ptr, %"class.std::shared_ptr", %"class.jet::Size2", %"class.jet::Vector", %"class.jet::Vector", i32 }>
%"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 }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2Ej(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.jet::Size2", align 8
  %8 = alloca %"class.jet::ArrayAccessor", align 8
  %9 = alloca %"class.jet::ArrayAccessor", align 8
  %10 = alloca %"class.std::function.9", align 8
  %11 = alloca %"class.std::function.9", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.jet::Array", align 8
  %15 = alloca %"class.jet::Size2", align 8
  %16 = alloca double, align 8
  %17 = alloca %"class.jet::Array", align 8
  %18 = alloca %"class.jet::Size2", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.jet::Array.11", align 8
  %21 = alloca %"class.jet::Size2", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.jet::Array.11", align 8
  %24 = alloca %"class.jet::Size2", align 8
  %25 = alloca i8, align 1
  %26 = alloca %"class.jet::Vector", align 8
  %27 = alloca %"class.std::function.17", align 8
  %28 = alloca %class.anon, align 8
  %29 = alloca %"class.std::function.17", align 8
  %30 = alloca %class.anon.20, align 8
  %31 = alloca %"class.jet::ConstArrayAccessor", align 8
  %32 = alloca %"class.jet::ConstArrayAccessor.21", align 8
  %33 = alloca %"class.jet::ArrayAccessor", align 8
  %34 = alloca %"class.jet::ConstArrayAccessor", align 8
  %35 = alloca %"class.jet::ConstArrayAccessor.21", align 8
  %36 = alloca %"class.jet::ArrayAccessor", align 8
  %37 = alloca %"class.std::function.17", align 8
  %38 = alloca %class.anon.22, align 8
  %39 = alloca %"class.std::function.17", align 8
  %40 = alloca %class.anon.23, align 8
  %41 = alloca %class.anon.24, align 8
  %42 = alloca %class.anon.25, align 8
  %43 = alloca i64, align 8
  %44 = alloca %"class.jet::Size2", align 8
  %45 = alloca i64, align 8
  %46 = alloca %"class.jet::Size2", align 8
  %47 = alloca %"class.jet::Size2", align 8
  %48 = alloca i64, align 8
  %49 = alloca %"class.jet::Size2", align 8
  %50 = alloca i64, align 8
  %51 = alloca %"class.jet::Size2", align 8
  %52 = alloca %"class.jet::Size2", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %53 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %56)
  %57 = getelementptr inbounds %"class.jet::GridFractionalBoundaryConditionSolver2", ptr %53, i32 0, i32 1
  %58 = call noundef zeroext i1 @_ZSteqIN3jet23CellCenteredScalarGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr null) #6
  br i1 %58, label %65, label %59

59:                                               ; preds = %3
  %60 = getelementptr inbounds %"class.jet::GridFractionalBoundaryConditionSolver2", ptr %53, i32 0, i32 1
  %61 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet23CellCenteredScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %60) #6
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %62)
  %64 = call noundef zeroext i1 @_ZNK3jet5Size2neERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %64, label %65, label %73

65:                                               ; preds = %59, %3
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet28GridBoundaryConditionSolver28colliderEv(ptr noundef nonnull align 8 dereferenceable(76) %53)
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %68)
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88) %71)
  call void @_ZN3jet28GridBoundaryConditionSolver214updateColliderERKSt10shared_ptrINS_9Collider2EERKNS_5Size2ERKNS_6VectorIdLm2EEESC_(ptr noundef nonnull align 8 dereferenceable(76) %53, ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 8 dereferenceable(16) %72)
  br label %73

73:                                               ; preds = %65, %59
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3jet17FaceCenteredGrid29uAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %8, ptr noundef nonnull align 8 dereferenceable(384) %74)
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3jet17FaceCenteredGrid29vAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %9, ptr noundef nonnull align 8 dereferenceable(384) %75)
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.9") align 8 %10, ptr noundef nonnull align 8 dereferenceable(384) %76)
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.9") align 8 %11, ptr noundef nonnull align 8 dereferenceable(384) %77)
          to label %78 unwind label %162

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %79 unwind label %166

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  invoke void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %80 unwind label %170

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %81 unwind label %175

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  invoke void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %82 unwind label %179

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %83 unwind label %184

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  store i8 1, ptr %22, align 1, !tbaa !13
  invoke void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %84 unwind label %188

84:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %85 unwind label %193

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  store i8 1, ptr %25, align 1, !tbaa !13
  invoke void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %86 unwind label %197

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %88)
          to label %90 unwind label %202

90:                                               ; preds = %86
  invoke void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %89)
          to label %91 unwind label %202

91:                                               ; preds = %90
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #6
  %93 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 0
  store ptr %10, ptr %93, align 8, !tbaa !5
  %94 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 1
  store ptr %53, ptr %94, align 8, !tbaa !14
  %95 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 2
  store ptr %26, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 3
  store ptr %20, ptr %96, align 8, !tbaa !5
  %97 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 4
  store ptr %8, ptr %97, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %98 unwind label %206

98:                                               ; preds = %91
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %92, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %99 unwind label %210

99:                                               ; preds = %98
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #6
  %101 = getelementptr inbounds %class.anon.20, ptr %30, i32 0, i32 0
  store ptr %11, ptr %101, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.anon.20, ptr %30, i32 0, i32 1
  store ptr %53, ptr %102, align 8, !tbaa !16
  %103 = getelementptr inbounds %class.anon.20, ptr %30, i32 0, i32 2
  store ptr %26, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds %class.anon.20, ptr %30, i32 0, i32 3
  store ptr %23, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.anon.20, ptr %30, i32 0, i32 4
  store ptr %9, ptr %105, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %106 unwind label %215

106:                                              ; preds = %99
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %100, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %107 unwind label %219

107:                                              ; preds = %106
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid214uConstAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8 %31, ptr noundef nonnull align 8 dereferenceable(384) %108)
          to label %109 unwind label %224

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  invoke void @_ZNK3jet5ArrayIcLm2EEcvNS_18ConstArrayAccessorIcLm2EEEEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor.21") align 8 %32, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %110 unwind label %228

110:                                              ; preds = %109
  %111 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %112 unwind label %228

112:                                              ; preds = %110
  invoke void @_ZN3jet19extrapolateToRegionIdEEvRKNS_18ConstArrayAccessorIT_Lm2EEERKNS1_IcLm2EEEjNS_13ArrayAccessorIS2_Lm2EEE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %32, i32 noundef %111, ptr noundef %33)
          to label %113 unwind label %228

113:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid214vConstAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8 %34, ptr noundef nonnull align 8 dereferenceable(384) %114)
          to label %115 unwind label %233

115:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #6
  invoke void @_ZNK3jet5ArrayIcLm2EEcvNS_18ConstArrayAccessorIcLm2EEEEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor.21") align 8 %35, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %116 unwind label %237

116:                                              ; preds = %115
  %117 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %118 unwind label %237

118:                                              ; preds = %116
  invoke void @_ZN3jet19extrapolateToRegionIdEEvRKNS_18ConstArrayAccessorIT_Lm2EEERKNS1_IcLm2EEEjNS_13ArrayAccessorIS2_Lm2EEE(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %35, i32 noundef %117, ptr noundef %36)
          to label %119 unwind label %237

119:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %38) #6
  %121 = getelementptr inbounds %class.anon.22, ptr %38, i32 0, i32 0
  store ptr %10, ptr %121, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.anon.22, ptr %38, i32 0, i32 1
  store ptr %53, ptr %122, align 8, !tbaa !18
  %123 = getelementptr inbounds %class.anon.22, ptr %38, i32 0, i32 2
  store ptr %5, ptr %123, align 8, !tbaa !5
  %124 = getelementptr inbounds %class.anon.22, ptr %38, i32 0, i32 3
  store ptr %14, ptr %124, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.anon.22, ptr %38, i32 0, i32 4
  store ptr %8, ptr %125, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(40) %38)
          to label %126 unwind label %242

126:                                              ; preds = %119
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %120, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %127 unwind label %246

127:                                              ; preds = %126
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %40) #6
  %129 = getelementptr inbounds %class.anon.23, ptr %40, i32 0, i32 0
  store ptr %11, ptr %129, align 8, !tbaa !5
  %130 = getelementptr inbounds %class.anon.23, ptr %40, i32 0, i32 1
  store ptr %53, ptr %130, align 8, !tbaa !20
  %131 = getelementptr inbounds %class.anon.23, ptr %40, i32 0, i32 2
  store ptr %5, ptr %131, align 8, !tbaa !5
  %132 = getelementptr inbounds %class.anon.23, ptr %40, i32 0, i32 3
  store ptr %17, ptr %132, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.anon.23, ptr %40, i32 0, i32 4
  store ptr %9, ptr %133, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(40) %40)
          to label %134 unwind label %251

134:                                              ; preds = %127
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %128, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %135 unwind label %255

135:                                              ; preds = %134
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  %136 = getelementptr inbounds %class.anon.24, ptr %41, i32 0, i32 0
  store ptr %8, ptr %136, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.anon.24, ptr %41, i32 0, i32 1
  store ptr %14, ptr %137, align 8, !tbaa !5
  %138 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8
  invoke void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr %139, ptr %141)
          to label %142 unwind label %202

142:                                              ; preds = %135
  %143 = getelementptr inbounds %class.anon.25, ptr %42, i32 0, i32 0
  store ptr %9, ptr %143, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.anon.25, ptr %42, i32 0, i32 1
  store ptr %17, ptr %144, align 8, !tbaa !5
  %145 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8
  invoke void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr %146, ptr %148)
          to label %149 unwind label %202

149:                                              ; preds = %142
  %150 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %53)
          to label %151 unwind label %202

151:                                              ; preds = %149
  %152 = and i32 %150, 1
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %277

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  store i64 0, ptr %43, align 8, !tbaa !22
  br label %155

155:                                              ; preds = %268, %154
  %156 = load i64, ptr %43, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %44, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %157 unwind label %260

157:                                              ; preds = %155
  %158 = getelementptr inbounds %"class.jet::Size2", ptr %44, i32 0, i32 1
  %159 = load i64, ptr %158, align 8, !tbaa !24
  %160 = icmp ult i64 %156, %159
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  br i1 %160, label %264, label %161

161:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  br label %276

162:                                              ; preds = %73
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  br label %381

166:                                              ; preds = %78
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %12, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %13, align 4
  br label %174

170:                                              ; preds = %79
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %174

174:                                              ; preds = %170, %166
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %380

175:                                              ; preds = %80
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %12, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %13, align 4
  br label %183

179:                                              ; preds = %81
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %12, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %183

183:                                              ; preds = %179, %175
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %379

184:                                              ; preds = %82
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %12, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %13, align 4
  br label %192

188:                                              ; preds = %83
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %192

192:                                              ; preds = %188, %184
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %378

193:                                              ; preds = %84
  %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 %201

197:                                              ; preds = %85
  %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
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %201

201:                                              ; preds = %197, %193
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %377

202:                                              ; preds = %341, %311, %277, %149, %142, %135, %90, %86
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %12, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %13, align 4
  br label %376

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

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

214:                                              ; preds = %210, %206
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %376

215:                                              ; preds = %99
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %12, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %13, align 4
  br label %223

219:                                              ; preds = %106
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %12, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %223

223:                                              ; preds = %219, %215
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  br label %376

224:                                              ; preds = %107
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %12, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %13, align 4
  br label %232

228:                                              ; preds = %112, %110, %109
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %12, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  br label %232

232:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %376

233:                                              ; preds = %113
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %12, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %13, align 4
  br label %241

237:                                              ; preds = %118, %116, %115
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %12, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  br label %241

241:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  br label %376

242:                                              ; preds = %119
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %12, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %13, align 4
  br label %250

246:                                              ; preds = %126
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %12, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %250

250:                                              ; preds = %246, %242
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  br label %376

251:                                              ; preds = %127
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %12, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %13, align 4
  br label %259

255:                                              ; preds = %134
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %12, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  br label %259

259:                                              ; preds = %255, %251
  call void @llvm.lifetime.end.p0(i64 40, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  br label %376

260:                                              ; preds = %155
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %12, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  br label %275

264:                                              ; preds = %157
  %265 = load i64, ptr %43, align 8, !tbaa !22
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0, i64 noundef %265)
          to label %267 unwind label %271

267:                                              ; preds = %264
  store double 0.000000e+00, ptr %266, align 8, !tbaa !11
  br label %268

268:                                              ; preds = %267
  %269 = load i64, ptr %43, align 8, !tbaa !22
  %270 = add i64 %269, 1
  store i64 %270, ptr %43, align 8, !tbaa !22
  br label %155, !llvm.loop !26

271:                                              ; preds = %264
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %12, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %13, align 4
  br label %275

275:                                              ; preds = %271, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  br label %376

276:                                              ; preds = %161
  br label %277

277:                                              ; preds = %276, %151
  %278 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %53)
          to label %279 unwind label %202

279:                                              ; preds = %277
  %280 = and i32 %278, 2
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %311

282:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  store i64 0, ptr %45, align 8, !tbaa !22
  br label %283

283:                                              ; preds = %302, %282
  %284 = load i64, ptr %45, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %46, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %285 unwind label %290

285:                                              ; preds = %283
  %286 = getelementptr inbounds %"class.jet::Size2", ptr %46, i32 0, i32 1
  %287 = load i64, ptr %286, align 8, !tbaa !24
  %288 = icmp ult i64 %284, %287
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  br i1 %288, label %294, label %289

289:                                              ; preds = %285
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %310

290:                                              ; preds = %283
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %12, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  br label %309

294:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %47, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %295 unwind label %305

295:                                              ; preds = %294
  %296 = getelementptr inbounds %"class.jet::Size2", ptr %47, i32 0, i32 0
  %297 = load i64, ptr %296, align 8, !tbaa !28
  %298 = sub i64 %297, 1
  %299 = load i64, ptr %45, align 8, !tbaa !22
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %298, i64 noundef %299)
          to label %301 unwind label %305

301:                                              ; preds = %295
  store double 0.000000e+00, ptr %300, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #6
  br label %302

302:                                              ; preds = %301
  %303 = load i64, ptr %45, align 8, !tbaa !22
  %304 = add i64 %303, 1
  store i64 %304, ptr %45, align 8, !tbaa !22
  br label %283, !llvm.loop !29

305:                                              ; preds = %295, %294
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %12, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #6
  br label %309

309:                                              ; preds = %305, %290
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %376

310:                                              ; preds = %289
  br label %311

311:                                              ; preds = %310, %279
  %312 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %53)
          to label %313 unwind label %202

313:                                              ; preds = %311
  %314 = and i32 %312, 4
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %341

316:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  store i64 0, ptr %48, align 8, !tbaa !22
  br label %317

317:                                              ; preds = %332, %316
  %318 = load i64, ptr %48, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %49, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %319 unwind label %324

319:                                              ; preds = %317
  %320 = getelementptr inbounds %"class.jet::Size2", ptr %49, i32 0, i32 0
  %321 = load i64, ptr %320, align 8, !tbaa !28
  %322 = icmp ult i64 %318, %321
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  br i1 %322, label %328, label %323

323:                                              ; preds = %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %340

324:                                              ; preds = %317
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %12, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  br label %339

328:                                              ; preds = %319
  %329 = load i64, ptr %48, align 8, !tbaa !22
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %329, i64 noundef 0)
          to label %331 unwind label %335

331:                                              ; preds = %328
  store double 0.000000e+00, ptr %330, align 8, !tbaa !11
  br label %332

332:                                              ; preds = %331
  %333 = load i64, ptr %48, align 8, !tbaa !22
  %334 = add i64 %333, 1
  store i64 %334, ptr %48, align 8, !tbaa !22
  br label %317, !llvm.loop !30

335:                                              ; preds = %328
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %12, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %13, align 4
  br label %339

339:                                              ; preds = %335, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %376

340:                                              ; preds = %323
  br label %341

341:                                              ; preds = %340, %313
  %342 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %53)
          to label %343 unwind label %202

343:                                              ; preds = %341
  %344 = and i32 %342, 8
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %375

346:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  store i64 0, ptr %50, align 8, !tbaa !22
  br label %347

347:                                              ; preds = %366, %346
  %348 = load i64, ptr %50, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %51, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %349 unwind label %354

349:                                              ; preds = %347
  %350 = getelementptr inbounds %"class.jet::Size2", ptr %51, i32 0, i32 0
  %351 = load i64, ptr %350, align 8, !tbaa !28
  %352 = icmp ult i64 %348, %351
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  br i1 %352, label %358, label %353

353:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  br label %374

354:                                              ; preds = %347
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %12, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  br label %373

358:                                              ; preds = %349
  %359 = load i64, ptr %50, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %52, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %360 unwind label %369

360:                                              ; preds = %358
  %361 = getelementptr inbounds %"class.jet::Size2", ptr %52, i32 0, i32 1
  %362 = load i64, ptr %361, align 8, !tbaa !24
  %363 = sub i64 %362, 1
  %364 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %359, i64 noundef %363)
          to label %365 unwind label %369

365:                                              ; preds = %360
  store double 0.000000e+00, ptr %364, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  br label %366

366:                                              ; preds = %365
  %367 = load i64, ptr %50, align 8, !tbaa !22
  %368 = add i64 %367, 1
  store i64 %368, ptr %50, align 8, !tbaa !22
  br label %347, !llvm.loop !31

369:                                              ; preds = %360, %358
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %12, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  br label %373

373:                                              ; preds = %369, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  br label %376

374:                                              ; preds = %353
  br label %375

375:                                              ; preds = %374, %343
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  ret void

376:                                              ; preds = %373, %339, %309, %275, %259, %250, %241, %232, %223, %214, %202
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  br label %377

377:                                              ; preds = %376, %201
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %378

378:                                              ; preds = %377, %192
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  br label %379

379:                                              ; preds = %378, %183
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #6
  br label %380

380:                                              ; preds = %379, %174
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %381

381:                                              ; preds = %380, %162
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %382

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

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

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

; 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

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

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

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

declare void @_ZN3jet28GridBoundaryConditionSolver214updateColliderERKSt10shared_ptrINS_9Collider2EERKNS_5Size2ERKNS_6VectorIdLm2EEESC_(ptr noundef nonnull align 8 dereferenceable(76), 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)) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet28GridBoundaryConditionSolver28colliderEv(ptr noundef nonnull align 8 dereferenceable(76)) #2

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

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

declare void @_ZN3jet17FaceCenteredGrid29uAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) #2

declare void @_ZN3jet17FaceCenteredGrid29vAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

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

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

; 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

declare void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

declare void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

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

declare void @_ZNK3jet17FaceCenteredGrid214uConstAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) #2

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

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

declare void @_ZNK3jet17FaceCenteredGrid214vConstAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) #0 align 2

declare noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76)) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!21, !6, i64 8}
!21 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!25, !23, i64 8}
!25 = !{!"_ZTSN3jet5Size2E", !23, i64 0, !23, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!25, !23, i64 0}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}


; 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.jet::ArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.std::function.9" = 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::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<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::Array.11" = type { %"class.jet::Size2", %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::Vector" = type { double, double }
%"class.std::function.17" = type { %"class.std::_Function_base", ptr }
%class.anon = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.20 = type { ptr, ptr, ptr, ptr, ptr }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::ConstArrayAccessor.21" = type { %"class.jet::Size2", ptr }
%class.anon.22 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.23 = type { ptr, ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2Ej(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca %"class.jet::Size2", align 8
  %6 = alloca %"class.jet::ArrayAccessor", align 8
  %7 = alloca %"class.jet::ArrayAccessor", align 8
  %8 = alloca %"class.std::function.9", align 8
  %9 = alloca %"class.std::function.9", align 8
  %10 = alloca %"class.jet::Array", align 8
  %11 = alloca %"class.jet::Size2", align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.jet::Array", align 8
  %14 = alloca %"class.jet::Size2", align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.jet::Array.11", align 8
  %17 = alloca %"class.jet::Size2", align 8
  %18 = alloca i8, align 1
  %19 = alloca %"class.jet::Array.11", align 8
  %20 = alloca %"class.jet::Size2", align 8
  %21 = alloca i8, align 1
  %22 = alloca %"class.jet::Vector", align 8
  %23 = alloca %"class.std::function.17", align 8
  %24 = alloca %class.anon, align 8
  %25 = alloca %"class.std::function.17", align 8
  %26 = alloca %class.anon.20, align 8
  %27 = alloca %"class.jet::ConstArrayAccessor", align 8
  %28 = alloca %"class.jet::ConstArrayAccessor.21", align 8
  %29 = alloca %"class.jet::ArrayAccessor", align 8
  %30 = alloca %"class.jet::ConstArrayAccessor", align 8
  %31 = alloca %"class.jet::ConstArrayAccessor.21", align 8
  %32 = alloca %"class.jet::ArrayAccessor", align 8
  %33 = alloca %"class.std::function.17", align 8
  %34 = alloca %class.anon.22, align 8
  %35 = alloca %"class.std::function.17", align 8
  %36 = alloca %class.anon.23, align 8
  %37 = alloca %"class.jet::Size2", align 8
  %38 = alloca %"class.jet::Size2", align 8
  %39 = alloca %"class.jet::Size2", align 8
  %40 = alloca %"class.jet::Size2", align 8
  %41 = alloca %"class.jet::Size2", align 8
  %42 = alloca %"class.jet::Size2", align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %43 = getelementptr inbounds i8, ptr %1, i64 8
  %44 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %43)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %44)
  %45 = getelementptr inbounds i8, ptr %0, i64 80
  %46 = call noundef zeroext i1 @_ZSteqIN3jet23CellCenteredScalarGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr null) #6
  br i1 %46, label %52, label %47

47:                                               ; preds = %3
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet23CellCenteredScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %49)
  %51 = call noundef zeroext i1 @_ZNK3jet5Size2neERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %5)
  br i1 %51, label %52, label %60

52:                                               ; preds = %47, %3
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet28GridBoundaryConditionSolver28colliderEv(ptr noundef nonnull align 8 dereferenceable(76) %0)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid26originEv(ptr noundef nonnull align 8 dereferenceable(88) %58)
  call void @_ZN3jet28GridBoundaryConditionSolver214updateColliderERKSt10shared_ptrINS_9Collider2EERKNS_5Size2ERKNS_6VectorIdLm2EEESC_(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %59)
  br label %60

60:                                               ; preds = %52, %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3jet17FaceCenteredGrid29uAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %6, ptr noundef nonnull align 8 dereferenceable(384) %61)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3jet17FaceCenteredGrid29vAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %7, ptr noundef nonnull align 8 dereferenceable(384) %62)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.9") align 8 %8, ptr noundef nonnull align 8 dereferenceable(384) %63)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.9") align 8 %9, ptr noundef nonnull align 8 dereferenceable(384) %64)
          to label %65 unwind label %126

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %66 unwind label %128

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  invoke void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %67 unwind label %130

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %68 unwind label %133

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  invoke void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %69 unwind label %135

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %70 unwind label %138

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  store i8 1, ptr %18, align 1, !tbaa !11
  invoke void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %71 unwind label %140

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %72 unwind label %143

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #6
  store i8 1, ptr %21, align 1, !tbaa !11
  invoke void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %73 unwind label %145

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %75)
          to label %77 unwind label %148

77:                                               ; preds = %73
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %76)
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %24) #6
  store ptr %8, ptr %24, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %24, i64 8
  store ptr %0, ptr %79, align 8, !tbaa !12
  %80 = getelementptr inbounds i8, ptr %24, i64 16
  store ptr %22, ptr %80, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %24, i64 24
  store ptr %16, ptr %81, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %24, i64 32
  store ptr %6, ptr %82, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %83 unwind label %150

83:                                               ; preds = %77
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %78, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %84 unwind label %152

84:                                               ; preds = %83
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %26) #6
  store ptr %9, ptr %26, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %26, i64 8
  store ptr %0, ptr %86, align 8, !tbaa !14
  %87 = getelementptr inbounds i8, ptr %26, i64 16
  store ptr %22, ptr %87, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %26, i64 24
  store ptr %19, ptr %88, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %26, i64 32
  store ptr %7, ptr %89, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %90 unwind label %155

90:                                               ; preds = %84
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %85, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %91 unwind label %157

91:                                               ; preds = %90
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #6
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid214uConstAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor") align 8 %27, ptr noundef nonnull align 8 dereferenceable(384) %92)
          to label %93 unwind label %160

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #6
  invoke void @_ZNK3jet5ArrayIcLm2EEcvNS_18ConstArrayAccessorIcLm2EEEEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor.21") align 8 %28, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %94 unwind label %162

94:                                               ; preds = %93
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %95 unwind label %162

95:                                               ; preds = %94
  invoke void @_ZN3jet19extrapolateToRegionIdEEvRKNS_18ConstArrayAccessorIT_Lm2EEERKNS1_IcLm2EEEjNS_13ArrayAccessorIS2_Lm2EEE(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef %2, ptr noundef nonnull %29)
          to label %96 unwind label %162

96:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #6
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3jet17FaceCenteredGrid214vConstAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor") align 8 %30, ptr noundef nonnull align 8 dereferenceable(384) %97)
          to label %98 unwind label %165

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #6
  invoke void @_ZNK3jet5ArrayIcLm2EEcvNS_18ConstArrayAccessorIcLm2EEEEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor.21") align 8 %31, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %99 unwind label %167

99:                                               ; preds = %98
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %100 unwind label %167

100:                                              ; preds = %99
  invoke void @_ZN3jet19extrapolateToRegionIdEEvRKNS_18ConstArrayAccessorIT_Lm2EEERKNS1_IcLm2EEEjNS_13ArrayAccessorIS2_Lm2EEE(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef %2, ptr noundef nonnull %32)
          to label %101 unwind label %167

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #6
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %34) #6
  store ptr %8, ptr %34, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %34, i64 8
  store ptr %0, ptr %103, align 8, !tbaa !16
  %104 = getelementptr inbounds i8, ptr %34, i64 16
  store ptr %4, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %34, i64 24
  store ptr %10, ptr %105, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %34, i64 32
  store ptr %6, ptr %106, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(40) %34)
          to label %107 unwind label %170

107:                                              ; preds = %101
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %102, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %108 unwind label %172

108:                                              ; preds = %107
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %36) #6
  store ptr %9, ptr %36, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %36, i64 8
  store ptr %0, ptr %110, align 8, !tbaa !18
  %111 = getelementptr inbounds i8, ptr %36, i64 16
  store ptr %4, ptr %111, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %36, i64 24
  store ptr %13, ptr %112, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %36, i64 32
  store ptr %7, ptr %113, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(40) %36)
          to label %114 unwind label %175

114:                                              ; preds = %108
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %109, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %115 unwind label %177

115:                                              ; preds = %114
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  invoke void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr nonnull %6, ptr nonnull %10)
          to label %116 unwind label %148

116:                                              ; preds = %115
  invoke void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %7, ptr nonnull %13)
          to label %117 unwind label %148

117:                                              ; preds = %116
  %118 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %0)
          to label %119 unwind label %148

119:                                              ; preds = %117
  %120 = and i32 %118, 1
  %.not = icmp eq i32 %120, 0
  br i1 %.not, label %.loopexit77, label %.preheader76

.preheader76:                                     ; preds = %119
  %121 = getelementptr inbounds i8, ptr %37, i64 8
  br label %122

122:                                              ; preds = %.preheader76, %182
  %.020 = phi i64 [ %184, %182 ], [ 0, %.preheader76 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %123 unwind label %180

123:                                              ; preds = %122
  %124 = load i64, ptr %121, align 8, !tbaa !20
  %125 = icmp ult i64 %.020, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  br i1 %125, label %182, label %.loopexit77

126:                                              ; preds = %60
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %237

128:                                              ; preds = %65
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %66
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %132

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

133:                                              ; preds = %67
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %137

135:                                              ; preds = %68
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %137

137:                                              ; preds = %135, %133
  %.pn41 = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %235

138:                                              ; preds = %69
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %142

140:                                              ; preds = %70
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  br label %142

142:                                              ; preds = %140, %138
  %.pn43 = phi { ptr, i32 } [ %141, %140 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %234

143:                                              ; preds = %71
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %72
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  br label %147

147:                                              ; preds = %145, %143
  %.pn45 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %233

148:                                              ; preds = %.loopexit73, %.loopexit75, %.loopexit77, %117, %116, %115, %73
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %232

150:                                              ; preds = %77
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %154

152:                                              ; preds = %83
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %154

154:                                              ; preds = %152, %150
  %.pn47 = phi { ptr, i32 } [ %153, %152 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  br label %232

155:                                              ; preds = %84
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %159

157:                                              ; preds = %90
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %159

159:                                              ; preds = %157, %155
  %.pn49 = phi { ptr, i32 } [ %158, %157 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  br label %232

160:                                              ; preds = %91
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

162:                                              ; preds = %95, %94, %93
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #6
  br label %164

164:                                              ; preds = %162, %160
  %.pn51 = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #6
  br label %232

165:                                              ; preds = %96
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %169

167:                                              ; preds = %100, %99, %98
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  br label %169

169:                                              ; preds = %167, %165
  %.pn53 = phi { ptr, i32 } [ %168, %167 ], [ %166, %165 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #6
  br label %232

170:                                              ; preds = %101
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %107
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %174

174:                                              ; preds = %172, %170
  %.pn55 = phi { ptr, i32 } [ %173, %172 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  br label %232

175:                                              ; preds = %108
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %179

177:                                              ; preds = %114
  %178 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %179

179:                                              ; preds = %177, %175
  %.pn57 = phi { ptr, i32 } [ %178, %177 ], [ %176, %175 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  br label %232

180:                                              ; preds = %122
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  br label %232

182:                                              ; preds = %123
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0, i64 noundef %.020)
  store double 0.000000e+00, ptr %183, align 8, !tbaa !9
  %184 = add nuw i64 %.020, 1
  br label %122, !llvm.loop !23

.loopexit77:                                      ; preds = %123, %119
  %185 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %0)
          to label %186 unwind label %148

186:                                              ; preds = %.loopexit77
  %187 = and i32 %185, 2
  %.not59 = icmp eq i32 %187, 0
  br i1 %.not59, label %.loopexit75, label %.preheader74

.preheader74:                                     ; preds = %186
  %188 = getelementptr inbounds i8, ptr %38, i64 8
  br label %189

189:                                              ; preds = %.preheader74, %196
  %.019 = phi i64 [ %200, %196 ], [ 0, %.preheader74 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %38, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %190 unwind label %193

190:                                              ; preds = %189
  %191 = load i64, ptr %188, align 8, !tbaa !20
  %192 = icmp ult i64 %.019, %191
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  br i1 %192, label %195, label %.loopexit75

193:                                              ; preds = %189
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  br label %232

195:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %39, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %196 unwind label %201

196:                                              ; preds = %195
  %197 = load i64, ptr %39, align 8, !tbaa !25
  %198 = add i64 %197, -1
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %198, i64 noundef %.019)
  store double 0.000000e+00, ptr %199, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #6
  %200 = add nuw i64 %.019, 1
  br label %189, !llvm.loop !26

201:                                              ; preds = %195
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #6
  br label %232

.loopexit75:                                      ; preds = %190, %186
  %203 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %0)
          to label %204 unwind label %148

204:                                              ; preds = %.loopexit75
  %205 = and i32 %203, 4
  %.not60 = icmp eq i32 %205, 0
  br i1 %.not60, label %.loopexit73, label %.preheader72

.preheader72:                                     ; preds = %204, %211
  %.018 = phi i64 [ %213, %211 ], [ 0, %204 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %40, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %206 unwind label %209

206:                                              ; preds = %.preheader72
  %207 = load i64, ptr %40, align 8, !tbaa !25
  %208 = icmp ult i64 %.018, %207
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #6
  br i1 %208, label %211, label %.loopexit73

209:                                              ; preds = %.preheader72
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #6
  br label %232

211:                                              ; preds = %206
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.018, i64 noundef 0)
  store double 0.000000e+00, ptr %212, align 8, !tbaa !9
  %213 = add nuw i64 %.018, 1
  br label %.preheader72, !llvm.loop !27

.loopexit73:                                      ; preds = %206, %204
  %214 = invoke noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76) %0)
          to label %215 unwind label %148

215:                                              ; preds = %.loopexit73
  %216 = and i32 %214, 8
  %.not61 = icmp eq i32 %216, 0
  br i1 %.not61, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %215
  %217 = getelementptr inbounds i8, ptr %42, i64 8
  br label %218

218:                                              ; preds = %.preheader, %225
  %.0 = phi i64 [ %229, %225 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %41) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %41, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %219 unwind label %222

219:                                              ; preds = %218
  %220 = load i64, ptr %41, align 8, !tbaa !25
  %221 = icmp ult i64 %.0, %220
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #6
  br i1 %221, label %224, label %.loopexit

222:                                              ; preds = %218
  %223 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #6
  br label %232

224:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #6
  invoke void @_ZNK3jet13ArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %42, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %225 unwind label %230

225:                                              ; preds = %224
  %226 = load i64, ptr %217, align 8, !tbaa !20
  %227 = add i64 %226, -1
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.0, i64 noundef %227)
  store double 0.000000e+00, ptr %228, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #6
  %229 = add nuw i64 %.0, 1
  br label %218, !llvm.loop !28

230:                                              ; preds = %224
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #6
  br label %232

.loopexit:                                        ; preds = %219, %215
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  ret void

232:                                              ; preds = %222, %230, %193, %201, %209, %180, %179, %174, %169, %164, %159, %154, %148
  %.pn64.pn = phi { ptr, i32 } [ %149, %148 ], [ %210, %209 ], [ %181, %180 ], [ %.pn57, %179 ], [ %.pn55, %174 ], [ %.pn53, %169 ], [ %.pn51, %164 ], [ %.pn49, %159 ], [ %.pn47, %154 ], [ %202, %201 ], [ %194, %193 ], [ %231, %230 ], [ %223, %222 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #6
  br label %233

233:                                              ; preds = %232, %147
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %232 ], [ %.pn45, %147 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #6
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #6
  br label %234

234:                                              ; preds = %233, %142
  %.pn64.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn, %233 ], [ %.pn43, %142 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  br label %235

235:                                              ; preds = %234, %137
  %.pn64.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn.pn, %234 ], [ %.pn41, %137 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  br label %236

236:                                              ; preds = %235, %132
  %.pn64.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn.pn.pn, %235 ], [ %.pn, %132 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %237

237:                                              ; preds = %236, %126
  %.pn64.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn.pn.pn.pn, %236 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn64.pn.pn.pn.pn.pn.pn
}

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

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

; 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

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

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

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

declare void @_ZN3jet28GridBoundaryConditionSolver214updateColliderERKSt10shared_ptrINS_9Collider2EERKNS_5Size2ERKNS_6VectorIdLm2EEESC_(ptr noundef nonnull align 8 dereferenceable(76), 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 #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet28GridBoundaryConditionSolver28colliderEv(ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #2

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

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

declare void @_ZN3jet17FaceCenteredGrid29uAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #2

declare void @_ZN3jet17FaceCenteredGrid29vAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

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

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

; 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

declare void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

declare void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

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

declare void @_ZNK3jet17FaceCenteredGrid214uConstAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #2

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

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

declare void @_ZNK3jet17FaceCenteredGrid214vConstAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS3_17FaceCenteredGrid2EjE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet13ArrayAccessorIdLm2EE20parallelForEachIndexIZNS_38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) local_unnamed_addr #0 align 2

declare noundef i32 @_ZNK3jet28GridBoundaryConditionSolver224closedDomainBoundaryFlagEv(ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTSZN3jet38GridFractionalBoundaryConditionSolver217constrainVelocityEPNS_17FaceCenteredGrid2EjE3$_3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!21, !22, i64 8}
!21 = !{!"_ZTSN3jet5Size2E", !22, i64 0, !22, i64 8}
!22 = !{!"long", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!21, !22, i64 0}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}


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