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

; 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.32" = type { %"class.std::_Function_base", ptr }
%class.anon.34 = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.35" = type { ptr }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.50 = type { ptr, ptr, ptr, ptr }
%"class.std::shared_ptr.51" = type { %"class.std::__shared_ptr.52" }
%"class.std::__shared_ptr.52" = type { ptr, %"class.std::__shared_count" }
%class.anon.54 = type { ptr, ptr, ptr, ptr }
%class.anon.55 = type { ptr, ptr, ptr, ptr }
%class.anon.56 = type { ptr, ptr, ptr, ptr }
%"class.jet::VolumeGridEmitter3" = type { %"class.jet::GridEmitter3", %"class.std::shared_ptr", i8, i8, %"class.std::vector", %"class.std::vector.0" }
%"class.jet::GridEmitter3" = 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::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, double)>>, std::allocator<std::tuple<std::shared_ptr<jet::ScalarGrid3>, std::function<double (double, const jet::Vector<double, 3> &, 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::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>, std::allocator<std::tuple<std::shared_ptr<jet::VectorGrid3>, std::function<jet::Vector<double, 3> (double, const jet::Vector<double, 3> &, const jet::Vector<double, 3> &)>>>>::_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_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet18VolumeGridEmitter34emitEv(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.32", align 8
  %11 = alloca %class.anon.34, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.35", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.35", 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.36", align 8
  %22 = alloca %"class.std::function.30", align 8
  %23 = alloca %"class.std::function.32", align 8
  %24 = alloca %class.anon.50, align 8
  %25 = alloca %"class.std::shared_ptr.51", align 8
  %26 = alloca %"class.std::function.30", align 8
  %27 = alloca %"class.std::function.30", align 8
  %28 = alloca %"class.std::function.30", align 8
  %29 = alloca %"class.std::function.32", align 8
  %30 = alloca %class.anon.54, align 8
  %31 = alloca %"class.std::function.32", align 8
  %32 = alloca %class.anon.55, align 8
  %33 = alloca %"class.std::function.32", align 8
  %34 = alloca %class.anon.56, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8
  %36 = getelementptr inbounds %"class.jet::VolumeGridEmitter3", ptr %35, i32 0, i32 1
  %37 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface3ELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #5
  br i1 %37, label %39, label %38

38:                                               ; preds = %1
  br label %216

39:                                               ; preds = %1
  %40 = getelementptr inbounds %"class.jet::VolumeGridEmitter3", ptr %35, i32 0, i32 1
  %41 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %40) #5
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 2
  %44 = load ptr, ptr %43, align 8
  call void %44(ptr noundef nonnull align 8 dereferenceable(209) %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %45 = getelementptr inbounds %"class.jet::VolumeGridEmitter3", ptr %35, i32 0, i32 4
  store ptr %45, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS2_6VectorIdLm3EEEdEEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #5
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS2_6VectorIdLm3EEEdEEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  br label %52

52:                                               ; preds = %73, %39
  %53 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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 %53, label %55, label %54

54:                                               ; preds = %52
  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 %84

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %56 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  store ptr %56, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %57) #5
  store ptr %58, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %59) #5
  store ptr %60, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %61) #5
  call void @_ZNK3jet11ScalarGrid312dataPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %9, ptr noundef nonnull align 8 dereferenceable(320) %62)
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %63) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %65 = getelementptr inbounds %class.anon.34, ptr %11, i32 0, i32 0
  store ptr %9, ptr %65, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.anon.34, ptr %11, i32 0, i32 1
  store ptr %35, ptr %66, align 8, !tbaa !11
  %67 = getelementptr inbounds %class.anon.34, ptr %11, i32 0, i32 2
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %68, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.anon.34, ptr %11, i32 0, i32 3
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %70, ptr %69, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %71 unwind label %75

71:                                               ; preds = %55
  invoke void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320) %64, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %72 unwind label %79

72:                                               ; preds = %71
  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 %73

73:                                               ; preds = %72
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br label %52

75:                                               ; preds = %55
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %12, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %13, align 4
  br label %83

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

83:                                               ; preds = %79, %75
  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 %217

84:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %85 = getelementptr inbounds %"class.jet::VolumeGridEmitter3", ptr %35, i32 0, i32 5
  store ptr %85, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_S9_EEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #5
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.35", ptr %15, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_S9_EEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #5
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.35", ptr %16, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  br label %92

92:                                               ; preds = %213, %84
  %93 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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 %93, label %95, label %94

94:                                               ; preds = %92
  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 %216

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %96 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  store ptr %96, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %97) #5
  store ptr %98, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %99) #5
  store ptr %100, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.36") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %101) #5
  %102 = call noundef zeroext i1 @_ZStneIN3jet21CollocatedVectorGrid3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr null) #5
  br i1 %102, label %103, label %128

103:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %104 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  invoke void @_ZNK3jet21CollocatedVectorGrid312dataPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %22, ptr noundef nonnull align 8 dereferenceable(320) %104)
          to label %105 unwind label %114

105:                                              ; preds = %103
  %106 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid3ELN9__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
  %107 = getelementptr inbounds %class.anon.50, ptr %24, i32 0, i32 0
  store ptr %22, ptr %107, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.anon.50, ptr %24, i32 0, i32 1
  store ptr %35, ptr %108, align 8, !tbaa !13
  %109 = getelementptr inbounds %class.anon.50, ptr %24, i32 0, i32 2
  store ptr %21, ptr %109, align 8, !tbaa !5
  %110 = getelementptr inbounds %class.anon.50, ptr %24, i32 0, i32 3
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %111, ptr %110, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %112 unwind label %118

112:                                              ; preds = %105
  invoke void @_ZNK3jet21CollocatedVectorGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320) %106, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %113 unwind label %122

113:                                              ; preds = %112
  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 %207

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

118:                                              ; preds = %105
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %126

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

126:                                              ; preds = %122, %118
  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 %127

127:                                              ; preds = %126, %114
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %215

128:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.51") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %129) #5
  %130 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr null) #5
  br i1 %130, label %131, label %205

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  %132 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNK3jet17FaceCenteredGrid39uPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %26, ptr noundef nonnull align 8 dereferenceable(696) %132)
          to label %133 unwind label %162

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #5
  %134 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNK3jet17FaceCenteredGrid39vPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %27, ptr noundef nonnull align 8 dereferenceable(696) %134)
          to label %135 unwind label %166

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  %136 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNK3jet17FaceCenteredGrid39wPositionEv(ptr dead_on_unwind writable sret(%"class.std::function.30") align 8 %28, ptr noundef nonnull align 8 dereferenceable(696) %136)
          to label %137 unwind label %170

137:                                              ; preds = %135
  %138 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  %139 = getelementptr inbounds %class.anon.54, ptr %30, i32 0, i32 0
  store ptr %26, ptr %139, align 8, !tbaa !5
  %140 = getelementptr inbounds %class.anon.54, ptr %30, i32 0, i32 1
  store ptr %35, ptr %140, align 8, !tbaa !15
  %141 = getelementptr inbounds %class.anon.54, ptr %30, i32 0, i32 2
  store ptr %25, ptr %141, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.anon.54, ptr %30, i32 0, i32 3
  %143 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %143, ptr %142, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %144 unwind label %174

144:                                              ; preds = %137
  invoke void @_ZNK3jet17FaceCenteredGrid321parallelForEachUIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696) %138, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %145 unwind label %178

145:                                              ; preds = %144
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  %146 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #5
  %147 = getelementptr inbounds %class.anon.55, ptr %32, i32 0, i32 0
  store ptr %27, ptr %147, align 8, !tbaa !5
  %148 = getelementptr inbounds %class.anon.55, ptr %32, i32 0, i32 1
  store ptr %35, ptr %148, align 8, !tbaa !17
  %149 = getelementptr inbounds %class.anon.55, ptr %32, i32 0, i32 2
  store ptr %25, ptr %149, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.anon.55, ptr %32, i32 0, i32 3
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %151, ptr %150, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %152 unwind label %183

152:                                              ; preds = %145
  invoke void @_ZNK3jet17FaceCenteredGrid321parallelForEachVIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696) %146, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %153 unwind label %187

153:                                              ; preds = %152
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #5
  %154 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #5
  %155 = getelementptr inbounds %class.anon.56, ptr %34, i32 0, i32 0
  store ptr %28, ptr %155, align 8, !tbaa !5
  %156 = getelementptr inbounds %class.anon.56, ptr %34, i32 0, i32 1
  store ptr %35, ptr %156, align 8, !tbaa !19
  %157 = getelementptr inbounds %class.anon.56, ptr %34, i32 0, i32 2
  store ptr %25, ptr %157, align 8, !tbaa !5
  %158 = getelementptr inbounds %class.anon.56, ptr %34, i32 0, i32 3
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %159, ptr %158, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %160 unwind label %192

160:                                              ; preds = %153
  invoke void @_ZNK3jet17FaceCenteredGrid321parallelForEachWIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696) %154, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %161 unwind label %196

161:                                              ; preds = %160
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #5
  store i32 5, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  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 %206

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

166:                                              ; preds = %133
  %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 %203

170:                                              ; preds = %135
  %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
  br label %202

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

178:                                              ; preds = %144
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %12, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  br label %201

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

187:                                              ; preds = %152
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %12, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #5
  br label %191

191:                                              ; preds = %187, %183
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #5
  br label %201

192:                                              ; preds = %153
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %12, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %13, align 4
  br label %200

196:                                              ; preds = %160
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %12, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #5
  br label %201

201:                                              ; preds = %200, %191, %182
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %202

202:                                              ; preds = %201, %170
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  br label %203

203:                                              ; preds = %202, %166
  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 %204

204:                                              ; preds = %203, %162
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid3ELN9__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 %215

205:                                              ; preds = %128
  store i32 0, ptr %17, align 4
  br label %206

206:                                              ; preds = %205, %161
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid3ELN9__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 %207

207:                                              ; preds = %206, %113
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid3ELN9__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
  %208 = load i32, ptr %17, align 4
  switch i32 %208, label %210 [
    i32 0, label %209
  ]

209:                                              ; preds = %207
  store i32 0, ptr %17, align 4
  br label %210

210:                                              ; preds = %209, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %211 = load i32, ptr %17, align 4
  switch i32 %211, label %222 [
    i32 0, label %212
    i32 5, label %213
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212, %210
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %92

215:                                              ; preds = %204, %127
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid3ELN9__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 %217

216:                                              ; preds = %94, %38
  ret void

217:                                              ; preds = %215, %83
  %218 = load ptr, ptr %12, align 8
  %219 = load i32, ptr %13, align 4
  %220 = insertvalue { ptr, i32 } poison, ptr %218, 0
  %221 = insertvalue { ptr, i32 } %220, i32 %219, 1
  resume { ptr, i32 } %221

222:                                              ; preds = %210
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface3ELN9__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_accessIN3jet16ImplicitSurface3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS2_6VectorIdLm3EEEdEEEESaISC_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48)) #1

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

declare void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_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_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_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_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_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_castIN3jet21CollocatedVectorGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.36") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

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

declare void @_ZNK3jet21CollocatedVectorGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_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_castIN3jet17FaceCenteredGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.51") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

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

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

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

declare void @_ZNK3jet17FaceCenteredGrid321parallelForEachUIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

declare void @_ZNK3jet17FaceCenteredGrid321parallelForEachVIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

declare void @_ZNK3jet17FaceCenteredGrid321parallelForEachWIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_4vEEOT_"(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_ptrIN3jet17FaceCenteredGrid3ELN9__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_ptrIN3jet21CollocatedVectorGrid3ELN9__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_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_4", !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.32" = type { %"class.std::_Function_base", ptr }
%class.anon.34 = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.35" = type { ptr }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.50 = type { ptr, ptr, ptr, ptr }
%"class.std::shared_ptr.51" = type { %"class.std::__shared_ptr.52" }
%"class.std::__shared_ptr.52" = type { ptr, %"class.std::__shared_count" }
%class.anon.54 = type { ptr, ptr, ptr, ptr }
%class.anon.55 = type { ptr, ptr, ptr, ptr }
%class.anon.56 = 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_accessIN3jet11ScalarGrid3ELN9__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 @_ZN3jet18VolumeGridEmitter34emitEv(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.32", align 8
  %6 = alloca %class.anon.34, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.35", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.35", align 8
  %9 = alloca %"class.std::shared_ptr.36", align 8
  %10 = alloca %"class.std::function.30", align 8
  %11 = alloca %"class.std::function.32", align 8
  %12 = alloca %class.anon.50, align 8
  %13 = alloca %"class.std::shared_ptr.51", align 8
  %14 = alloca %"class.std::function.30", align 8
  %15 = alloca %"class.std::function.30", align 8
  %16 = alloca %"class.std::function.30", align 8
  %17 = alloca %"class.std::function.32", align 8
  %18 = alloca %class.anon.54, align 8
  %19 = alloca %"class.std::function.32", align 8
  %20 = alloca %class.anon.55, align 8
  %21 = alloca %"class.std::function.32", align 8
  %22 = alloca %class.anon.56, align 8
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = tail call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface3ELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br i1 %24, label %25, label %135

25:                                               ; preds = %1
  %26 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load ptr, ptr %28, align 8
  tail call void %29(ptr noundef nonnull align 8 dereferenceable(209) %26)
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %31 = tail call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS2_6VectorIdLm3EEEdEEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  store ptr %31, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %32 = tail call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS2_6VectorIdLm3EEEdEEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  store ptr %32, ptr %3, align 8
  %33 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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 %33, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %34 = getelementptr inbounds i8, ptr %6, i64 8
  %35 = getelementptr inbounds i8, ptr %6, i64 16
  %36 = getelementptr inbounds i8, ptr %6, i64 24
  br label %53

._crit_edge:                                      ; preds = %60, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %37 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %38 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_S9_EEEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  store ptr %38, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %39 = call ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_S9_EEEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  store ptr %39, ptr %8, align 8
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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 %40, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %._crit_edge
  %41 = getelementptr inbounds i8, ptr %18, i64 8
  %42 = getelementptr inbounds i8, ptr %18, i64 16
  %43 = getelementptr inbounds i8, ptr %18, i64 24
  %44 = getelementptr inbounds i8, ptr %20, i64 8
  %45 = getelementptr inbounds i8, ptr %20, i64 16
  %46 = getelementptr inbounds i8, ptr %20, i64 24
  %47 = getelementptr inbounds i8, ptr %22, i64 8
  %48 = getelementptr inbounds i8, ptr %22, i64 16
  %49 = getelementptr inbounds i8, ptr %22, i64 24
  %50 = getelementptr inbounds i8, ptr %12, i64 8
  %51 = getelementptr inbounds i8, ptr %12, i64 16
  %52 = getelementptr inbounds i8, ptr %12, i64 24
  br label %68

53:                                               ; preds = %.lr.ph, %60
  %54 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %54) #5
  %56 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %54) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %55) #5
  call void @_ZNK3jet11ScalarGrid312dataPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %4, ptr noundef nonnull align 8 dereferenceable(320) %57)
  %58 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %55) #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 %34, align 8, !tbaa !11
  store ptr %55, ptr %35, align 8, !tbaa !8
  store ptr %56, ptr %36, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %59 unwind label %63

59:                                               ; preds = %53
  invoke void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320) %58, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %60 unwind label %65

60:                                               ; preds = %59
  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
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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 %62, label %53, label %._crit_edge

63:                                               ; preds = %53
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

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

67:                                               ; preds = %65, %63
  %.pn48 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  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 %136

._crit_edge53:                                    ; preds = %131, %._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 %135

68:                                               ; preds = %.lr.ph52, %131
  %69 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt3getILm0EJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %69) #5
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_S8_EEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48) %69) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZSt20dynamic_pointer_castIN3jet21CollocatedVectorGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.36") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %70) #5
  %72 = call noundef zeroext i1 @_ZStneIN3jet21CollocatedVectorGrid3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr null) #5
  br i1 %72, label %73, label %87

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNK3jet21CollocatedVectorGrid312dataPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %10, ptr noundef nonnull align 8 dereferenceable(320) %74)
          to label %75 unwind label %79

75:                                               ; preds = %73
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet21CollocatedVectorGrid3ELN9__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 %50, align 8, !tbaa !13
  store ptr %9, ptr %51, align 8, !tbaa !8
  store ptr %71, ptr %52, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %77 unwind label %81

77:                                               ; preds = %75
  invoke void @_ZNK3jet21CollocatedVectorGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320) %76, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %78 unwind label %83

78:                                               ; preds = %77
  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 %131

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

81:                                               ; preds = %75
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

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

85:                                               ; preds = %83, %81
  %.pn44 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  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 %86

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

87:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @_ZSt20dynamic_pointer_castIN3jet17FaceCenteredGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.51") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %70) #5
  %88 = call noundef zeroext i1 @_ZStneIN3jet17FaceCenteredGrid3EEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr null) #5
  br i1 %88, label %89, label %130

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  %90 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid39uPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %14, ptr noundef nonnull align 8 dereferenceable(696) %90)
          to label %91 unwind label %105

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  %92 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid39vPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %15, ptr noundef nonnull align 8 dereferenceable(696) %92)
          to label %93 unwind label %107

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  %94 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNK3jet17FaceCenteredGrid39wPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.std::function.30") align 8 %16, ptr noundef nonnull align 8 dereferenceable(696) %94)
          to label %95 unwind label %109

95:                                               ; preds = %93
  %96 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #5
  store ptr %14, ptr %18, align 8, !tbaa !8
  store ptr %0, ptr %41, align 8, !tbaa !15
  store ptr %13, ptr %42, align 8, !tbaa !8
  store ptr %71, ptr %43, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %97 unwind label %111

97:                                               ; preds = %95
  invoke void @_ZNK3jet17FaceCenteredGrid321parallelForEachUIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696) %96, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %98 unwind label %113

98:                                               ; preds = %97
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  %99 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #5
  store ptr %15, ptr %20, align 8, !tbaa !8
  store ptr %0, ptr %44, align 8, !tbaa !17
  store ptr %13, ptr %45, align 8, !tbaa !8
  store ptr %71, ptr %46, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %100 unwind label %116

100:                                              ; preds = %98
  invoke void @_ZNK3jet17FaceCenteredGrid321parallelForEachVIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696) %99, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %101 unwind label %118

101:                                              ; preds = %100
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  %102 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #5
  store ptr %16, ptr %22, align 8, !tbaa !8
  store ptr %0, ptr %47, align 8, !tbaa !19
  store ptr %13, ptr %48, align 8, !tbaa !8
  store ptr %71, ptr %49, align 8, !tbaa !8
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %103 unwind label %121

103:                                              ; preds = %101
  invoke void @_ZNK3jet17FaceCenteredGrid321parallelForEachWIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(696) %102, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %104 unwind label %123

104:                                              ; preds = %103
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #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 %130

105:                                              ; preds = %89
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %129

107:                                              ; preds = %91
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %128

109:                                              ; preds = %93
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %127

111:                                              ; preds = %95
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %115

113:                                              ; preds = %97
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %115

115:                                              ; preds = %113, %111
  %.pn = phi { ptr, i32 } [ %114, %113 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  br label %126

116:                                              ; preds = %98
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %100
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  br label %120

120:                                              ; preds = %118, %116
  %.pn36 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  br label %126

121:                                              ; preds = %101
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %125

123:                                              ; preds = %103
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  br label %125

125:                                              ; preds = %123, %121
  %.pn38 = phi { ptr, i32 } [ %124, %123 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #5
  br label %126

126:                                              ; preds = %125, %120, %115
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %125 ], [ %.pn36, %120 ], [ %.pn, %115 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %127

127:                                              ; preds = %126, %109
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %126 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %128

128:                                              ; preds = %127, %107
  %.pn38.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn, %127 ], [ %108, %107 ]
  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 %129

129:                                              ; preds = %128, %105
  %.pn38.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn.pn, %128 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid3ELN9__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 %134

130:                                              ; preds = %87, %104
  call void @_ZNSt12__shared_ptrIN3jet17FaceCenteredGrid3ELN9__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 %131

131:                                              ; preds = %130, %78
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid3ELN9__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
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_SA_EEEESt6vectorISD_SaISD_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %133 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJSt10shared_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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 %133, label %68, label %._crit_edge53

134:                                              ; preds = %129, %86
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %86 ], [ %.pn38.pn.pn.pn.pn, %129 ]
  call void @_ZNSt12__shared_ptrIN3jet21CollocatedVectorGrid3ELN9__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 %136

135:                                              ; preds = %1, %._crit_edge53
  ret void

136:                                              ; preds = %134, %67
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %67 ], [ %.pn44.pn.pn, %134 ]
  resume { ptr, i32 } %.pn48.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJSt10shared_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS2_6VectorIdLm3EEEdEEEESaISC_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS1_6VectorIdLm3EEEdEEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKSF_(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_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_ptrIN3jet11ScalarGrid3EESt8functionIFddRKNS3_6VectorIdLm3EEEdEEEESt6vectorISD_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_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_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_ptrIN3jet11VectorGrid3EESt8functionIFNS2_6VectorIdLm3EEEdRKS7_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_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_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_ptrIN3jet11VectorGrid3EESt8functionIFNS1_6VectorIdLm3EEEdRKS6_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_castIN3jet21CollocatedVectorGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.36") 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 @_ZStneIN3jet21CollocatedVectorGrid3EEbRKSt10shared_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_accessIN3jet21CollocatedVectorGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_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_castIN3jet17FaceCenteredGrid3ENS0_11VectorGrid3EESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.51") 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 @_ZStneIN3jet17FaceCenteredGrid3EEbRKSt10shared_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_accessIN3jet17FaceCenteredGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvmmmEEC2IZN3jet18VolumeGridEmitter34emitEvE3$_4vEEOT_"(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_ptrIN3jet17FaceCenteredGrid3ELN9__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_ptrIN3jet21CollocatedVectorGrid3ELN9__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_ptrIN3jet11VectorGrid3EESt8functionIFNS3_6VectorIdLm3EEEdRKS8_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 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_0", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!13 = !{!14, !9, i64 8}
!14 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_1", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!15 = !{!16, !9, i64 8}
!16 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_2", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!17 = !{!18, !9, i64 8}
!18 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_3", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!19 = !{!20, !9, i64 8}
!20 = !{!"_ZTSZN3jet18VolumeGridEmitter34emitEvE3$_4", !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