; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (sph_points_to_implicit3)

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

%"class.jet::Logger" = type { i8, %"class.std::__cxx11::basic_stringstream" }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.jet::Size3" = type { i64, i64, i64 }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Vector" = type { double, double, double }
%"class.jet::SphSystemData3" = type { %"class.jet::ParticleSystemData3", double, double, double, double, i64, i64 }
%"class.jet::ParticleSystemData3" = type { %"class.jet::Serializable", double, double, i64, i64, i64, i64, %"class.std::vector.3", %"class.std::vector.8", %"class.std::shared_ptr", %"class.std::vector.13" }
%"class.jet::Serializable" = type { ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::ConstArrayAccessor.18" = type { i64, ptr }
%"class.jet::Array.19" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.20" = type { %"class.std::__shared_ptr.21" }
%"class.std::__shared_ptr.21" = type { ptr, %"class.std::__shared_count" }
%"class.std::function" = 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.anon = type { ptr, ptr, ptr }
%"class.jet::FmmLevelSetSolver3" = type { %"class.jet::LevelSetSolver3" }
%"class.jet::LevelSetSolver3" = type { ptr }
%"class.jet::SphPointsToImplicit3" = type <{ %"class.jet::PointsToImplicit3", double, double, i8, [7 x i8] }>
%"class.jet::PointsToImplicit3" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.jet::Logger", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.jet::Size3", align 8
  %13 = alloca %"class.jet::Logger", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.jet::BoundingBox", align 8
  %18 = alloca %"class.jet::Logger", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.jet::SphSystemData3", align 8
  %22 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %23 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %24 = alloca %"class.jet::Array.19", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.std::shared_ptr.20", align 8
  %27 = alloca %"class.std::function", align 8
  %28 = alloca %class.anon, align 8
  %29 = alloca %"class.jet::FmmLevelSetSolver3", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %67

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 400, ptr %7) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %7, i8 noundef zeroext 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, i8 noundef zeroext 3)
          to label %34 unwind label %53

34:                                               ; preds = %33
  %35 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %36 unwind label %57

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %35, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %38 unwind label %57

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %37, ptr noundef nonnull align 1 dereferenceable(95) @.str.1)
          to label %40 unwind label %57

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %39, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %42 unwind label %57

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 25, ptr %11, align 4, !tbaa !9
  %43 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %41, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %44 unwind label %61

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %43, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %46 unwind label %61

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %45, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E)
          to label %48 unwind label %61

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %47, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %50 unwind label %61

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA42_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %49, ptr noundef nonnull align 1 dereferenceable(42) @.str.5)
          to label %52 unwind label %61

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %7) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #6
  br label %249

53:                                               ; preds = %33
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  br label %66

57:                                               ; preds = %40, %38, %36, %34
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  br label %65

61:                                               ; preds = %50, %48, %46, %44, %42
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %65

65:                                               ; preds = %61, %57
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %66

66:                                               ; preds = %65, %53
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %7) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #6
  br label %256

67:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %69)
  call void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %70)
  %71 = getelementptr inbounds %"class.jet::Size3", ptr %12, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !11
  %73 = getelementptr inbounds %"class.jet::Size3", ptr %12, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !14
  %75 = mul i64 %72, %74
  %76 = getelementptr inbounds %"class.jet::Size3", ptr %12, i32 0, i32 2
  %77 = load i64, ptr %76, align 8, !tbaa !15
  %78 = mul i64 %75, %77
  %79 = icmp eq i64 %78, 0
  br i1 %79, label %80, label %114

80:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 400, ptr %13) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %13, i8 noundef zeroext 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, i8 noundef zeroext 3)
          to label %81 unwind label %100

81:                                               ; preds = %80
  %82 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %13, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %83 unwind label %104

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %82, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %85 unwind label %104

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %84, ptr noundef nonnull align 1 dereferenceable(95) @.str.1)
          to label %87 unwind label %104

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %86, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %89 unwind label %104

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 31, ptr %15, align 4, !tbaa !9
  %90 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %88, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %91 unwind label %108

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %90, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %93 unwind label %108

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %92, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E)
          to label %95 unwind label %108

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %94, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %97 unwind label %108

97:                                               ; preds = %95
  %98 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA24_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %96, ptr noundef nonnull align 1 dereferenceable(24) @.str.6)
          to label %99 unwind label %108

99:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %13) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %13) #6
  store i32 1, ptr %16, align 4
  br label %247

100:                                              ; preds = %80
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %9, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %10, align 4
  br label %113

104:                                              ; preds = %87, %85, %83, %81
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  br label %112

108:                                              ; preds = %97, %95, %93, %91, %89
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %9, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %112

112:                                              ; preds = %108, %104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %113

113:                                              ; preds = %112, %100
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %13) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %13) #6
  br label %255

114:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #6
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3jet5Grid311boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(128) %116)
  call void @_ZN3jet11BoundingBoxIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(48) %117)
  %118 = call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm3EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(48) %17)
  br i1 %118, label %119, label %153

119:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 400, ptr %18) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %18, i8 noundef zeroext 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, i8 noundef zeroext 3)
          to label %120 unwind label %139

120:                                              ; preds = %119
  %121 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %122 unwind label %143

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %121, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %124 unwind label %143

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %123, ptr noundef nonnull align 1 dereferenceable(95) @.str.1)
          to label %126 unwind label %143

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %125, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %128 unwind label %143

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 37, ptr %20, align 4, !tbaa !9
  %129 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %127, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %130 unwind label %147

130:                                              ; preds = %128
  %131 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %129, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %132 unwind label %147

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %131, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E)
          to label %134 unwind label %147

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %133, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %136 unwind label %147

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA26_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %135, ptr noundef nonnull align 1 dereferenceable(26) @.str.7)
          to label %138 unwind label %147

138:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %18) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %18) #6
  store i32 1, ptr %16, align 4
  br label %246

139:                                              ; preds = %119
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  br label %152

143:                                              ; preds = %126, %124, %122, %120
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  br label %151

147:                                              ; preds = %136, %134, %132, %130, %128
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %9, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %151

151:                                              ; preds = %147, %143
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %152

152:                                              ; preds = %151, %139
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %18) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %18) #6
  br label %254

153:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 192, ptr %21) #6
  call void @_ZN3jet14SphSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(192) %21)
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  invoke void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %155 unwind label %185

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  invoke void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %156 unwind label %189

156:                                              ; preds = %155
  invoke void @_ZN3jet19ParticleSystemData312addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144) %21, ptr noundef nonnull align 8 dereferenceable(16) %154, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %157 unwind label %189

157:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %158 = getelementptr inbounds %"class.jet::SphPointsToImplicit3", ptr %30, i32 0, i32 1
  %159 = load double, ptr %158, align 8, !tbaa !16
  invoke void @_ZN3jet14SphSystemData315setKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192) %21, double noundef %159)
          to label %160 unwind label %194

160:                                              ; preds = %157
  invoke void @_ZN3jet14SphSystemData321buildNeighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(192) %21)
          to label %161 unwind label %194

161:                                              ; preds = %160
  invoke void @_ZN3jet14SphSystemData315updateDensitiesEv(ptr noundef nonnull align 8 dereferenceable(192) %21)
          to label %162 unwind label %194

162:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  %163 = invoke noundef i64 @_ZNK3jet19ParticleSystemData317numberOfParticlesEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %164 unwind label %198

164:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store double 1.000000e+00, ptr %25, align 8, !tbaa !21
  invoke void @_ZN3jet5ArrayIdLm1EEC2EmRKd(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %163, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %165 unwind label %202

165:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = load ptr, ptr %166, align 8, !tbaa !22
  %168 = getelementptr inbounds ptr, ptr %167, i64 8
  %169 = load ptr, ptr %168, align 8
  invoke void %169(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.20") align 8 %26, ptr noundef nonnull align 8 dereferenceable(320) %166)
          to label %170 unwind label %206

170:                                              ; preds = %165
  %171 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #6
  %172 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 0
  store ptr %21, ptr %172, align 8, !tbaa !5
  %173 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 1
  store ptr %24, ptr %173, align 8, !tbaa !5
  %174 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 2
  store ptr %30, ptr %174, align 8, !tbaa !24
  invoke void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_20SphPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %175 unwind label %210

175:                                              ; preds = %170
  invoke void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320) %171, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 1)
          to label %176 unwind label %214

176:                                              ; preds = %175
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  %177 = getelementptr inbounds %"class.jet::SphPointsToImplicit3", ptr %30, i32 0, i32 3
  %178 = load i8, ptr %177, align 8, !tbaa !26, !range !27, !noundef !28
  %179 = trunc i8 %178 to i1
  br i1 %179, label %180, label %228

180:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  invoke void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %181 unwind label %219

181:                                              ; preds = %180
  %182 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(320) %182, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef %183)
          to label %184 unwind label %223

184:                                              ; preds = %181
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %245

185:                                              ; preds = %153
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  br label %193

189:                                              ; preds = %156, %155
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %193

193:                                              ; preds = %189, %185
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %253

194:                                              ; preds = %161, %160, %157
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %9, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %10, align 4
  br label %253

198:                                              ; preds = %162
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %9, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %10, align 4
  br label %252

202:                                              ; preds = %164
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %9, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %252

206:                                              ; preds = %165
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %9, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %10, align 4
  br label %251

210:                                              ; preds = %170
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %9, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %10, align 4
  br label %218

214:                                              ; preds = %175
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %9, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %218

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

219:                                              ; preds = %180
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %9, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %10, align 4
  br label %227

223:                                              ; preds = %181
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %9, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %10, align 4
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %227

227:                                              ; preds = %223, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %250

228:                                              ; preds = %176
  %229 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  %230 = getelementptr inbounds i8, ptr %229, i64 8
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = icmp eq ptr %231, null
  br i1 %232, label %235, label %233

233:                                              ; preds = %228
  %234 = getelementptr inbounds i8, ptr %231, i64 8
  br label %235

235:                                              ; preds = %233, %228
  %236 = phi ptr [ %234, %233 ], [ null, %228 ]
  %237 = load ptr, ptr %230, align 8, !tbaa !22
  %238 = getelementptr inbounds ptr, ptr %237, i64 5
  %239 = load ptr, ptr %238, align 8
  invoke void %239(ptr noundef nonnull align 8 dereferenceable(128) %230, ptr noundef %236)
          to label %240 unwind label %241

240:                                              ; preds = %235
  br label %245

241:                                              ; preds = %235
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %9, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %10, align 4
  br label %250

245:                                              ; preds = %240, %184
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3jet5ArrayIdLm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZN3jet14SphSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(192) %21) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %21) #6
  store i32 0, ptr %16, align 4
  br label %246

246:                                              ; preds = %245, %138
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  br label %247

247:                                              ; preds = %246, %99
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  %248 = load i32, ptr %16, align 4
  switch i32 %248, label %261 [
    i32 0, label %249
    i32 1, label %249
  ]

249:                                              ; preds = %247, %247, %52
  ret void

250:                                              ; preds = %241, %227, %218
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %251

251:                                              ; preds = %250, %206
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3jet5ArrayIdLm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  br label %252

252:                                              ; preds = %251, %202, %198
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  br label %253

253:                                              ; preds = %252, %194, %193
  call void @_ZN3jet14SphSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(192) %21) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %21) #6
  br label %254

254:                                              ; preds = %253, %152
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  br label %255

255:                                              ; preds = %254, %113
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %256

256:                                              ; preds = %255, %66
  %257 = load ptr, ptr %9, align 8
  %258 = load i32, ptr %10, align 4
  %259 = insertvalue { ptr, i32 } poison, ptr %257, 0
  %260 = insertvalue { ptr, i32 } %259, i32 %258, 1
  resume { ptr, i32 } %260

261:                                              ; preds = %247
  unreachable
}

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

declare void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400), i8 noundef zeroext) unnamed_addr #2

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

declare void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef zeroext) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(2)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(95)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(3)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA42_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(42)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA24_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(24)) #0 align 2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3jet5Grid311boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(128)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm3EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA26_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(26)) #0 align 2

declare void @_ZN3jet14SphSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #2

declare void @_ZN3jet19ParticleSystemData312addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

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

declare void @_ZN3jet14SphSystemData315setKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192), double noundef) #2

declare void @_ZN3jet14SphSystemData321buildNeighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(192)) #2

declare void @_ZN3jet14SphSystemData315updateDensitiesEv(ptr noundef nonnull align 8 dereferenceable(192)) #2

declare noundef i64 @_ZNK3jet19ParticleSystemData317numberOfParticlesEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

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

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

declare void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

declare void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

declare void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(320), double noundef, ptr noundef) unnamed_addr #2

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

; Function Attrs: nounwind
declare void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5ArrayIdLm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: nounwind
declare void @_ZN3jet14SphSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3jet5Size3E", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !13, i64 16}
!16 = !{!17, !19, i64 8}
!17 = !{!"_ZTSN3jet20SphPointsToImplicit3E", !18, i64 0, !19, i64 8, !19, i64 16, !20, i64 24}
!18 = !{!"_ZTSN3jet17PointsToImplicit3E"}
!19 = !{!"double", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!25, !6, i64 16}
!25 = !{!"_ZTSZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3EE3$_0", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!17, !20, i64 24}
!27 = !{i8 0, i8 2}
!28 = !{}


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

%"class.jet::Logger" = type { i8, %"class.std::__cxx11::basic_stringstream" }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.jet::Size3" = type { i64, i64, i64 }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Vector" = type { double, double, double }
%"class.jet::SphSystemData3" = type { %"class.jet::ParticleSystemData3", double, double, double, double, i64, i64 }
%"class.jet::ParticleSystemData3" = type { %"class.jet::Serializable", double, double, i64, i64, i64, i64, %"class.std::vector.3", %"class.std::vector.8", %"class.std::shared_ptr", %"class.std::vector.13" }
%"class.jet::Serializable" = type { ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<double, 1>, std::allocator<jet::Array<double, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 3>, 1>, std::allocator<jet::Array<jet::Vector<double, 3>, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::ConstArrayAccessor.18" = type { i64, ptr }
%"class.jet::Array.19" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.20" = type { %"class.std::__shared_ptr.21" }
%"class.std::__shared_ptr.21" = type { ptr, %"class.std::__shared_count" }
%"class.std::function" = 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.anon = type { ptr, ptr, ptr }
%"class.jet::FmmLevelSetSolver3" = type { %"class.jet::LevelSetSolver3" }
%"class.jet::LevelSetSolver3" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.jet::Logger", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.jet::Size3", align 8
  %8 = alloca %"class.jet::Logger", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.jet::BoundingBox", align 8
  %12 = alloca %"class.jet::Logger", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.jet::SphSystemData3", align 8
  %16 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %17 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %18 = alloca %"class.jet::Array.19", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.std::shared_ptr.20", align 8
  %21 = alloca %"class.std::function", align 8
  %22 = alloca %class.anon, align 8
  %23 = alloca %"class.jet::FmmLevelSetSolver3", align 8
  %24 = icmp eq ptr %2, null
  br i1 %24, label %25, label %53

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %4) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %4, i8 noundef zeroext 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, i8 noundef zeroext 3)
          to label %26 unwind label %45

26:                                               ; preds = %25
  %27 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %28 unwind label %47

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %27, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %30 unwind label %47

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 1 dereferenceable(95) @.str.1)
          to label %32 unwind label %47

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %31, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %34 unwind label %47

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 25, ptr %6, align 4, !tbaa !5
  %35 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %33, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %36 unwind label %49

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %35, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %38 unwind label %49

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %37, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E)
          to label %40 unwind label %49

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %39, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA42_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %41, ptr noundef nonnull align 1 dereferenceable(42) @.str.5)
          to label %44 unwind label %49

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %4) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %4) #6
  br label %180

45:                                               ; preds = %25
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %52

47:                                               ; preds = %32, %30, %28, %26
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %42, %40, %38, %36, %34
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %51

51:                                               ; preds = %49, %47
  %.pn40 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %52

52:                                               ; preds = %51, %45
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %51 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %4) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %4) #6
  br label %187

53:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %54 = getelementptr inbounds i8, ptr %2, i64 8
  %55 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %54)
  call void @_ZN3jet5Size3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %55)
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %7, i64 8
  %58 = load i64, ptr %57, align 8, !tbaa !12
  %59 = mul i64 %58, %56
  %60 = getelementptr inbounds i8, ptr %7, i64 16
  %61 = load i64, ptr %60, align 8, !tbaa !13
  %62 = mul i64 %59, %61
  %63 = icmp eq i64 %62, 0
  br i1 %63, label %64, label %92

64:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %8) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %8, i8 noundef zeroext 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, i8 noundef zeroext 3)
          to label %65 unwind label %84

65:                                               ; preds = %64
  %66 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %67 unwind label %86

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %66, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %69 unwind label %86

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %68, ptr noundef nonnull align 1 dereferenceable(95) @.str.1)
          to label %71 unwind label %86

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %70, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %73 unwind label %86

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 31, ptr %10, align 4, !tbaa !5
  %74 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %72, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %75 unwind label %88

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %74, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %77 unwind label %88

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %76, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E)
          to label %79 unwind label %88

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %78, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %81 unwind label %88

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA24_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %80, ptr noundef nonnull align 1 dereferenceable(24) @.str.6)
          to label %83 unwind label %88

83:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %8) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %8) #6
  br label %179

84:                                               ; preds = %64
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %91

86:                                               ; preds = %71, %69, %67, %65
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %81, %79, %77, %75, %73
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %90

90:                                               ; preds = %88, %86
  %.pn36 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %91

91:                                               ; preds = %90, %84
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %90 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %8) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %8) #6
  br label %186

92:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #6
  %93 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3jet5Grid311boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(128) %54)
  call void @_ZN3jet11BoundingBoxIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %93)
  %94 = call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm3EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(48) %11)
  br i1 %94, label %95, label %123

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %12) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %12, i8 noundef zeroext 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, i8 noundef zeroext 3)
          to label %96 unwind label %115

96:                                               ; preds = %95
  %97 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %98 unwind label %117

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %97, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %100 unwind label %117

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %99, ptr noundef nonnull align 1 dereferenceable(95) @.str.1)
          to label %102 unwind label %117

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %101, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %104 unwind label %117

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 37, ptr %14, align 4, !tbaa !5
  %105 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %103, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %106 unwind label %119

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %105, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %108 unwind label %119

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %107, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E)
          to label %110 unwind label %119

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %109, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %112 unwind label %119

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA26_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %111, ptr noundef nonnull align 1 dereferenceable(26) @.str.7)
          to label %114 unwind label %119

114:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %12) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %12) #6
  br label %178

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

117:                                              ; preds = %102, %100, %98, %96
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %112, %110, %108, %106, %104
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %121

121:                                              ; preds = %119, %117
  %.pn32 = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %122

122:                                              ; preds = %121, %115
  %.pn32.pn = phi { ptr, i32 } [ %.pn32, %121 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %12) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %12) #6
  br label %185

123:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %15) #6
  call void @_ZN3jet14SphSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(192) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
  invoke void @_ZN3jet19ParticleSystemData312addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144) %15, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %124 unwind label %149

124:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  %125 = getelementptr inbounds i8, ptr %0, i64 8
  %126 = load double, ptr %125, align 8, !tbaa !14
  invoke void @_ZN3jet14SphSystemData315setKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192) %15, double noundef %126)
          to label %127 unwind label %151

127:                                              ; preds = %124
  invoke void @_ZN3jet14SphSystemData321buildNeighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(192) %15)
          to label %128 unwind label %151

128:                                              ; preds = %127
  invoke void @_ZN3jet14SphSystemData315updateDensitiesEv(ptr noundef nonnull align 8 dereferenceable(192) %15)
          to label %129 unwind label %151

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  %130 = invoke noundef i64 @_ZNK3jet19ParticleSystemData317numberOfParticlesEv(ptr noundef nonnull align 8 dereferenceable(144) %15)
          to label %131 unwind label %153

131:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  store double 1.000000e+00, ptr %19, align 8, !tbaa !19
  invoke void @_ZN3jet5ArrayIdLm1EEC2EmRKd(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %130, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %132 unwind label %155

132:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  %133 = load ptr, ptr %2, align 8, !tbaa !20
  %134 = getelementptr inbounds i8, ptr %133, i64 64
  %135 = load ptr, ptr %134, align 8
  invoke void %135(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.20") align 8 %20, ptr noundef nonnull align 8 dereferenceable(320) %2)
          to label %136 unwind label %157

136:                                              ; preds = %132
  %137 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #6
  store ptr %15, ptr %22, align 8, !tbaa !22
  %138 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %18, ptr %138, align 8, !tbaa !22
  %139 = getelementptr inbounds i8, ptr %22, i64 16
  store ptr %0, ptr %139, align 8, !tbaa !24
  invoke void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_20SphPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %140 unwind label %159

140:                                              ; preds = %136
  invoke void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320) %137, ptr noundef nonnull align 8 dereferenceable(32) %21, i32 noundef 1)
          to label %141 unwind label %161

141:                                              ; preds = %140
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  %142 = getelementptr inbounds i8, ptr %0, i64 24
  %143 = load i8, ptr %142, align 8, !tbaa !26, !range !27, !noundef !28
  %144 = trunc nuw i8 %143 to i1
  br i1 %144, label %145, label %169

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  invoke void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %146 unwind label %164

146:                                              ; preds = %145
  %147 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(320) %147, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef nonnull %2)
          to label %148 unwind label %166

148:                                              ; preds = %146
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  br label %177

149:                                              ; preds = %123
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %184

151:                                              ; preds = %128, %127, %124
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %184

153:                                              ; preds = %129
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %183

155:                                              ; preds = %131
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %183

157:                                              ; preds = %132
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %182

159:                                              ; preds = %136
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %163

161:                                              ; preds = %140
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %163

163:                                              ; preds = %161, %159
  %.pn = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %181

164:                                              ; preds = %145
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %146
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %168

168:                                              ; preds = %166, %164
  %.pn26 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  br label %181

169:                                              ; preds = %141
  %170 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  %171 = getelementptr inbounds i8, ptr %170, i64 8
  %172 = load ptr, ptr %171, align 8, !tbaa !20
  %173 = getelementptr inbounds i8, ptr %172, i64 40
  %174 = load ptr, ptr %173, align 8
  invoke void %174(ptr noundef nonnull align 8 dereferenceable(128) %171, ptr noundef nonnull %54)
          to label %177 unwind label %175

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

177:                                              ; preds = %169, %148
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @_ZN3jet5ArrayIdLm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @_ZN3jet14SphSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(192) %15) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %15) #6
  br label %178

178:                                              ; preds = %177, %114
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  br label %179

179:                                              ; preds = %178, %83
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %180

180:                                              ; preds = %179, %44
  ret void

181:                                              ; preds = %175, %168, %163
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %168 ], [ %176, %175 ], [ %.pn, %163 ]
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %182

182:                                              ; preds = %181, %157
  %.pn26.pn.pn = phi { ptr, i32 } [ %.pn26.pn, %181 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @_ZN3jet5ArrayIdLm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %183

183:                                              ; preds = %182, %155, %153
  %.pn26.pn.pn.pn = phi { ptr, i32 } [ %.pn26.pn.pn, %182 ], [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %184

184:                                              ; preds = %183, %151, %149
  %.pn26.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn26.pn.pn.pn, %183 ], [ %152, %151 ], [ %150, %149 ]
  call void @_ZN3jet14SphSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(192) %15) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %15) #6
  br label %185

185:                                              ; preds = %184, %122
  %.pn32.pn.pn = phi { ptr, i32 } [ %.pn32.pn, %122 ], [ %.pn26.pn.pn.pn.pn, %184 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  br label %186

186:                                              ; preds = %185, %91
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %91 ], [ %.pn32.pn.pn, %185 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %187

187:                                              ; preds = %186, %52
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %52 ], [ %.pn36.pn.pn, %186 ]
  resume { ptr, i32 } %.pn40.pn.pn
}

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

declare void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400), i8 noundef zeroext) unnamed_addr #2

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

declare void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef zeroext) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA95_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(95)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA42_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(42)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA24_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(24)) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3jet5Grid311boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm3EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA26_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(26)) local_unnamed_addr #0 align 2

declare void @_ZN3jet14SphSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #2

declare void @_ZN3jet19ParticleSystemData312addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

declare void @_ZN3jet14SphSystemData315setKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192), double noundef) local_unnamed_addr #2

declare void @_ZN3jet14SphSystemData321buildNeighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2

declare void @_ZN3jet14SphSystemData315updateDensitiesEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2

declare noundef i64 @_ZNK3jet19ParticleSystemData317numberOfParticlesEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

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

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

declare void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

declare void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

declare void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(320), double noundef, ptr noundef) unnamed_addr #2

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

; Function Attrs: nounwind
declare void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5ArrayIdLm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: nounwind
declare void @_ZN3jet14SphSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3jet5Size3E", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
!14 = !{!15, !17, i64 8}
!15 = !{!"_ZTSN3jet20SphPointsToImplicit3E", !16, i64 0, !17, i64 8, !17, i64 16, !18, i64 24}
!16 = !{!"_ZTSN3jet17PointsToImplicit3E"}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!17, !17, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"any pointer", !7, i64 0}
!24 = !{!25, !23, i64 16}
!25 = !{!"_ZTSZNK3jet20SphPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3EE3$_0", !23, i64 0, !23, i64 8, !23, i64 16}
!26 = !{!15, !18, i64 24}
!27 = !{i8 0, i8 2}
!28 = !{}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass