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

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function.30" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.33" = type { %"class.std::_Function_base", ptr }
%class.anon.36 = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.37" = type { ptr }
%"class.std::shared_ptr.38" = type { %"class.std::__shared_ptr.39" }
%"class.std::__shared_ptr.39" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.52 = type { ptr, ptr, ptr, ptr }
%"class.std::shared_ptr.53" = type { %"class.std::__shared_ptr.54" }
%"class.std::__shared_ptr.54" = type { ptr, %"class.std::__shared_count" }
%class.anon.56 = type { ptr, ptr, ptr, ptr }
%class.anon.57 = type { ptr, ptr, ptr, ptr }
%"class.jet::VolumeGridEmitter2" = type { %"class.jet::GridEmitter2", %"class.std::shared_ptr", i8, i8, %"class.std::vector", %"class.std::vector.0" }
%"class.jet::GridEmitter2" = type { ptr, i8, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid2>, std::function<double (double, const jet::Vector<double, 2> &, double)>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid2>, std::function<jet::Vector<double, 2> (double, const jet::Vector<double, 2> &, const jet::Vector<double, 2> &)>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; 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 uwtable
define dso_local void @_ZN3jet18VolumeGridEmitter24emitEv(ptr noundef nonnull align 8 dereferenceable(120) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::function.30", align 8
  %10 = alloca %"class.std::function.33", align 8
  %11 = alloca %class.anon.36, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::shared_ptr.38", align 8
  %22 = alloca %"class.std::function.30", align 8
  %23 = alloca %"class.std::function.33", align 8
  %24 = alloca %class.anon.52, align 8
  %25 = alloca %"class.std::shared_ptr.53", align 8
  %26 = alloca %"class.std::function.30", align 8
  %27 = alloca %"class.std::function.30", align 8
  %28 = alloca %"class.std::function.33", align 8
  %29 = alloca %class.anon.56, align 8
  %30 = alloca %"class.std::function.33", align 8
  %31 = alloca %class.anon.57, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %2, align 8
  %33 = getelementptr inbounds %"class.jet::VolumeGridEmitter2", ptr %32, i32 0, i32 1
  %34 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %33) #5
  br i1 %34, label %36, label %35

35:                                               ; preds = %1
  br label %189

36:                                               ; preds = %1
  %37 = getelementptr inbounds %"class.jet::VolumeGridEmitter2", ptr %32, i32 0, i32 1
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %37) #5
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 2
  %41 = load ptr, ptr %40, align 8
  call void %41(ptr noundef nonnull align 8 dereferenceable(49) %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %42 = getelementptr inbounds %"class.jet::VolumeGridEmitter2", ptr %32, i32 0, i32 4
  store ptr %42, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS2_6VectorIdLm2EEEdEEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS2_6VectorIdLm2EEEdEEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #5
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  br label %49

49:                                               ; preds = %70, %36
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %50, label %52, label %51

51:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %81

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %53 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  store ptr %53, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS1_6VectorIdLm2EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %54) #5
  store ptr %55, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS1_6VectorIdLm2EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %56) #5
  store ptr %57, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %58) #5
  call void @_ZNK3jet11ScalarGrid212dataPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %9, ptr noundef nonnull align 8 dereferenceable(240) %59)
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %60) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %62 = getelementptr inbounds %class.anon.36, ptr %11, i32 0, i32 0
  store ptr %9, ptr %62, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.anon.36, ptr %11, i32 0, i32 1
  store ptr %32, ptr %63, align 8, !tbaa !11
  %64 = getelementptr inbounds %class.anon.36, ptr %11, i32 0, i32 2
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %65, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.anon.36, ptr %11, i32 0, i32 3
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %67, ptr %66, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %68 unwind label %72

68:                                               ; preds = %52
  invoke void @_ZNK3jet11ScalarGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240) %61, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %69 unwind label %76

69:                                               ; preds = %68
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %70

70:                                               ; preds = %69
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br label %49

72:                                               ; preds = %52
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %13, align 4
  br label %80

76:                                               ; preds = %68
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %12, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %190

81:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %82 = getelementptr inbounds %"class.jet::VolumeGridEmitter2", ptr %32, i32 0, i32 5
  store ptr %82, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS2_6VectorIdLm2EEEdRKS7_S9_EEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #5
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.37", ptr %15, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS2_6VectorIdLm2EEEdRKS7_S9_EEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #5
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.37", ptr %16, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  br label %89

89:                                               ; preds = %186, %81
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %189

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %93 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  store ptr %93, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS1_6VectorIdLm2EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %94) #5
  store ptr %95, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS1_6VectorIdLm2EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %96) #5
  store ptr %97, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.38") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %98) #5
  %99 = call noundef zeroext i1 @_ZStneIN3jet21CollocatedVectorGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr null) #5
  br i1 %99, label %100, label %125

100:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %101 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  invoke void @_ZNK3jet21CollocatedVectorGrid212dataPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %22, ptr noundef nonnull align 8 dereferenceable(240) %101)
          to label %102 unwind label %111

102:                                              ; preds = %100
  %103 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  %104 = getelementptr inbounds %class.anon.52, ptr %24, i32 0, i32 0
  store ptr %22, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.anon.52, ptr %24, i32 0, i32 1
  store ptr %32, ptr %105, align 8, !tbaa !13
  %106 = getelementptr inbounds %class.anon.52, ptr %24, i32 0, i32 2
  store ptr %21, ptr %106, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.anon.52, ptr %24, i32 0, i32 3
  %108 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %108, ptr %107, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %109 unwind label %115

109:                                              ; preds = %102
  invoke void @_ZNK3jet21CollocatedVectorGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240) %103, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %110 unwind label %119

110:                                              ; preds = %109
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  store i32 5, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %180

111:                                              ; preds = %100
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  br label %124

115:                                              ; preds = %102
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  br label %123

119:                                              ; preds = %109
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br label %123

123:                                              ; preds = %119, %115
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %124

124:                                              ; preds = %123, %111
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %188

125:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid2ENS0_11VectorGrid2EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.53") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %126) #5
  %127 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr null) #5
  br i1 %127, label %128, label %178

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  %129 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %26, ptr noundef nonnull align 8 dereferenceable(384) %129)
          to label %130 unwind label %149

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #5
  %131 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %27, ptr noundef nonnull align 8 dereferenceable(384) %131)
          to label %132 unwind label %153

132:                                              ; preds = %130
  %133 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #5
  %134 = getelementptr inbounds %class.anon.56, ptr %29, i32 0, i32 0
  store ptr %26, ptr %134, align 8, !tbaa !5
  %135 = getelementptr inbounds %class.anon.56, ptr %29, i32 0, i32 1
  store ptr %32, ptr %135, align 8, !tbaa !15
  %136 = getelementptr inbounds %class.anon.56, ptr %29, i32 0, i32 2
  store ptr %25, ptr %136, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.anon.56, ptr %29, i32 0, i32 3
  %138 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %138, ptr %137, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %139 unwind label %157

139:                                              ; preds = %132
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %133, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %140 unwind label %161

140:                                              ; preds = %139
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  %141 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #5
  %142 = getelementptr inbounds %class.anon.57, ptr %31, i32 0, i32 0
  store ptr %27, ptr %142, align 8, !tbaa !5
  %143 = getelementptr inbounds %class.anon.57, ptr %31, i32 0, i32 1
  store ptr %32, ptr %143, align 8, !tbaa !17
  %144 = getelementptr inbounds %class.anon.57, ptr %31, i32 0, i32 2
  store ptr %25, ptr %144, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.anon.57, ptr %31, i32 0, i32 3
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %146, ptr %145, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %147 unwind label %166

147:                                              ; preds = %140
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %141, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %148 unwind label %170

148:                                              ; preds = %147
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  store i32 5, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  br label %179

149:                                              ; preds = %128
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %12, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %13, align 4
  br label %177

153:                                              ; preds = %130
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %12, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %13, align 4
  br label %176

157:                                              ; preds = %132
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %12, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %13, align 4
  br label %165

161:                                              ; preds = %139
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %12, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %165

165:                                              ; preds = %161, %157
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %175

166:                                              ; preds = %140
  %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 = %147
  %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 @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  br label %174

174:                                              ; preds = %170, %166
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  br label %175

175:                                              ; preds = %174, %165
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  br label %176

176:                                              ; preds = %175, %153
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  br label %177

177:                                              ; preds = %176, %149
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %188

178:                                              ; preds = %125
  store i32 0, ptr %17, align 4
  br label %179

179:                                              ; preds = %178, %148
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %180

180:                                              ; preds = %179, %110
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %181 = load i32, ptr %17, align 4
  switch i32 %181, label %183 [
    i32 0, label %182
  ]

182:                                              ; preds = %180
  store i32 0, ptr %17, align 4
  br label %183

183:                                              ; preds = %182, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %184 = load i32, ptr %17, align 4
  switch i32 %184, label %195 [
    i32 0, label %185
    i32 5, label %186
  ]

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185, %183
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %89

188:                                              ; preds = %177, %124
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %190

189:                                              ; preds = %91, %35
  ret void

190:                                              ; preds = %188, %80
  %191 = load ptr, ptr %12, align 8
  %192 = load i32, ptr %13, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194

195:                                              ; preds = %183
  unreachable
}

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

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

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

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

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

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

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

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

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

declare void @_ZNK3jet11ScalarGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

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

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

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

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

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

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

; 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.38") 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 ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

declare void @_ZNK3jet21CollocatedVectorGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) 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.53") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3

; 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 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function.30" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.33" = type { %"class.std::_Function_base", ptr }
%class.anon.36 = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.37" = type { ptr }
%"class.std::shared_ptr.38" = type { %"class.std::__shared_ptr.39" }
%"class.std::__shared_ptr.39" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.52 = type { ptr, ptr, ptr, ptr }
%"class.std::shared_ptr.53" = type { %"class.std::__shared_ptr.54" }
%"class.std::__shared_ptr.54" = type { ptr, %"class.std::__shared_count" }
%class.anon.56 = type { ptr, ptr, ptr, ptr }
%class.anon.57 = type { ptr, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress 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 uwtable
define dso_local void @_ZN3jet18VolumeGridEmitter24emitEv(ptr noundef nonnull align 8 dereferenceable(120) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.std::function.30", align 8
  %5 = alloca %"class.std::function.33", align 8
  %6 = alloca %class.anon.36, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %9 = alloca %"class.std::shared_ptr.38", align 8
  %10 = alloca %"class.std::function.30", align 8
  %11 = alloca %"class.std::function.33", align 8
  %12 = alloca %class.anon.52, align 8
  %13 = alloca %"class.std::shared_ptr.53", align 8
  %14 = alloca %"class.std::function.30", align 8
  %15 = alloca %"class.std::function.30", align 8
  %16 = alloca %"class.std::function.33", align 8
  %17 = alloca %class.anon.56, align 8
  %18 = alloca %"class.std::function.33", align 8
  %19 = alloca %class.anon.57, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = tail call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  br i1 %21, label %22, label %116

22:                                               ; preds = %1
  %23 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load ptr, ptr %25, align 8
  tail call void %26(ptr noundef nonnull align 8 dereferenceable(49) %23)
  %27 = getelementptr inbounds i8, ptr %0, i64 72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %28 = tail call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS2_6VectorIdLm2EEEdEEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  store ptr %28, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %29 = tail call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS2_6VectorIdLm2EEEdEEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  store ptr %29, ptr %3, align 8
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %31 = getelementptr inbounds i8, ptr %6, i64 8
  %32 = getelementptr inbounds i8, ptr %6, i64 16
  %33 = getelementptr inbounds i8, ptr %6, i64 24
  br label %47

._crit_edge:                                      ; preds = %54, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %34 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %35 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS2_6VectorIdLm2EEEdRKS7_S9_EEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  store ptr %35, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %36 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS2_6VectorIdLm2EEEdRKS7_S9_EEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  store ptr %36, ptr %8, align 8
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %37, label %.lr.ph46, label %._crit_edge47

.lr.ph46:                                         ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %17, i64 8
  %39 = getelementptr inbounds i8, ptr %17, i64 16
  %40 = getelementptr inbounds i8, ptr %17, i64 24
  %41 = getelementptr inbounds i8, ptr %19, i64 8
  %42 = getelementptr inbounds i8, ptr %19, i64 16
  %43 = getelementptr inbounds i8, ptr %19, i64 24
  %44 = getelementptr inbounds i8, ptr %12, i64 8
  %45 = getelementptr inbounds i8, ptr %12, i64 16
  %46 = getelementptr inbounds i8, ptr %12, i64 24
  br label %62

47:                                               ; preds = %.lr.ph, %54
  %48 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS1_6VectorIdLm2EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %48) #5
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS1_6VectorIdLm2EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %48) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %49) #5
  call void @_ZNK3jet11ScalarGrid212dataPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %4, ptr noundef nonnull align 8 dereferenceable(240) %51)
  %52 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %49) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  store ptr %4, ptr %6, align 8, !tbaa !8
  store ptr %0, ptr %31, align 8, !tbaa !11
  store ptr %49, ptr %32, align 8, !tbaa !8
  store ptr %50, ptr %33, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %53 unwind label %57

53:                                               ; preds = %47
  invoke void @_ZNK3jet11ScalarGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240) %52, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %54 unwind label %59

54:                                               ; preds = %53
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS3_6VectorIdLm2EEEdEEEESt6vectorISD_SaISD_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %56, label %47, label %._crit_edge

57:                                               ; preds = %47
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

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

61:                                               ; preds = %59, %57
  %.pn42 = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %117

._crit_edge47:                                    ; preds = %112, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %116

62:                                               ; preds = %.lr.ph46, %112
  %63 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS1_6VectorIdLm2EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %63) #5
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS1_6VectorIdLm2EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %63) #5
  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.38") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %64) #5
  %66 = call noundef zeroext i1 @_ZStneIN3jet21CollocatedVectorGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr null) #5
  br i1 %66, label %67, label %81

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNK3jet21CollocatedVectorGrid212dataPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %10, ptr noundef nonnull align 8 dereferenceable(240) %68)
          to label %69 unwind label %73

69:                                               ; preds = %67
  %70 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  store ptr %10, ptr %12, align 8, !tbaa !8
  store ptr %0, ptr %44, align 8, !tbaa !13
  store ptr %9, ptr %45, align 8, !tbaa !8
  store ptr %65, ptr %46, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %71 unwind label %75

71:                                               ; preds = %69
  invoke void @_ZNK3jet21CollocatedVectorGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240) %70, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %72 unwind label %77

72:                                               ; preds = %71
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %112

73:                                               ; preds = %67
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %80

75:                                               ; preds = %69
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %71
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %79

79:                                               ; preds = %77, %75
  %.pn38 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %80

80:                                               ; preds = %79, %73
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %79 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %115

81:                                               ; preds = %62
  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.53") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %64) #5
  %82 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr null) #5
  br i1 %82, label %83, label %111

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  %84 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid29uPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %14, ptr noundef nonnull align 8 dereferenceable(384) %84)
          to label %85 unwind label %94

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  %86 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid29vPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %15, ptr noundef nonnull align 8 dereferenceable(384) %86)
          to label %87 unwind label %96

87:                                               ; preds = %85
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  store ptr %14, ptr %17, align 8, !tbaa !8
  store ptr %0, ptr %38, align 8, !tbaa !15
  store ptr %13, ptr %39, align 8, !tbaa !8
  store ptr %65, ptr %40, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %89 unwind label %98

89:                                               ; preds = %87
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachUIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %88, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %90 unwind label %100

90:                                               ; preds = %89
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  %91 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #5
  store ptr %15, ptr %19, align 8, !tbaa !8
  store ptr %0, ptr %41, align 8, !tbaa !17
  store ptr %13, ptr %42, align 8, !tbaa !8
  store ptr %65, ptr %43, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %92 unwind label %103

92:                                               ; preds = %90
  invoke void @_ZNK3jet17FaceCenteredGrid221parallelForEachVIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(384) %91, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %93 unwind label %105

93:                                               ; preds = %92
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  br label %111

94:                                               ; preds = %83
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %110

96:                                               ; preds = %85
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %109

98:                                               ; preds = %87
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %89
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %102

102:                                              ; preds = %100, %98
  %.pn = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  br label %108

103:                                              ; preds = %90
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %92
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  br label %107

107:                                              ; preds = %105, %103
  %.pn33 = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  br label %108

108:                                              ; preds = %107, %102
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %107 ], [ %.pn, %102 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %109

109:                                              ; preds = %108, %96
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn33.pn, %108 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %110

110:                                              ; preds = %109, %94
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn, %109 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  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
  br label %115

111:                                              ; preds = %81, %93
  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
  br label %112

112:                                              ; preds = %111, %72
  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
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %114 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid2EESt8functionIFNS3_6VectorIdLm2EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %114, label %62, label %._crit_edge47

115:                                              ; preds = %110, %80
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %80 ], [ %.pn33.pn.pn.pn, %110 ]
  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 @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %117

116:                                              ; preds = %1, %._crit_edge47
  ret void

117:                                              ; preds = %115, %61
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %61 ], [ %.pn38.pn.pn, %115 ]
  resume { ptr, i32 } %.pn42.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__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 ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid2EESt8functionIFddRKNS2_6VectorIdLm2EEEdEEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

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

declare void @_ZNK3jet11ScalarGrid212dataPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

declare void @_ZNK3jet11ScalarGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

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

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

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

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

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

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

; 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.38") 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 ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

declare void @_ZNK3jet21CollocatedVectorGrid212dataPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

declare void @_ZNK3jet21CollocatedVectorGrid229parallelForEachDataPointIndexERKSt8functionIFvmmEE(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) 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.53") 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 @_ZStneIN3jet17FaceCenteredGrid2EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) local_unnamed_addr #3

; 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmEEC2IZN3jet18VolumeGridEmitter24emitEvE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 8}
!12 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_0", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!13 = !{!14, !9, i64 8}
!14 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_1", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!15 = !{!16, !9, i64 8}
!16 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_2", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!17 = !{!18, !9, i64 8}
!18 = !{!"_ZTSZN3jet18VolumeGridEmitter24emitEvE3$_3", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}


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