; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (spherical_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 }
%"class.jet::FmmLevelSetSolver3" = type { %"class.jet::LevelSetSolver3" }
%"class.jet::LevelSetSolver3" = type { ptr }
%"class.jet::SphericalPointsToImplicit3" = type <{ %"class.jet::PointsToImplicit3", 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 [101 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__._ZNK3jet26SphericalPointsToImplicit37convertERKNS_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 @_ZNK3jet26SphericalPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E(ptr noundef nonnull align 8 dereferenceable(24) %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 %"class.std::shared_ptr.19", align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon, align 8
  %28 = 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
  %29 = load ptr, ptr %4, align 8
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %66

32:                                               ; 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 %33 unwind label %52

33:                                               ; preds = %32
  %34 = 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 %35 unwind label %56

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

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

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

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

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

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

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

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

51:                                               ; preds = %49
  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 %235

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

56:                                               ; preds = %39, %37, %35, %33
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  br label %64

60:                                               ; preds = %49, %47, %45, %43, %41
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %64

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

65:                                               ; preds = %64, %52
  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 %242

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

79:                                               ; preds = %66
  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 %80 unwind label %99

80:                                               ; preds = %79
  %81 = 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 %82 unwind label %103

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

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA101_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %83, ptr noundef nonnull align 1 dereferenceable(101) @.str.1)
          to label %86 unwind label %103

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

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

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

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

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

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

98:                                               ; preds = %96
  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 %233

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

103:                                              ; preds = %86, %84, %82, %80
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %9, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %10, align 4
  br label %111

107:                                              ; preds = %96, %94, %92, %90, %88
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %111

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

112:                                              ; preds = %111, %99
  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 %241

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

118:                                              ; preds = %113
  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 %119 unwind label %138

119:                                              ; preds = %118
  %120 = 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 %121 unwind label %142

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

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA101_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %122, ptr noundef nonnull align 1 dereferenceable(101) @.str.1)
          to label %125 unwind label %142

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

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

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

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

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

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

137:                                              ; preds = %135
  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 %232

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

142:                                              ; preds = %125, %123, %121, %119
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %9, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %10, align 4
  br label %150

146:                                              ; preds = %135, %133, %131, %129, %127
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %9, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %150

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

151:                                              ; preds = %150, %138
  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 %240

152:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 144, ptr %21) #5
  call void @_ZN3jet19ParticleSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(144) %21)
  %153 = 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 %154 unwind label %180

154:                                              ; preds = %152
  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 %155 unwind label %184

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

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

160:                                              ; preds = %156
  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 %193

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 16, ptr %25) #5
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = load ptr, ptr %163, align 8, !tbaa !21
  %165 = getelementptr inbounds ptr, ptr %164, i64 8
  %166 = load ptr, ptr %165, align 8
  invoke void %166(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.19") align 8 %25, ptr noundef nonnull align 8 dereferenceable(320) %163)
          to label %167 unwind label %197

167:                                              ; preds = %162
  %168 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %169 = getelementptr inbounds %class.anon, ptr %27, i32 0, i32 0
  store ptr %29, ptr %169, align 8, !tbaa !23
  %170 = getelementptr inbounds %class.anon, ptr %27, i32 0, i32 1
  store ptr %24, ptr %170, align 8, !tbaa !5
  call void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_26SphericalPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  invoke void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320) %168, ptr noundef nonnull align 8 dereferenceable(32) %26, i32 noundef 1)
          to label %171 unwind label %201

171:                                              ; preds = %167
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  %172 = getelementptr inbounds %"class.jet::SphericalPointsToImplicit3", ptr %29, i32 0, i32 2
  %173 = load i8, ptr %172, align 8, !tbaa !25, !range !26, !noundef !27
  %174 = trunc i8 %173 to i1
  br i1 %174, label %175, label %214

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  invoke void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %176 unwind label %205

176:                                              ; preds = %175
  %177 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(320) %177, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef %178)
          to label %179 unwind label %209

179:                                              ; preds = %176
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %231

180:                                              ; preds = %152
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %9, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %10, align 4
  br label %188

184:                                              ; preds = %155, %154
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %9, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %188

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

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

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

197:                                              ; preds = %162
  %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 %237

201:                                              ; preds = %167
  %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
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  br label %236

205:                                              ; preds = %175
  %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 %213

209:                                              ; preds = %176
  %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
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  br label %213

213:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %236

214:                                              ; preds = %171
  %215 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  %216 = getelementptr inbounds i8, ptr %215, i64 8
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = icmp eq ptr %217, null
  br i1 %218, label %221, label %219

219:                                              ; preds = %214
  %220 = getelementptr inbounds i8, ptr %217, i64 8
  br label %221

221:                                              ; preds = %219, %214
  %222 = phi ptr [ %220, %219 ], [ null, %214 ]
  %223 = load ptr, ptr %216, align 8, !tbaa !21
  %224 = getelementptr inbounds ptr, ptr %223, i64 5
  %225 = load ptr, ptr %224, align 8
  invoke void %225(ptr noundef nonnull align 8 dereferenceable(128) %216, ptr noundef %222)
          to label %226 unwind label %227

226:                                              ; preds = %221
  br label %231

227:                                              ; preds = %221
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %9, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %10, align 4
  br label %236

231:                                              ; preds = %226, %179
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @llvm.lifetime.end.p0(i64 16, 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 %232

232:                                              ; preds = %231, %137
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #5
  br label %233

233:                                              ; preds = %232, %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  %234 = load i32, ptr %16, align 4
  switch i32 %234, label %247 [
    i32 0, label %235
    i32 1, label %235
  ]

235:                                              ; preds = %233, %233, %51
  ret void

236:                                              ; preds = %227, %213, %201
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  br label %237

237:                                              ; preds = %236, %197
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %238

238:                                              ; preds = %237, %193
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %239

239:                                              ; preds = %238, %189, %188
  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 %240

240:                                              ; preds = %239, %151
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #5
  br label %241

241:                                              ; preds = %240, %112
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %242

242:                                              ; preds = %241, %65
  %243 = load ptr, ptr %9, align 8
  %244 = load i32, ptr %10, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246

247:                                              ; preds = %233
  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 @_ZNK3jet6LoggerlsIA101_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(101)) #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 nounwind uwtable
declare hidden void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_26SphericalPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: 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 = !{!"_ZTSN3jet26SphericalPointsToImplicit3E", !18, i64 0, !19, i64 8, !20, i64 16}
!18 = !{!"_ZTSN3jet17PointsToImplicit3E"}
!19 = !{!"double", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTSZNK3jet26SphericalPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3EE3$_0", !6, i64 0, !6, i64 8}
!25 = !{!17, !20, i64 16}
!26 = !{i8 0, i8 2}
!27 = !{}


; 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 }
%"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 [101 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__._ZNK3jet26SphericalPointsToImplicit37convertERKNS_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 @_ZNK3jet26SphericalPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3E(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.jet::Logger", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.jet::Size3", align 8
  %8 = alloca %"class.jet::Logger", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.jet::BoundingBox", align 8
  %12 = alloca %"class.jet::Logger", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.jet::ParticleSystemData3", align 8
  %16 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %17 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %18 = alloca %"class.std::shared_ptr", align 8
  %19 = alloca %"class.std::shared_ptr.19", align 8
  %20 = alloca %"class.std::function", align 8
  %21 = alloca %class.anon, align 8
  %22 = alloca %"class.jet::FmmLevelSetSolver3", align 8
  %23 = icmp eq ptr %2, null
  br i1 %23, label %24, label %52

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

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

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

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

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

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

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

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

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

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

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

44:                                               ; preds = %24
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %51

46:                                               ; preds = %31, %29, %27, %25
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

83:                                               ; preds = %63
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %90

85:                                               ; preds = %70, %68, %66, %64
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

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

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

90:                                               ; preds = %89, %83
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %89 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %8) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %8) #5
  br label %176

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

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

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

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

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

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

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

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

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

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

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

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

114:                                              ; preds = %94
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %121

116:                                              ; preds = %101, %99, %97, %95
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

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

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

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

122:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %15) #5
  call void @_ZN3jet19ParticleSystemData3C1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %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)
  invoke void @_ZN3jet19ParticleSystemData312addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144) %15, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %123 unwind label %144

123:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  %124 = getelementptr inbounds i8, ptr %0, i64 8
  %125 = load double, ptr %124, align 8, !tbaa !14
  %126 = fmul double %125, 2.000000e+00
  invoke void @_ZN3jet19ParticleSystemData321buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144) %15, double noundef %126)
          to label %127 unwind label %146

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  %128 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData316neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144) %15)
          to label %129 unwind label %148

129:                                              ; preds = %127
  call void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher3EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %128) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  %130 = load ptr, ptr %2, align 8, !tbaa !19
  %131 = getelementptr inbounds i8, ptr %130, i64 64
  %132 = load ptr, ptr %131, align 8
  invoke void %132(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.19") align 8 %19, ptr noundef nonnull align 8 dereferenceable(320) %2)
          to label %133 unwind label %150

133:                                              ; preds = %129
  %134 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #5
  store ptr %0, ptr %21, align 8, !tbaa !21
  %135 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %18, ptr %135, align 8, !tbaa !24
  call void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_26SphericalPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  invoke void @_ZN3jet11ScalarGrid34fillERKSt8functionIFdRKNS_6VectorIdLm3EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(320) %134, ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef 1)
          to label %136 unwind label %152

136:                                              ; preds = %133
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #5
  %137 = getelementptr inbounds i8, ptr %0, i64 16
  %138 = load i8, ptr %137, align 8, !tbaa !25, !range !26, !noundef !27
  %139 = trunc nuw i8 %138 to i1
  br i1 %139, label %140, label %159

140:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  invoke void @_ZN3jet18FmmLevelSetSolver3C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %141 unwind label %154

141:                                              ; preds = %140
  %142 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZN3jet18FmmLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(320) %142, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef nonnull %2)
          to label %143 unwind label %156

143:                                              ; preds = %141
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  br label %167

144:                                              ; preds = %122
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br label %174

146:                                              ; preds = %123
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %174

148:                                              ; preds = %127
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %173

150:                                              ; preds = %129
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %172

152:                                              ; preds = %133
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #5
  br label %171

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

156:                                              ; preds = %141
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3jet15LevelSetSolver3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br label %158

158:                                              ; preds = %156, %154
  %.pn = phi { ptr, i32 } [ %157, %156 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  br label %171

159:                                              ; preds = %136
  %160 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  %161 = getelementptr inbounds i8, ptr %160, i64 8
  %162 = load ptr, ptr %161, align 8, !tbaa !19
  %163 = getelementptr inbounds i8, ptr %162, i64 40
  %164 = load ptr, ptr %163, align 8
  invoke void %164(ptr noundef nonnull align 8 dereferenceable(128) %161, ptr noundef nonnull %53)
          to label %167 unwind label %165

165:                                              ; preds = %159
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %171

167:                                              ; preds = %159, %143
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__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 @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @_ZN3jet19ParticleSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %15) #5
  br label %168

168:                                              ; preds = %167, %113
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  br label %169

169:                                              ; preds = %168, %82
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %170

170:                                              ; preds = %169, %43
  ret void

171:                                              ; preds = %165, %158, %152
  %.pn.pn = phi { ptr, i32 } [ %.pn, %158 ], [ %166, %165 ], [ %153, %152 ]
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %172

172:                                              ; preds = %171, %150
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %171 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher3ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %173

173:                                              ; preds = %172, %148
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %172 ], [ %149, %148 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br label %174

174:                                              ; preds = %173, %146, %144
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %173 ], [ %147, %146 ], [ %145, %144 ]
  call void @_ZN3jet19ParticleSystemData3D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %15) #5
  br label %175

175:                                              ; preds = %174, %121
  %.pn29.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %121 ], [ %.pn.pn.pn.pn.pn, %174 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  br label %176

176:                                              ; preds = %175, %90
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn33.pn, %90 ], [ %.pn29.pn.pn, %175 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %177

177:                                              ; preds = %176, %51
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn37.pn, %51 ], [ %.pn33.pn.pn, %176 ]
  resume { ptr, i32 } %.pn37.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 @_ZNK3jet6LoggerlsIA101_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(101)) 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 nounwind uwtable
declare hidden void @"_ZNSt8functionIFdRKN3jet6VectorIdLm3EEEEEC2IZNKS0_26SphericalPointsToImplicit37convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid3EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3jet5Size3E", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
!14 = !{!15, !17, i64 8}
!15 = !{!"_ZTSN3jet26SphericalPointsToImplicit3E", !16, i64 0, !17, i64 8, !18, i64 16}
!16 = !{!"_ZTSN3jet17PointsToImplicit3E"}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSZNK3jet26SphericalPointsToImplicit37convertERKNS_18ConstArrayAccessorINS_6VectorIdLm3EEELm1EEEPNS_11ScalarGrid3EE3$_0", !23, i64 0, !23, i64 8}
!23 = !{!"any pointer", !7, i64 0}
!24 = !{!23, !23, i64 0}
!25 = !{!15, !18, i64 16}
!26 = !{i8 0, i8 2}
!27 = !{}


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