; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (zhu_bridson_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::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.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = 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, ptr }
%"class.jet::FmmLevelSetSolver3" = type { %"class.jet::LevelSetSolver3" }
%"class.jet::LevelSetSolver3" = type { ptr }
%"class.jet::ZhuBridsonPointsToImplicit3" = 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 [103 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__._ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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 @_ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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::ParticleSystemData3", align 8
  %22 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %23 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %24 = alloca %"class.std::shared_ptr", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.std::shared_ptr.19", 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) #5
  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) #5
  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 @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %37, ptr noundef nonnull align 1 dereferenceable(103) @.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) #5
  store i32 27, 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__._ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %7) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #5
  br label %248

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) #5
  br label %65

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

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

67:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %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) #5
  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) #5
  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 @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %84, ptr noundef nonnull align 1 dereferenceable(103) @.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) #5
  store i32 33, 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__._ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %13) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %13) #5
  store i32 1, ptr %16, align 4
  br label %246

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) #5
  br label %112

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

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

114:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #5
  %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) #5
  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) #5
  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 @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %123, ptr noundef nonnull align 1 dereferenceable(103) @.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) #5
  store i32 39, 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__._ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %18) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %18) #5
  store i32 1, ptr %16, align 4
  br label %245

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) #5
  br label %151

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

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

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

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

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 %192

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

160:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %161 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData316neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %162 unwind label %201

162:                                              ; preds = %160
  call void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher3EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %161) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %163 = getelementptr inbounds %"class.jet::ZhuBridsonPointsToImplicit3", ptr %30, i32 0, i32 2
  %164 = load double, ptr %163, align 8, !tbaa !21
  %165 = getelementptr inbounds %"class.jet::ZhuBridsonPointsToImplicit3", ptr %30, i32 0, i32 1
  %166 = load double, ptr %165, align 8, !tbaa !16
  %167 = fmul double %164, %166
  store double %167, ptr %25, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load ptr, ptr %168, align 8, !tbaa !23
  %170 = getelementptr inbounds ptr, ptr %169, i64 8
  %171 = load ptr, ptr %170, align 8
  invoke void %171(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.19") align 8 %26, ptr noundef nonnull align 8 dereferenceable(320) %168)
          to label %172 unwind label %205

172:                                              ; preds = %162
  %173 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  %174 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 0
  store ptr %30, ptr %174, align 8, !tbaa !25
  %175 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 1
  store ptr %24, ptr %175, align 8, !tbaa !5
  %176 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 2
  store ptr %25, ptr %176, align 8, !tbaa !5
  %177 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 3
  store ptr %6, ptr %177, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_27ZhuBridsonPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %178 unwind label %209

178:                                              ; preds = %172
  invoke void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320) %173, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 1)
          to label %179 unwind label %213

179:                                              ; preds = %178
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  %180 = getelementptr inbounds %"class.jet::ZhuBridsonPointsToImplicit3", ptr %30, i32 0, i32 3
  %181 = load i8, ptr %180, align 8, !tbaa !27, !range !28, !noundef !29
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %227

183:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  invoke void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %184 unwind label %218

184:                                              ; preds = %183
  %185 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  %186 = 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) %185, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef %186)
          to label %187 unwind label %222

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

188:                                              ; preds = %153
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %9, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %10, align 4
  br label %196

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

196:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %252

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

201:                                              ; preds = %160
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %9, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %10, align 4
  br label %251

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

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

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

217:                                              ; preds = %213, %209
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  br label %249

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

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

226:                                              ; preds = %222, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %249

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

232:                                              ; preds = %227
  %233 = getelementptr inbounds i8, ptr %230, i64 8
  br label %234

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

239:                                              ; preds = %234
  br label %244

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

244:                                              ; preds = %239, %187
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @_ZN3jet19ParticleSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #5
  store i32 0, ptr %16, align 4
  br label %245

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

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

248:                                              ; preds = %246, %246, %52
  ret void

249:                                              ; preds = %240, %226, %217
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  br label %250

250:                                              ; preds = %249, %205
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %251

251:                                              ; preds = %250, %201
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %252

252:                                              ; preds = %251, %197, %196
  call void @_ZN3jet19ParticleSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #5
  br label %253

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

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

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

260:                                              ; preds = %246
  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 @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(103)) #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 @_ZN3jet19ParticleSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(144)) 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 @_ZN3jet19ParticleSystemData321buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144), double noundef) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData316neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher3EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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_27ZhuBridsonPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"_ZTSN3jet27ZhuBridsonPointsToImplicit3E", !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 = !{!17, !19, i64 16}
!22 = !{!19, !19, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTSZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3EE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!17, !20, i64 24}
!28 = !{i8 0, i8 2}
!29 = !{}


; 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::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.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = 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, 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 [103 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__._ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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 @_ZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_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 %"class.jet::Logger", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.jet::Size3", align 8
  %9 = alloca %"class.jet::Logger", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.jet::BoundingBox", 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 %"class.jet::ParticleSystemData3", align 8
  %17 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %18 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %19 = alloca %"class.std::shared_ptr", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.std::shared_ptr.19", align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %class.anon, align 8
  %24 = alloca %"class.jet::FmmLevelSetSolver3", align 8
  store ptr %2, ptr %4, align 8, !tbaa !5
  %25 = icmp eq ptr %2, null
  br i1 %25, label %26, label %54

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

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

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

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %30, ptr noundef nonnull align 1 dereferenceable(103) @.str.1)
          to label %33 unwind label %48

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

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

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

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

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

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

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

46:                                               ; preds = %26
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %53

48:                                               ; preds = %33, %31, %29, %27
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %43, %41, %39, %37, %35
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %52

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

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

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

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

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

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

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %69, ptr noundef nonnull align 1 dereferenceable(103) @.str.1)
          to label %72 unwind label %87

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

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

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

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

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

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

84:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %9) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %9) #5
  br label %184

85:                                               ; preds = %65
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %92

87:                                               ; preds = %72, %70, %68, %66
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %82, %80, %78, %76, %74
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %91

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

92:                                               ; preds = %91, %85
  %.pn30.pn = phi { ptr, i32 } [ %.pn30, %91 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %9) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %9) #5
  br label %191

93:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #5
  %94 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3jet5Grid311boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(128) %55)
  call void @_ZN3jet11BoundingBoxIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(48) %94)
  %95 = call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm3EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(48) %12)
  br i1 %95, label %96, label %124

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %13) #5
  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 nonnull %14) #5
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, i8 noundef zeroext 3)
          to label %97 unwind label %116

97:                                               ; preds = %96
  %98 = 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 %99 unwind label %118

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

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %100, ptr noundef nonnull align 1 dereferenceable(103) @.str.1)
          to label %103 unwind label %118

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

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

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

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

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

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

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %13) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %13) #5
  br label %183

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

118:                                              ; preds = %103, %101, %99, %97
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %122

120:                                              ; preds = %113, %111, %109, %107, %105
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br label %122

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

123:                                              ; preds = %122, %116
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %122 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %13) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %13) #5
  br label %190

124:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %16) #5
  call void @_ZN3jet19ParticleSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  invoke void @_ZN3jet19ParticleSystemData312addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144) %16, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %125 unwind label %153

125:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  %126 = getelementptr inbounds i8, ptr %0, i64 8
  %127 = load double, ptr %126, align 8, !tbaa !16
  invoke void @_ZN3jet19ParticleSystemData321buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144) %16, double noundef %127)
          to label %128 unwind label %155

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  %129 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData316neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144) %16)
          to label %130 unwind label %157

130:                                              ; preds = %128
  call void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher3EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %129) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  %131 = getelementptr inbounds i8, ptr %0, i64 16
  %132 = load double, ptr %131, align 8, !tbaa !21
  %133 = load double, ptr %126, align 8, !tbaa !16
  %134 = fmul double %132, %133
  store double %134, ptr %20, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #5
  %135 = load ptr, ptr %2, align 8, !tbaa !23
  %136 = getelementptr inbounds i8, ptr %135, i64 64
  %137 = load ptr, ptr %136, align 8
  invoke void %137(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.19") align 8 %21, ptr noundef nonnull align 8 dereferenceable(320) %2)
          to label %138 unwind label %159

138:                                              ; preds = %130
  %139 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #5
  store ptr %0, ptr %23, align 8, !tbaa !25
  %140 = getelementptr inbounds i8, ptr %23, i64 8
  store ptr %19, ptr %140, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %23, i64 16
  store ptr %20, ptr %141, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %23, i64 24
  store ptr %4, ptr %142, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_27ZhuBridsonPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %143 unwind label %161

143:                                              ; preds = %138
  invoke void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320) %139, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1)
          to label %144 unwind label %163

144:                                              ; preds = %143
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #5
  %145 = getelementptr inbounds i8, ptr %0, i64 24
  %146 = load i8, ptr %145, align 8, !tbaa !27, !range !28, !noundef !29
  %147 = trunc nuw i8 %146 to i1
  br i1 %147, label %148, label %171

148:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #5
  invoke void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %149 unwind label %166

149:                                              ; preds = %148
  %150 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(320) %150, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef %151)
          to label %152 unwind label %168

152:                                              ; preds = %149
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  br label %182

153:                                              ; preds = %124
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br label %189

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

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

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

161:                                              ; preds = %138
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %143
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %165

165:                                              ; preds = %163, %161
  %.pn = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #5
  br label %186

166:                                              ; preds = %148
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %170

168:                                              ; preds = %149
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br label %170

170:                                              ; preds = %168, %166
  %.pn20 = phi { ptr, i32 } [ %169, %168 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  br label %186

171:                                              ; preds = %144
  %172 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = icmp eq ptr %174, null
  %176 = getelementptr inbounds i8, ptr %174, i64 8
  %spec.select = select i1 %175, ptr null, ptr %176
  %177 = load ptr, ptr %173, align 8, !tbaa !23
  %178 = getelementptr inbounds i8, ptr %177, i64 40
  %179 = load ptr, ptr %178, align 8
  invoke void %179(ptr noundef nonnull align 8 dereferenceable(128) %173, ptr noundef %spec.select)
          to label %182 unwind label %180

180:                                              ; preds = %171
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %186

182:                                              ; preds = %171, %152
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @_ZN3jet19ParticleSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %16) #5
  br label %183

183:                                              ; preds = %182, %115
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #5
  br label %184

184:                                              ; preds = %183, %84
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %185

185:                                              ; preds = %184, %45
  ret void

186:                                              ; preds = %180, %170, %165
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %170 ], [ %181, %180 ], [ %.pn, %165 ]
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br label %187

187:                                              ; preds = %186, %159
  %.pn20.pn.pn = phi { ptr, i32 } [ %.pn20.pn, %186 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %188

188:                                              ; preds = %187, %157
  %.pn20.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn, %187 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  br label %189

189:                                              ; preds = %188, %155, %153
  %.pn20.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn.pn, %188 ], [ %156, %155 ], [ %154, %153 ]
  call void @_ZN3jet19ParticleSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %16) #5
  br label %190

190:                                              ; preds = %189, %123
  %.pn26.pn.pn = phi { ptr, i32 } [ %.pn26.pn, %123 ], [ %.pn20.pn.pn.pn.pn, %189 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #5
  br label %191

191:                                              ; preds = %190, %92
  %.pn30.pn.pn = phi { ptr, i32 } [ %.pn30.pn, %92 ], [ %.pn26.pn.pn, %190 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %192

192:                                              ; preds = %191, %53
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %53 ], [ %.pn30.pn.pn, %191 ]
  resume { ptr, i32 } %.pn34.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 @_ZNK3jet6LoggerlsIA103_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(103)) 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 @_ZN3jet19ParticleSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(144)) 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 @_ZN3jet19ParticleSystemData321buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144), double noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData316neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher3EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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_27ZhuBridsonPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"_ZTSN3jet27ZhuBridsonPointsToImplicit3E", !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 = !{!17, !19, i64 16}
!22 = !{!19, !19, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTSZNK3jet27ZhuBridsonPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3EE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!17, !20, i64 24}
!28 = !{i8 0, i8 2}
!29 = !{}


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