; LLVM IR from doyubkim/fluid-engine-dev :: src/jet/grid_fluid_solver2.ll (ZN3jet16GridFluidSolver216computeAdvectionEd)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.45" = type { %"class.std::__shared_ptr.46" }
%"class.std::__shared_ptr.46" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.48" = type { %"class.std::__shared_ptr.49" }
%"class.std::__shared_ptr.49" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.54" = type { %"class.std::__shared_ptr.55" }
%"class.std::__shared_ptr.55" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.60" = type { %"class.std::__shared_ptr.61" }
%"class.std::__shared_ptr.61" = type { ptr, %"class.std::__shared_count" }
%"class.jet::GridFluidSolver2" = type { %"class.jet::PhysicsAnimation", %"class.jet::Vector", double, double, i8, i32, %"class.std::shared_ptr", %"class.std::shared_ptr.0", %"class.std::shared_ptr.3", %"class.std::shared_ptr.6", %"class.std::shared_ptr.9", %"class.std::shared_ptr.12", %"class.std::shared_ptr.15" }
%"class.jet::PhysicsAnimation" = type { %"class.jet::Animation", %"struct.jet::Frame", i8, i32, double }
%"class.jet::Animation" = type { ptr }
%"struct.jet::Frame" = type { i32, double }
%"class.jet::Vector" = type { double, double }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"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" }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver28velocityEv(ptr noundef nonnull align 8 dereferenceable(192)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.18") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.48") align 8, ptr noundef nonnull align 8 dereferenceable(192)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver222applyBoundaryConditionEv(ptr noundef nonnull align 8 dereferenceable(192)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet16GridFluidSolver216computeAdvectionEd(ptr noundef nonnull align 8 dereferenceable(192) %0, double noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.std::shared_ptr.18", align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::shared_ptr.54", align 8
  %11 = alloca %"class.std::shared_ptr.54", align 8
  %12 = alloca %"class.std::shared_ptr.48", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::shared_ptr.45", align 8
  %17 = alloca %"class.std::shared_ptr.45", align 8
  %18 = alloca %"class.std::shared_ptr.60", align 8
  %19 = alloca %"class.std::shared_ptr.60", align 8
  %20 = alloca %"class.std::shared_ptr.48", align 8
  %21 = alloca %"class.std::shared_ptr.18", align 8
  %22 = alloca %"class.std::shared_ptr.18", align 8
  %23 = alloca %"class.std::shared_ptr.48", align 8
  %24 = alloca %"class.std::shared_ptr.18", align 8
  %25 = alloca %"class.std::shared_ptr.45", align 8
  %26 = alloca %"class.std::shared_ptr.48", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %27 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver28velocityEv(ptr noundef nonnull align 8 dereferenceable(192) %27)
  call void @_ZNSt10shared_ptrIN3jet17FaceCenteredGrid2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %28) #5
  %29 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 9
  %30 = call noundef zeroext i1 @_ZStneIN3jet16AdvectionSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr null) #5
  br i1 %30, label %31, label %249

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %32 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 6
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %32) #5
  %34 = invoke noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableScalarDataEv(ptr noundef nonnull align 8 dereferenceable(176) %33)
          to label %35 unwind label %41

35:                                               ; preds = %31
  store i64 %34, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %70, %35
  %37 = load i64, ptr %9, align 8, !tbaa !11
  %38 = load i64, ptr %6, align 8, !tbaa !11
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %45, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %97

41:                                               ; preds = %97, %31
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %248

45:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %46 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 6
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %46) #5
  %48 = load i64, ptr %9, align 8, !tbaa !11
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableScalarDataAtEm(ptr noundef nonnull align 8 dereferenceable(176) %47, i64 noundef %48)
          to label %50 unwind label %73

50:                                               ; preds = %45
  call void @_ZNSt10shared_ptrIN3jet11ScalarGrid2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %49) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds ptr, ptr %52, i64 8
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.54") align 8 %11, ptr noundef nonnull align 8 dereferenceable(240) %51)
          to label %55 unwind label %77

55:                                               ; preds = %50
  %56 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 9
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %56) #5
  %58 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %59 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  %60 = load double, ptr %4, align 8, !tbaa !9
  %61 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.48") align 8 %12, ptr noundef nonnull align 8 dereferenceable(192) %27)
          to label %62 unwind label %81

62:                                               ; preds = %55
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  %64 = load ptr, ptr %57, align 8, !tbaa !13
  %65 = getelementptr inbounds ptr, ptr %64, i64 2
  %66 = load ptr, ptr %65, align 8
  invoke void %66(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(240) %58, ptr noundef nonnull align 8 dereferenceable(8) %59, double noundef %60, ptr noundef %61, ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %67 unwind label %85

67:                                               ; preds = %62
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %68 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  invoke void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_11ScalarGrid2E(ptr noundef nonnull align 8 dereferenceable(192) %27, ptr noundef %68)
          to label %69 unwind label %90

69:                                               ; preds = %67
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %70

70:                                               ; preds = %69
  %71 = load i64, ptr %9, align 8, !tbaa !11
  %72 = add i64 %71, 1
  store i64 %72, ptr %9, align 8, !tbaa !11
  br label %36, !llvm.loop !15

73:                                               ; preds = %45
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %96

77:                                               ; preds = %50
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  br label %95

81:                                               ; preds = %55
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %89

85:                                               ; preds = %62
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %89

89:                                               ; preds = %85, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %94

90:                                               ; preds = %67
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  br label %94

94:                                               ; preds = %90, %89
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %95

95:                                               ; preds = %94, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %96

96:                                               ; preds = %95, %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %248

97:                                               ; preds = %40
  %98 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 6
  %99 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %98) #5
  %100 = invoke noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableVectorDataEv(ptr noundef nonnull align 8 dereferenceable(176) %99)
          to label %101 unwind label %41

101:                                              ; preds = %97
  store i64 %100, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %102 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 6
  %103 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %102) #5
  %104 = invoke noundef i64 @_ZNK3jet15GridSystemData213velocityIndexEv(ptr noundef nonnull align 8 dereferenceable(176) %103)
          to label %105 unwind label %111

105:                                              ; preds = %101
  store i64 %104, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %205, %105
  %107 = load i64, ptr %14, align 8, !tbaa !11
  %108 = load i64, ptr %6, align 8, !tbaa !11
  %109 = icmp ult i64 %107, %108
  br i1 %109, label %115, label %110

110:                                              ; preds = %106
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %212

111:                                              ; preds = %101
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  br label %247

115:                                              ; preds = %106
  %116 = load i64, ptr %14, align 8, !tbaa !11
  %117 = load i64, ptr %13, align 8, !tbaa !11
  %118 = icmp eq i64 %116, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  br label %205

120:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %121 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 6
  %122 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %121) #5
  %123 = load i64, ptr %14, align 8, !tbaa !11
  %124 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableVectorDataAtEm(ptr noundef nonnull align 8 dereferenceable(176) %122, i64 noundef %123)
          to label %125 unwind label %147

125:                                              ; preds = %120
  call void @_ZNSt10shared_ptrIN3jet11VectorGrid2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %124) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %126 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  %127 = load ptr, ptr %126, align 8, !tbaa !13
  %128 = getelementptr inbounds ptr, ptr %127, i64 8
  %129 = load ptr, ptr %128, align 8
  invoke void %129(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.45") align 8 %17, ptr noundef nonnull align 8 dereferenceable(96) %126)
          to label %130 unwind label %151

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.60") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.60") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  %131 = call noundef zeroext i1 @_ZStneIN3jet21CollocatedVectorGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr null) #5
  br i1 %131, label %132, label %168

132:                                              ; preds = %130
  %133 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 9
  %134 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %133) #5
  %135 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %136 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  %137 = load double, ptr %4, align 8, !tbaa !9
  %138 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.48") align 8 %20, ptr noundef nonnull align 8 dereferenceable(192) %27)
          to label %139 unwind label %155

139:                                              ; preds = %132
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %141 = load ptr, ptr %134, align 8, !tbaa !13
  %142 = getelementptr inbounds ptr, ptr %141, i64 3
  %143 = load ptr, ptr %142, align 8
  invoke void %143(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull align 8 dereferenceable(240) %135, ptr noundef nonnull align 8 dereferenceable(8) %136, double noundef %137, ptr noundef %138, ptr noundef nonnull align 8 dereferenceable(8) %140)
          to label %144 unwind label %159

144:                                              ; preds = %139
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  %145 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  invoke void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_21CollocatedVectorGrid2E(ptr noundef nonnull align 8 dereferenceable(192) %27, ptr noundef %145)
          to label %146 unwind label %164

146:                                              ; preds = %144
  store i32 7, ptr %15, align 4
  br label %202

147:                                              ; preds = %120
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  br label %211

151:                                              ; preds = %125
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %7, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %8, align 4
  br label %210

155:                                              ; preds = %132
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %163

159:                                              ; preds = %139
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  br label %163

163:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %209

164:                                              ; preds = %144
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %7, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %8, align 4
  br label %209

168:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.18") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.18") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  %169 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr null) #5
  br i1 %169, label %170, label %200

170:                                              ; preds = %168
  %171 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #5
  br i1 %171, label %172, label %200

172:                                              ; preds = %170
  %173 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 9
  %174 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %173) #5
  %175 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %176 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  %177 = load double, ptr %4, align 8, !tbaa !9
  %178 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.48") align 8 %23, ptr noundef nonnull align 8 dereferenceable(192) %27)
          to label %179 unwind label %187

179:                                              ; preds = %172
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %181 = load ptr, ptr %174, align 8, !tbaa !13
  %182 = getelementptr inbounds ptr, ptr %181, i64 4
  %183 = load ptr, ptr %182, align 8
  invoke void %183(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull align 8 dereferenceable(384) %175, ptr noundef nonnull align 8 dereferenceable(8) %176, double noundef %177, ptr noundef %178, ptr noundef nonnull align 8 dereferenceable(8) %180)
          to label %184 unwind label %191

184:                                              ; preds = %179
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  %185 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  invoke void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_17FaceCenteredGrid2E(ptr noundef nonnull align 8 dereferenceable(192) %27, ptr noundef %185)
          to label %186 unwind label %196

186:                                              ; preds = %184
  store i32 7, ptr %15, align 4
  br label %201

187:                                              ; preds = %172
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %7, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %8, align 4
  br label %195

191:                                              ; preds = %179
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %7, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %208

196:                                              ; preds = %184
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %7, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %8, align 4
  br label %208

200:                                              ; preds = %170, %168
  store i32 0, ptr %15, align 4
  br label %201

201:                                              ; preds = %200, %186
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %202

202:                                              ; preds = %201, %146
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  %203 = load i32, ptr %15, align 4
  switch i32 %203, label %255 [
    i32 0, label %204
    i32 7, label %205
  ]

204:                                              ; preds = %202
  br label %205

205:                                              ; preds = %204, %202, %119
  %206 = load i64, ptr %14, align 8, !tbaa !11
  %207 = add i64 %206, 1
  store i64 %207, ptr %14, align 8, !tbaa !11
  br label %106, !llvm.loop !17

208:                                              ; preds = %196, %195
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %209

209:                                              ; preds = %208, %164, %163
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br label %210

210:                                              ; preds = %209, %151
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %211

211:                                              ; preds = %210, %147
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %247

212:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %213 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNK3jet17FaceCenteredGrid25cloneEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.45") align 8 %25, ptr noundef nonnull align 8 dereferenceable(384) %213)
          to label %214 unwind label %228

214:                                              ; preds = %212
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.18") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  %215 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %27, i32 0, i32 9
  %216 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %215) #5
  %217 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  %218 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  %219 = load double, ptr %4, align 8, !tbaa !9
  %220 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.48") align 8 %26, ptr noundef nonnull align 8 dereferenceable(192) %27)
          to label %221 unwind label %232

221:                                              ; preds = %214
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  %223 = load ptr, ptr %216, align 8, !tbaa !13
  %224 = getelementptr inbounds ptr, ptr %223, i64 4
  %225 = load ptr, ptr %224, align 8
  invoke void %225(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef nonnull align 8 dereferenceable(384) %217, ptr noundef nonnull align 8 dereferenceable(8) %218, double noundef %219, ptr noundef %220, ptr noundef nonnull align 8 dereferenceable(8) %222)
          to label %226 unwind label %236

226:                                              ; preds = %221
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  invoke void @_ZN3jet16GridFluidSolver222applyBoundaryConditionEv(ptr noundef nonnull align 8 dereferenceable(192) %27)
          to label %227 unwind label %241

227:                                              ; preds = %226
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %249

228:                                              ; preds = %212
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %7, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %246

232:                                              ; preds = %214
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %7, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %8, align 4
  br label %240

236:                                              ; preds = %221
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %7, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  br label %240

240:                                              ; preds = %236, %232
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %245

241:                                              ; preds = %226
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %7, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %8, align 4
  br label %245

245:                                              ; preds = %241, %240
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %246

246:                                              ; preds = %245, %228
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %247

247:                                              ; preds = %246, %211, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %248

248:                                              ; preds = %247, %96, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  br label %250

249:                                              ; preds = %227, %2
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  ret void

250:                                              ; preds = %248
  %251 = load ptr, ptr %7, align 8
  %252 = load i32, ptr %8, align 4
  %253 = insertvalue { ptr, i32 } poison, ptr %251, 0
  %254 = insertvalue { ptr, i32 } %253, i32 %252, 1
  resume { ptr, i32 } %254

255:                                              ; preds = %202
  unreachable
}

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

declare noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableScalarDataEv(ptr noundef nonnull align 8 dereferenceable(176)) #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableScalarDataAtEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_11ScalarGrid2E(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) #2 align 2

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

declare noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableVectorDataEv(ptr noundef nonnull align 8 dereferenceable(176)) #4

declare noundef i64 @_ZNK3jet15GridSystemData213velocityIndexEv(ptr noundef nonnull align 8 dereferenceable(176)) #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableVectorDataAtEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.60") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_21CollocatedVectorGrid2E(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_17FaceCenteredGrid2E(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.45" = type { %"class.std::__shared_ptr.46" }
%"class.std::__shared_ptr.46" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.48" = type { %"class.std::__shared_ptr.49" }
%"class.std::__shared_ptr.49" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.54" = type { %"class.std::__shared_ptr.55" }
%"class.std::__shared_ptr.55" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.60" = type { %"class.std::__shared_ptr.61" }
%"class.std::__shared_ptr.61" = type { ptr, %"class.std::__shared_count" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver28velocityEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.18") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.48") align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver222applyBoundaryConditionEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet16GridFluidSolver216computeAdvectionEd(ptr noundef nonnull align 8 dereferenceable(192) %0, double noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_ptr.18", align 8
  %4 = alloca %"class.std::shared_ptr.54", align 8
  %5 = alloca %"class.std::shared_ptr.54", align 8
  %6 = alloca %"class.std::shared_ptr.48", align 8
  %7 = alloca %"class.std::shared_ptr.45", align 8
  %8 = alloca %"class.std::shared_ptr.45", align 8
  %9 = alloca %"class.std::shared_ptr.60", align 8
  %10 = alloca %"class.std::shared_ptr.60", align 8
  %11 = alloca %"class.std::shared_ptr.48", align 8
  %12 = alloca %"class.std::shared_ptr.18", align 8
  %13 = alloca %"class.std::shared_ptr.18", align 8
  %14 = alloca %"class.std::shared_ptr.48", align 8
  %15 = alloca %"class.std::shared_ptr.18", align 8
  %16 = alloca %"class.std::shared_ptr.45", align 8
  %17 = alloca %"class.std::shared_ptr.48", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver28velocityEv(ptr noundef nonnull align 8 dereferenceable(192) %0)
  call void @_ZNSt10shared_ptrIN3jet17FaceCenteredGrid2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  %20 = call noundef zeroext i1 @_ZStneIN3jet16AdvectionSolver2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr null) #5
  br i1 %20, label %21, label %159

21:                                               ; preds = %2
  %22 = getelementptr inbounds i8, ptr %0, i64 80
  %23 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %24 = invoke noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableScalarDataEv(ptr noundef nonnull align 8 dereferenceable(176) %23)
          to label %.preheader55 unwind label %27

.preheader55:                                     ; preds = %21
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %48, %.preheader55
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %26 = invoke noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableVectorDataEv(ptr noundef nonnull align 8 dereferenceable(176) %25)
          to label %64 unwind label %27

27:                                               ; preds = %._crit_edge, %21
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %158

.lr.ph:                                           ; preds = %.preheader55, %48
  %.01656 = phi i64 [ %49, %48 ], [ 0, %.preheader55 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %29 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableScalarDataAtEm(ptr noundef nonnull align 8 dereferenceable(176) %29, i64 noundef %.01656)
          to label %31 unwind label %50

31:                                               ; preds = %.lr.ph
  call void @_ZNSt10shared_ptrIN3jet11ScalarGrid2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %30) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 64
  %35 = load ptr, ptr %34, align 8
  invoke void %35(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.54") align 8 %5, ptr noundef nonnull align 8 dereferenceable(240) %32)
          to label %36 unwind label %52

36:                                               ; preds = %31
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %38 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  %39 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  %40 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.48") align 8 %6, ptr noundef nonnull align 8 dereferenceable(192) %0)
          to label %41 unwind label %54

41:                                               ; preds = %36
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  %43 = load ptr, ptr %37, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load ptr, ptr %44, align 8
  invoke void %45(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(240) %38, ptr noundef nonnull align 8 dereferenceable(8) %39, double noundef %1, ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %46 unwind label %56

46:                                               ; preds = %41
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %47 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  invoke void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_11ScalarGrid2E(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef %47)
          to label %48 unwind label %59

48:                                               ; preds = %46
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %49 = add nuw i64 %.01656, 1
  %exitcond.not = icmp eq i64 %49, %24
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

50:                                               ; preds = %.lr.ph
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %63

52:                                               ; preds = %31
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %62

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %41
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %58

58:                                               ; preds = %56, %54
  %.pn48 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %61

59:                                               ; preds = %46
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %61

61:                                               ; preds = %59, %58
  %.pn50 = phi { ptr, i32 } [ %60, %59 ], [ %.pn48, %58 ]
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %62

62:                                               ; preds = %61, %52
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %61 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %63

63:                                               ; preds = %62, %50
  %.pn50.pn.pn = phi { ptr, i32 } [ %.pn50.pn, %62 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %158

64:                                               ; preds = %._crit_edge
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %66 = invoke noundef i64 @_ZNK3jet15GridSystemData213velocityIndexEv(ptr noundef nonnull align 8 dereferenceable(176) %65)
          to label %.preheader unwind label %68

.preheader:                                       ; preds = %64
  %.not60 = icmp eq i64 %26, 0
  br i1 %.not60, label %._crit_edge59, label %.lr.ph58

._crit_edge59:                                    ; preds = %129, %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %67 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  invoke void @_ZNK3jet17FaceCenteredGrid25cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.45") align 8 %16, ptr noundef nonnull align 8 dereferenceable(384) %67)
          to label %135 unwind label %147

68:                                               ; preds = %64
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %158

.lr.ph58:                                         ; preds = %.preheader, %129
  %.057 = phi i64 [ %130, %129 ], [ 0, %.preheader ]
  %70 = icmp eq i64 %.057, %66
  br i1 %70, label %129, label %71

71:                                               ; preds = %.lr.ph58
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %73 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableVectorDataAtEm(ptr noundef nonnull align 8 dereferenceable(176) %72, i64 noundef %.057)
          to label %74 unwind label %93

74:                                               ; preds = %71
  call void @_ZNSt10shared_ptrIN3jet11VectorGrid2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %73) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 64
  %78 = load ptr, ptr %77, align 8
  invoke void %78(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.45") align 8 %8, ptr noundef nonnull align 8 dereferenceable(96) %75)
          to label %79 unwind label %95

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.60") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.60") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %80 = call noundef zeroext i1 @_ZStneIN3jet21CollocatedVectorGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr null) #5
  br i1 %80, label %81, label %104

81:                                               ; preds = %79
  %82 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %83 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  %84 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  %85 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.48") align 8 %11, ptr noundef nonnull align 8 dereferenceable(192) %0)
          to label %86 unwind label %97

86:                                               ; preds = %81
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %88 = load ptr, ptr %82, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 24
  %90 = load ptr, ptr %89, align 8
  invoke void %90(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(240) %83, ptr noundef nonnull align 8 dereferenceable(8) %84, double noundef %1, ptr noundef %85, ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %91 unwind label %99

91:                                               ; preds = %86
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %92 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  invoke void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_21CollocatedVectorGrid2E(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef %92)
          to label %128 unwind label %102

93:                                               ; preds = %71
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %134

95:                                               ; preds = %74
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %133

97:                                               ; preds = %81
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %101

99:                                               ; preds = %86
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %101

101:                                              ; preds = %99, %97
  %.pn41 = phi { ptr, i32 } [ %100, %99 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %132

102:                                              ; preds = %91
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %132

104:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.18") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.18") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %105 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr null) #5
  br i1 %105, label %106, label %127

106:                                              ; preds = %104
  %107 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr null) #5
  br i1 %107, label %108, label %127

108:                                              ; preds = %106
  %109 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %110 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  %111 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  %112 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.48") align 8 %14, ptr noundef nonnull align 8 dereferenceable(192) %0)
          to label %113 unwind label %120

113:                                              ; preds = %108
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  %115 = load ptr, ptr %109, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 32
  %117 = load ptr, ptr %116, align 8
  invoke void %117(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 8 dereferenceable(384) %110, ptr noundef nonnull align 8 dereferenceable(8) %111, double noundef %1, ptr noundef %112, ptr noundef nonnull align 8 dereferenceable(8) %114)
          to label %118 unwind label %122

118:                                              ; preds = %113
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  %119 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  invoke void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_17FaceCenteredGrid2E(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef %119)
          to label %127 unwind label %125

120:                                              ; preds = %108
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %113
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %124

124:                                              ; preds = %122, %120
  %.pn37 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %131

125:                                              ; preds = %118
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %131

127:                                              ; preds = %104, %106, %118
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %128

128:                                              ; preds = %91, %127
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %129

129:                                              ; preds = %128, %.lr.ph58
  %130 = add nuw i64 %.057, 1
  %exitcond61.not = icmp eq i64 %130, %26
  br i1 %exitcond61.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !10

131:                                              ; preds = %125, %124
  %.pn39 = phi { ptr, i32 } [ %126, %125 ], [ %.pn37, %124 ]
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %132

132:                                              ; preds = %131, %102, %101
  %.pn43 = phi { ptr, i32 } [ %103, %102 ], [ %.pn41, %101 ], [ %.pn39, %131 ]
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %133

133:                                              ; preds = %132, %95
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %132 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %134

134:                                              ; preds = %133, %93
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %133 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %158

135:                                              ; preds = %._crit_edge59
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.18") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @_ZNSt12__shared_ptrIN3jet11VectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  %136 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %137 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  %138 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  %139 = call noundef ptr @_ZNKSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  invoke void @_ZNK3jet16GridFluidSolver211colliderSdfEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.48") align 8 %17, ptr noundef nonnull align 8 dereferenceable(192) %0)
          to label %140 unwind label %149

140:                                              ; preds = %135
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  %142 = load ptr, ptr %136, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 32
  %144 = load ptr, ptr %143, align 8
  invoke void %144(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull align 8 dereferenceable(384) %137, ptr noundef nonnull align 8 dereferenceable(8) %138, double noundef %1, ptr noundef %139, ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %145 unwind label %151

145:                                              ; preds = %140
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  invoke void @_ZN3jet16GridFluidSolver222applyBoundaryConditionEv(ptr noundef nonnull align 8 dereferenceable(192) %0)
          to label %146 unwind label %154

146:                                              ; preds = %145
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %159

147:                                              ; preds = %._crit_edge59
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br label %157

149:                                              ; preds = %135
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %153

151:                                              ; preds = %140
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet12ScalarField2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br label %153

153:                                              ; preds = %151, %149
  %.pn = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br label %156

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

156:                                              ; preds = %154, %153
  %.pn34 = phi { ptr, i32 } [ %155, %154 ], [ %.pn, %153 ]
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %157

157:                                              ; preds = %156, %147
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %156 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %158

158:                                              ; preds = %68, %134, %157, %63, %27
  %.pn50.pn.pn.pn = phi { ptr, i32 } [ %.pn50.pn.pn, %63 ], [ %28, %27 ], [ %.pn43.pn.pn, %134 ], [ %.pn34.pn, %157 ], [ %69, %68 ]
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn50.pn.pn.pn

159:                                              ; preds = %146, %2
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret void
}

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

declare noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableScalarDataEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableScalarDataAtEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_11ScalarGrid2E(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) local_unnamed_addr #2 align 2

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

declare noundef i64 @_ZNK3jet15GridSystemData228numberOfAdvectableVectorDataEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #4

declare noundef i64 @_ZNK3jet15GridSystemData213velocityIndexEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet15GridSystemData222advectableVectorDataAtEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.60") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_21CollocatedVectorGrid2E(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver223extrapolateIntoColliderEPNS_17FaceCenteredGrid2E(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef) local_unnamed_addr #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


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