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

; 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::Size2" = type { i64, i64 }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Vector" = type { double, double }
%"class.jet::ParticleSystemData2" = 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, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<jet::Vector<double, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::ConstArrayAccessor.18" = type { i64, ptr }
%"class.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = type { ptr, %"class.std::__shared_count" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr }
%"class.jet::FmmLevelSetSolver2" = type { %"class.jet::LevelSetSolver2" }
%"class.jet::LevelSetSolver2" = type { ptr }
%"class.jet::ZhuBridsonPointsToImplicit2" = type <{ %"class.jet::PointsToImplicit2", double, double, i8, [7 x i8] }>
%"class.jet::PointsToImplicit2" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__._ZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2E = 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 @_ZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2E(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.jet::Logger", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.jet::Size2", 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::ParticleSystemData2", align 8
  %22 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %23 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %24 = alloca %"class.std::shared_ptr", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.std::shared_ptr.19", align 8
  %27 = alloca %"class.std::function", align 8
  %28 = alloca %class.anon, align 8
  %29 = alloca %"class.jet::FmmLevelSetSolver2", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %67

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

67:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88) %69)
  call void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %70)
  %71 = getelementptr inbounds %"class.jet::Size2", ptr %12, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !11
  %73 = getelementptr inbounds %"class.jet::Size2", ptr %12, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !14
  %75 = mul i64 %72, %74
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %77, label %111

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

78:                                               ; preds = %77
  %79 = 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 %80 unwind label %101

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

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

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

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

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

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %89, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2E)
          to label %92 unwind label %105

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

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

96:                                               ; preds = %94
  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 %243

97:                                               ; preds = %77
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  br label %110

101:                                              ; preds = %84, %82, %80, %78
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %10, align 4
  br label %109

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

109:                                              ; preds = %105, %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %110

110:                                              ; preds = %109, %97
  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 %251

111:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet5Grid211boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(88) %113)
  call void @_ZN3jet11BoundingBoxIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %114)
  %115 = call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
  br i1 %115, label %116, label %150

116:                                              ; preds = %111
  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 %117 unwind label %136

117:                                              ; preds = %116
  %118 = 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 %119 unwind label %140

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

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

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

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

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

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA8_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %128, ptr noundef nonnull align 1 dereferenceable(8) @__func__._ZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2E)
          to label %131 unwind label %144

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

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

135:                                              ; preds = %133
  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 %242

136:                                              ; preds = %116
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %149

140:                                              ; preds = %123, %121, %119, %117
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %148

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

148:                                              ; preds = %144, %140
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  br label %149

149:                                              ; preds = %148, %136
  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 %250

150:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 144, ptr %21) #5
  call void @_ZN3jet19ParticleSystemData2C1Ev(ptr noundef nonnull align 8 dereferenceable(144) %21)
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  invoke void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %152 unwind label %185

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

153:                                              ; preds = %152
  invoke void @_ZN3jet19ParticleSystemData212addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144) %21, ptr noundef nonnull align 8 dereferenceable(16) %151, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %154 unwind label %189

154:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  %155 = getelementptr inbounds %"class.jet::ZhuBridsonPointsToImplicit2", ptr %30, i32 0, i32 1
  %156 = load double, ptr %155, align 8, !tbaa !15
  invoke void @_ZN3jet19ParticleSystemData221buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144) %21, double noundef %156)
          to label %157 unwind label %194

157:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData216neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %159 unwind label %198

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

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

175:                                              ; preds = %169
  invoke void @_ZN3jet11ScalarGrid24fillERKSt8functionIFdRKNS_6VectorIdLm2EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(240) %170, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 1)
          to label %176 unwind label %210

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

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

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

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

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

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

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

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

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

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

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

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

214:                                              ; preds = %210, %206
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  br label %246

215:                                              ; preds = %180
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %9, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %10, align 4
  br label %223

219:                                              ; preds = %181
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %9, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %10, align 4
  call void @_ZN3jet15LevelSetSolver2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br label %223

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

224:                                              ; preds = %176
  %225 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  %226 = getelementptr inbounds i8, ptr %225, i64 8
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = icmp eq ptr %227, null
  br i1 %228, label %231, label %229

229:                                              ; preds = %224
  %230 = getelementptr inbounds i8, ptr %227, i64 8
  br label %231

231:                                              ; preds = %229, %224
  %232 = phi ptr [ %230, %229 ], [ null, %224 ]
  %233 = load ptr, ptr %226, align 8, !tbaa !22
  %234 = getelementptr inbounds ptr, ptr %233, i64 5
  %235 = load ptr, ptr %234, align 8
  invoke void %235(ptr noundef nonnull align 8 dereferenceable(88) %226, ptr noundef %232)
          to label %236 unwind label %237

236:                                              ; preds = %231
  br label %241

237:                                              ; preds = %231
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %9, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %10, align 4
  br label %246

241:                                              ; preds = %236, %184
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher2ELN9__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 @_ZN3jet19ParticleSystemData2D1Ev(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 %242

242:                                              ; preds = %241, %135
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %243

243:                                              ; preds = %242, %96
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %244 = load i32, ptr %16, align 4
  switch i32 %244, label %257 [
    i32 0, label %245
    i32 1, label %245
  ]

245:                                              ; preds = %243, %243, %52
  ret void

246:                                              ; preds = %237, %223, %214
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  br label %247

247:                                              ; preds = %246, %202
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %248

248:                                              ; preds = %247, %198
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %249

249:                                              ; preds = %248, %194, %193
  call void @_ZN3jet19ParticleSystemData2D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #5
  br label %250

250:                                              ; preds = %249, %149
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %251

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

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

257:                                              ; preds = %243
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) 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(32) ptr @_ZNK3jet5Grid211boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(88)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #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 @_ZN3jet19ParticleSystemData2C1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #2

declare void @_ZN3jet19ParticleSystemData212addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEES6_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_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

declare void @_ZN3jet19ParticleSystemData221buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144), double noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher2EEC2ERKS2_(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_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__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_ptrIN3jet22PointNeighborSearcher2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN3jet19ParticleSystemData2D1Ev(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 = !{!"_ZTSN3jet5Size2E", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !18, i64 8}
!16 = !{!"_ZTSN3jet27ZhuBridsonPointsToImplicit2E", !17, i64 0, !18, i64 8, !18, i64 16, !19, i64 24}
!17 = !{!"_ZTSN3jet17PointsToImplicit2E"}
!18 = !{!"double", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!16, !18, i64 16}
!21 = !{!18, !18, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2EE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!16, !19, i64 24}
!27 = !{i8 0, i8 2}
!28 = !{}


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

%"class.jet::Logger" = type { i8, %"class.std::__cxx11::basic_stringstream" }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.jet::Size2" = type { i64, i64 }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Vector" = type { double, double }
%"class.jet::ParticleSystemData2" = 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, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Array<jet::Vector<double, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Array<jet::Vector<double, 2>, 1>, std::allocator<jet::Array<jet::Vector<double, 2>, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::ConstArrayAccessor.18" = type { i64, ptr }
%"class.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = type { ptr, %"class.std::__shared_count" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr }
%"class.jet::FmmLevelSetSolver2" = type { %"class.jet::LevelSetSolver2" }
%"class.jet::LevelSetSolver2" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__._ZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2E = 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 @_ZNK3jet27ZhuBridsonPointsToImplicit27convertERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEEPNS_11ScalarGrid2E(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca %"class.jet::Logger", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.jet::Size2", align 8
  %9 = alloca %"class.jet::Logger", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.jet::BoundingBox", align 8
  %13 = alloca %"class.jet::Logger", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.jet::ParticleSystemData2", align 8
  %17 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %18 = alloca %"class.jet::ConstArrayAccessor.18", align 8
  %19 = alloca %"class.std::shared_ptr", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.std::shared_ptr.19", align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %class.anon, align 8
  %24 = alloca %"class.jet::FmmLevelSetSolver2", align 8
  store ptr %2, ptr %4, align 8, !tbaa !5
  %25 = icmp eq ptr %2, null
  br i1 %25, label %26, label %54

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

82:                                               ; preds = %62
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %89

84:                                               ; preds = %69, %67, %65, %63
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %79, %77, %75, %73, %71
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %88

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

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

90:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet5Grid211boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
  call void @_ZN3jet11BoundingBoxIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %91)
  %92 = call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
  br i1 %92, label %93, label %121

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

94:                                               ; preds = %93
  %95 = 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 %96 unwind label %115

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

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

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

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

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

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

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

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

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

113:                                              ; preds = %93
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %120

115:                                              ; preds = %100, %98, %96, %94
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %110, %108, %106, %104, %102
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br label %119

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

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

121:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %16) #5
  call void @_ZN3jet19ParticleSystemData2C1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @_ZN3jet18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  invoke void @_ZN3jet19ParticleSystemData212addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEES6_S6_(ptr noundef nonnull align 8 dereferenceable(144) %16, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %122 unwind label %150

122:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  %123 = getelementptr inbounds i8, ptr %0, i64 8
  %124 = load double, ptr %123, align 8, !tbaa !15
  invoke void @_ZN3jet19ParticleSystemData221buildNeighborSearcherEd(ptr noundef nonnull align 8 dereferenceable(144) %16, double noundef %124)
          to label %125 unwind label %152

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  %126 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet19ParticleSystemData216neighborSearcherEv(ptr noundef nonnull align 8 dereferenceable(144) %16)
          to label %127 unwind label %154

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

135:                                              ; preds = %127
  %136 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #5
  store ptr %0, ptr %23, align 8, !tbaa !24
  %137 = getelementptr inbounds i8, ptr %23, i64 8
  store ptr %19, ptr %137, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %23, i64 16
  store ptr %20, ptr %138, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %23, i64 24
  store ptr %4, ptr %139, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFdRKN3jet6VectorIdLm2EEEEEC2IZNKS0_27ZhuBridsonPointsToImplicit27convertERKNS0_18ConstArrayAccessorIS2_Lm1EEEPNS0_11ScalarGrid2EE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %140 unwind label %158

140:                                              ; preds = %135
  invoke void @_ZN3jet11ScalarGrid24fillERKSt8functionIFdRKNS_6VectorIdLm2EEEEENS_15ExecutionPolicyE(ptr noundef nonnull align 8 dereferenceable(240) %136, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1)
          to label %141 unwind label %160

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

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #5
  invoke void @_ZN3jet18FmmLevelSetSolver2C1Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %146 unwind label %163

146:                                              ; preds = %145
  %147 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3jet18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(240) %147, double noundef 0x7FEFFFFFFFFFFFFF, ptr noundef %148)
          to label %149 unwind label %165

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

150:                                              ; preds = %121
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br label %186

152:                                              ; preds = %122
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %186

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

156:                                              ; preds = %127
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %184

158:                                              ; preds = %135
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %162

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

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

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

165:                                              ; preds = %146
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3jet15LevelSetSolver2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br label %167

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

168:                                              ; preds = %141
  %169 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  %170 = getelementptr inbounds i8, ptr %169, i64 8
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = icmp eq ptr %171, null
  %173 = getelementptr inbounds i8, ptr %171, i64 8
  %spec.select = select i1 %172, ptr null, ptr %173
  %174 = load ptr, ptr %170, align 8, !tbaa !22
  %175 = getelementptr inbounds i8, ptr %174, i64 40
  %176 = load ptr, ptr %175, align 8
  invoke void %176(ptr noundef nonnull align 8 dereferenceable(88) %170, ptr noundef %spec.select)
          to label %179 unwind label %177

177:                                              ; preds = %168
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %183

179:                                              ; preds = %168, %149
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher2ELN9__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 @_ZN3jet19ParticleSystemData2D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %16) #5
  br label %180

180:                                              ; preds = %179, %112
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  br label %181

181:                                              ; preds = %180, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %182

182:                                              ; preds = %181, %45
  ret void

183:                                              ; preds = %177, %167, %162
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %167 ], [ %178, %177 ], [ %.pn, %162 ]
  call void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br label %184

184:                                              ; preds = %183, %156
  %.pn20.pn.pn = phi { ptr, i32 } [ %.pn20.pn, %183 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @_ZNSt12__shared_ptrIN3jet22PointNeighborSearcher2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %185

185:                                              ; preds = %184, %154
  %.pn20.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn, %184 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  br label %186

186:                                              ; preds = %185, %152, %150
  %.pn20.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn.pn, %185 ], [ %153, %152 ], [ %151, %150 ]
  call void @_ZN3jet19ParticleSystemData2D1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %16) #5
  br label %187

187:                                              ; preds = %186, %120
  %.pn26.pn.pn = phi { ptr, i32 } [ %.pn26.pn, %120 ], [ %.pn20.pn.pn.pn.pn, %186 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  br label %188

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

189:                                              ; preds = %188, %53
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %53 ], [ %.pn30.pn.pn, %188 ]
  resume { ptr, i32 } %.pn34.pn.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid210resolutionEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5Size2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) 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(32) ptr @_ZNK3jet5Grid211boundingBoxEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(32)) 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 @_ZN3jet19ParticleSystemData2C1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #2

declare void @_ZN3jet19ParticleSystemData212addParticlesERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEES6_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_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet22PointNeighborSearcher2EEC2ERKS2_(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_accessIN3jet11ScalarGrid2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3jet11ScalarGrid2ELN9__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_ptrIN3jet22PointNeighborSearcher2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

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

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

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


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