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

; 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::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Vector" = type { double, double }
%"class.std::function.27" = 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::PointHashGridSearcher2" = type { %"class.jet::PointNeighborSearcher2", double, %"class.jet::Point", %"class.std::vector", %"class.std::vector.22" }
%"class.jet::PointNeighborSearcher2" = type { %"class.jet::Serializable" }
%"class.jet::Serializable" = type { ptr }
%"class.jet::Point" = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = 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::Size2" = type { i64, i64 }
%"class.jet::ConstArrayAccessor" = type { i64, ptr }
%"class.jet::ArrayAccessor" = type { i64, ptr }
%class.anon.29 = type { ptr, ptr, ptr, ptr, ptr }
%"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.anon.33 = type { ptr, ptr, ptr }
%"class.jet::VolumeParticleEmitter2" = type <{ %"class.jet::ParticleEmitter2", %"class.std::mersenne_twister_engine", %"class.std::shared_ptr.0", %"class.jet::BoundingBox", double, %"class.jet::Vector", %"class.jet::Vector", double, %"class.std::shared_ptr.3", i64, i64, double, i8, i8, [6 x i8] }>
%"class.jet::ParticleEmitter2" = type { ptr, i8, %"class.std::shared_ptr", %"class.std::function" }
%"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::function" = type { %"class.std::_Function_base", ptr }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [96 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__._ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_ = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_(ptr noundef nonnull align 8 dereferenceable(5208) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.jet::BoundingBox", align 8
  %10 = alloca %"class.jet::BoundingBox", align 8
  %11 = alloca %"class.jet::Vector", align 8
  %12 = alloca %"class.jet::Vector", align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::function.27", align 8
  %17 = alloca %class.anon, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.jet::PointHashGridSearcher2", align 8
  %21 = alloca %"class.jet::Size2", align 8
  %22 = alloca %"class.jet::ConstArrayAccessor", align 8
  %23 = alloca %"class.jet::ArrayAccessor", align 8
  %24 = alloca %"class.std::function.27", align 8
  %25 = alloca %class.anon.29, align 8
  %26 = alloca %"class.jet::Logger", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.jet::Logger", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.jet::Vector", align 8
  %33 = alloca %class.anon.33, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8
  %35 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 2
  %36 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  br i1 %36, label %38, label %37

37:                                               ; preds = %4
  br label %186

38:                                               ; preds = %4
  %39 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 2
  %40 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 2
  %43 = load ptr, ptr %42, align 8
  call void %43(ptr noundef nonnull align 8 dereferenceable(49) %40)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %44 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 3
  call void @_ZN3jet11BoundingBoxIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %44)
  %45 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 2
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 3
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef zeroext i1 %49(ptr noundef nonnull align 8 dereferenceable(49) %46)
  br i1 %50, label %51, label %62

51:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %52 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 2
  %53 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %52) #6
  call void @_ZNK3jet8Surface211boundingBoxEv(ptr dead_on_unwind writable sret(%"class.jet::BoundingBox") align 8 %10, ptr noundef nonnull align 8 dereferenceable(49) %53)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %54 = getelementptr inbounds %"class.jet::BoundingBox", ptr %9, i32 0, i32 0
  %55 = getelementptr inbounds %"class.jet::BoundingBox", ptr %10, i32 0, i32 0
  call void @_ZN3jet3maxIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %55)
  %56 = getelementptr inbounds %"class.jet::BoundingBox", ptr %9, i32 0, i32 0
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %58 = getelementptr inbounds %"class.jet::BoundingBox", ptr %9, i32 0, i32 1
  %59 = getelementptr inbounds %"class.jet::BoundingBox", ptr %10, i32 0, i32 1
  call void @_ZN3jet3minIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %59)
  %60 = getelementptr inbounds %"class.jet::BoundingBox", ptr %9, i32 0, i32 1
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %62

62:                                               ; preds = %51, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %63 = call noundef double @_ZNK3jet22VolumeParticleEmitter26jitterEv(ptr noundef nonnull align 8 dereferenceable(5208) %34)
  store double %63, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %64 = load double, ptr %13, align 8, !tbaa !11
  %65 = fmul double 5.000000e-01, %64
  %66 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 4
  %67 = load double, ptr %66, align 8, !tbaa !13
  %68 = fmul double %65, %67
  store double %68, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !30
  %69 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 13
  %70 = load i8, ptr %69, align 1, !tbaa !31, !range !32, !noundef !33
  %71 = trunc i8 %70 to i1
  br i1 %71, label %76, label %72

72:                                               ; preds = %62
  %73 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 12
  %74 = load i8, ptr %73, align 8, !tbaa !34, !range !32, !noundef !33
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %93

76:                                               ; preds = %72, %62
  %77 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 8
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15PointGenerator2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %77) #6
  %79 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 4
  %80 = load double, ptr %79, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  %81 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 0
  store ptr %34, ptr %81, align 8, !tbaa !35
  %82 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 1
  store ptr %14, ptr %82, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 2
  store ptr %7, ptr %83, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 3
  store ptr %15, ptr %84, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRKN3jet6VectorIdLm2EEEEEC2IZNS0_22VolumeParticleEmitter24emitERKSt10shared_ptrINS0_19ParticleSystemData2EEPNS0_5ArrayIS2_Lm1EEESG_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
  %85 = load ptr, ptr %78, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 2
  %87 = load ptr, ptr %86, align 8
  invoke void %87(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(32) %9, double noundef %80, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %88 unwind label %89

88:                                               ; preds = %76
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %135

89:                                               ; preds = %76
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %18, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %215

93:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @_ZN3jet5Size2C2Emm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef 64, i64 noundef 64)
  %94 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 4
  %95 = load double, ptr %94, align 8, !tbaa !13
  %96 = fmul double 2.000000e+00, %95
  call void @_ZN3jet22PointHashGridSearcher2C1ERKNS_5Size2Ed(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef %96)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %97 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 13
  %98 = load i8, ptr %97, align 1, !tbaa !31, !range !32, !noundef !33
  %99 = trunc i8 %98 to i1
  br i1 %99, label %110, label %100

100:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %101) #6
  invoke void @_ZN3jet19ParticleSystemData29positionsEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %23, ptr noundef nonnull align 8 dereferenceable(144) %102)
          to label %103 unwind label %106

103:                                              ; preds = %100
  invoke void @_ZNK3jet13ArrayAccessorINS_6VectorIdLm2EEELm1EEcvNS_18ConstArrayAccessorIS2_Lm1EEEEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %104 unwind label %106

104:                                              ; preds = %103
  invoke void @_ZN3jet22PointHashGridSearcher25buildERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %105 unwind label %106

105:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %110

106:                                              ; preds = %104, %103, %100
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %18, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %134

110:                                              ; preds = %105, %93
  %111 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 8
  %112 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15PointGenerator2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %111) #6
  %113 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 4
  %114 = load double, ptr %113, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #6
  %115 = getelementptr inbounds %class.anon.29, ptr %25, i32 0, i32 0
  store ptr %34, ptr %115, align 8, !tbaa !37
  %116 = getelementptr inbounds %class.anon.29, ptr %25, i32 0, i32 1
  store ptr %14, ptr %116, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.anon.29, ptr %25, i32 0, i32 2
  store ptr %20, ptr %117, align 8, !tbaa !5
  %118 = getelementptr inbounds %class.anon.29, ptr %25, i32 0, i32 3
  store ptr %7, ptr %118, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.anon.29, ptr %25, i32 0, i32 4
  store ptr %15, ptr %119, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRKN3jet6VectorIdLm2EEEEEC2IZNS0_22VolumeParticleEmitter24emitERKSt10shared_ptrINS0_19ParticleSystemData2EEPNS0_5ArrayIS2_Lm1EEESG_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %120 unwind label %125

120:                                              ; preds = %110
  %121 = load ptr, ptr %112, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %121, i64 2
  %123 = load ptr, ptr %122, align 8
  invoke void %123(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull align 8 dereferenceable(32) %9, double noundef %114, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %124 unwind label %129

124:                                              ; preds = %120
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @_ZN3jet22PointHashGridSearcher2D2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #6
  br label %135

125:                                              ; preds = %110
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %18, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %19, align 4
  br label %133

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %18, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %133

133:                                              ; preds = %129, %125
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %134

134:                                              ; preds = %133, %106
  call void @_ZN3jet22PointHashGridSearcher2D2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #6
  br label %215

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

136:                                              ; preds = %135
  %137 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %138 unwind label %191

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %137, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %140 unwind label %191

140:                                              ; preds = %138
  %141 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA96_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %139, ptr noundef nonnull align 1 dereferenceable(96) @.str.1)
          to label %142 unwind label %191

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %141, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %144 unwind label %191

144:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 140, ptr %28, align 4, !tbaa !39
  %145 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %143, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %146 unwind label %195

146:                                              ; preds = %144
  %147 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %145, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %148 unwind label %195

148:                                              ; preds = %146
  %149 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA5_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %147, ptr noundef nonnull align 1 dereferenceable(5) @__func__._ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_)
          to label %150 unwind label %195

150:                                              ; preds = %148
  %151 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %149, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %152 unwind label %195

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA38_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %151, ptr noundef nonnull align 1 dereferenceable(38) @.str.5)
          to label %154 unwind label %195

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsImEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %153, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %156 unwind label %195

156:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %26) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %29) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %29, i8 noundef zeroext 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, i8 noundef zeroext 2)
          to label %157 unwind label %201

157:                                              ; preds = %156
  %158 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %159 unwind label %205

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %158, ptr noundef nonnull align 1 dereferenceable(2) @.str)
          to label %161 unwind label %205

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA96_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %160, ptr noundef nonnull align 1 dereferenceable(96) @.str.1)
          to label %163 unwind label %205

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %162, ptr noundef nonnull align 1 dereferenceable(2) @.str.2)
          to label %165 unwind label %205

165:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 141, ptr %31, align 4, !tbaa !39
  %166 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %164, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %167 unwind label %209

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %166, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %169 unwind label %209

169:                                              ; preds = %167
  %170 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA5_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %168, ptr noundef nonnull align 1 dereferenceable(5) @__func__._ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_)
          to label %171 unwind label %209

171:                                              ; preds = %169
  %172 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %170, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %173 unwind label %209

173:                                              ; preds = %171
  %174 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA38_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %172, ptr noundef nonnull align 1 dereferenceable(38) @.str.6)
          to label %175 unwind label %209

175:                                              ; preds = %173
  %176 = getelementptr inbounds %"class.jet::VolumeParticleEmitter2", ptr %34, i32 0, i32 10
  %177 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsImEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %174, ptr noundef nonnull align 8 dereferenceable(8) %176)
          to label %178 unwind label %209

178:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %29) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %29) #6
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = call noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %180)
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32)
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EE6resizeEmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181, ptr noundef nonnull align 8 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.anon.33, ptr %33, i32 0, i32 0
  store ptr %8, ptr %183, align 8, !tbaa !5
  %184 = getelementptr inbounds %class.anon.33, ptr %33, i32 0, i32 1
  store ptr %34, ptr %184, align 8, !tbaa !41
  %185 = getelementptr inbounds %class.anon.33, ptr %33, i32 0, i32 2
  store ptr %7, ptr %185, align 8, !tbaa !5
  call void @"_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE20parallelForEachIndexIZNS_22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPS3_SB_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %182, ptr noundef byval(%class.anon.33) align 8 %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  br label %186

186:                                              ; preds = %178, %37
  ret void

187:                                              ; preds = %135
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %18, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %19, align 4
  br label %200

191:                                              ; preds = %142, %140, %138, %136
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %18, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %19, align 4
  br label %199

195:                                              ; preds = %154, %152, %150, %148, %146, %144
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %18, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %199

199:                                              ; preds = %195, %191
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %200

200:                                              ; preds = %199, %187
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %26) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %26) #6
  br label %215

201:                                              ; preds = %156
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %18, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %19, align 4
  br label %214

205:                                              ; preds = %163, %161, %159, %157
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %18, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %19, align 4
  br label %213

209:                                              ; preds = %175, %173, %171, %169, %167, %165
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %18, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %213

213:                                              ; preds = %209, %205
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  br label %214

214:                                              ; preds = %213, %201
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %29) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %29) #6
  br label %215

215:                                              ; preds = %214, %200, %134, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %18, align 8
  %218 = load i32, ptr %19, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

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

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

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

declare void @_ZNK3jet8Surface211boundingBoxEv(ptr dead_on_unwind writable sret(%"class.jet::BoundingBox") align 8, ptr noundef nonnull align 8 dereferenceable(49)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet3maxIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet3minIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet22VolumeParticleEmitter26jitterEv(ptr noundef nonnull align 8 dereferenceable(5208)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFbRKN3jet6VectorIdLm2EEEEEC2IZNS0_22VolumeParticleEmitter24emitERKSt10shared_ptrINS0_19ParticleSystemData2EEPNS0_5ArrayIS2_Lm1EEESG_E3$_0vEEOT_"(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 void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare void @_ZN3jet22PointHashGridSearcher2C1ERKNS_5Size2Ed(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #3

declare void @_ZN3jet22PointHashGridSearcher25buildERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @_ZN3jet19ParticleSystemData29positionsEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet13ArrayAccessorINS_6VectorIdLm2EEELm1EEcvNS_18ConstArrayAccessorIS2_Lm1EEEEv(ptr dead_on_unwind noalias writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet22PointHashGridSearcher2D2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

; 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 @_ZNK3jet6LoggerlsIA96_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(96)) #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 @_ZNK3jet6LoggerlsIA5_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(5)) #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 @_ZNK3jet6LoggerlsIA38_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(38)) #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE20parallelForEachIndexIZNS_22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPS3_SB_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.anon.33) align 8) #0 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 = { 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 #3 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 5112}
!14 = !{!"_ZTSN3jet22VolumeParticleEmitter2E", !15, i64 0, !22, i64 64, !24, i64 5064, !26, i64 5080, !12, i64 5112, !27, i64 5120, !27, i64 5136, !12, i64 5152, !28, i64 5160, !23, i64 5176, !23, i64 5184, !12, i64 5192, !16, i64 5200, !16, i64 5201}
!15 = !{!"_ZTSN3jet16ParticleEmitter2E", !16, i64 8, !17, i64 16, !20, i64 32}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN3jet19ParticleSystemData2EE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!20 = !{!"_ZTSSt8functionIFvPN3jet16ParticleEmitter2EddEE", !21, i64 0, !6, i64 24}
!21 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!22 = !{!"_ZTSSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE", !7, i64 0, !23, i64 4992}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt10shared_ptrIN3jet16ImplicitSurface2EE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!26 = !{!"_ZTSN3jet11BoundingBoxIdLm2EEE", !27, i64 0, !27, i64 16}
!27 = !{!"_ZTSN3jet6VectorIdLm2EEE", !12, i64 0, !12, i64 8}
!28 = !{!"_ZTSSt10shared_ptrIN3jet15PointGenerator2EE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrIN3jet15PointGenerator2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!30 = !{!23, !23, i64 0}
!31 = !{!14, !16, i64 5201}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!14, !16, i64 5200}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTSZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_E3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!38, !6, i64 0}
!38 = !{!"_ZTSZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_E3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!39 = !{!40, !40, i64 0}
!40 = !{!"int", !7, i64 0}
!41 = !{!42, !6, i64 8}
!42 = !{!"_ZTSZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_E3$_2", !6, i64 0, !6, i64 8, !6, i64 16}


; 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::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Vector" = type { double, double }
%"class.std::function.27" = 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::PointHashGridSearcher2" = type { %"class.jet::PointNeighborSearcher2", double, %"class.jet::Point", %"class.std::vector", %"class.std::vector.22" }
%"class.jet::PointNeighborSearcher2" = type { %"class.jet::Serializable" }
%"class.jet::Serializable" = type { ptr }
%"class.jet::Point" = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = 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::Size2" = type { i64, i64 }
%"class.jet::ConstArrayAccessor" = type { i64, ptr }
%"class.jet::ArrayAccessor" = type { i64, ptr }
%class.anon.29 = type { ptr, ptr, ptr, ptr, ptr }
%"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.anon.33 = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [96 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__._ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_ = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; 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 uwtable
define dso_local void @_ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_(ptr noundef nonnull align 8 dereferenceable(5208) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.jet::BoundingBox", align 8
  %8 = alloca %"class.jet::BoundingBox", align 8
  %9 = alloca %"class.jet::Vector", align 8
  %10 = alloca %"class.jet::Vector", align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::function.27", align 8
  %14 = alloca %class.anon, align 8
  %15 = alloca %"class.jet::PointHashGridSearcher2", align 8
  %16 = alloca %"class.jet::Size2", align 8
  %17 = alloca %"class.jet::ConstArrayAccessor", align 8
  %18 = alloca %"class.jet::ArrayAccessor", align 8
  %19 = alloca %"class.std::function.27", align 8
  %20 = alloca %class.anon.29, align 8
  %21 = alloca %"class.jet::Logger", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.jet::Logger", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.jet::Vector", align 8
  %28 = alloca %class.anon.33, align 8
  store ptr %2, ptr %5, align 8, !tbaa !5
  store ptr %3, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 5064
  %30 = tail call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br i1 %30, label %31, label %153

31:                                               ; preds = %4
  %32 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load ptr, ptr %34, align 8
  tail call void %35(ptr noundef nonnull align 8 dereferenceable(49) %32)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %36 = getelementptr inbounds i8, ptr %0, i64 5080
  call void @_ZN3jet11BoundingBoxIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %36)
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 24
  %40 = load ptr, ptr %39, align 8
  %41 = call noundef zeroext i1 %40(ptr noundef nonnull align 8 dereferenceable(49) %37)
  br i1 %41, label %42, label %48

42:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  %43 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @_ZNK3jet8Surface211boundingBoxEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::BoundingBox") align 8 %8, ptr noundef nonnull align 8 dereferenceable(49) %43)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN3jet3maxIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %45 = getelementptr inbounds i8, ptr %7, i64 16
  %46 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN3jet3minIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %46)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %48

48:                                               ; preds = %42, %31
  %49 = call noundef double @_ZNK3jet22VolumeParticleEmitter26jitterEv(ptr noundef nonnull align 8 dereferenceable(5208) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %50 = fmul double %49, 5.000000e-01
  %51 = getelementptr inbounds i8, ptr %0, i64 5112
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = fmul double %50, %52
  store double %53, ptr %11, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store i64 0, ptr %12, align 8, !tbaa !30
  %54 = getelementptr inbounds i8, ptr %0, i64 5201
  %55 = load i8, ptr %54, align 1, !tbaa !31, !range !32, !noundef !33
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %61, label %57

57:                                               ; preds = %48
  %58 = getelementptr inbounds i8, ptr %0, i64 5200
  %59 = load i8, ptr %58, align 8, !tbaa !34, !range !32, !noundef !33
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %61, label %74

61:                                               ; preds = %57, %48
  %62 = getelementptr inbounds i8, ptr %0, i64 5160
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15PointGenerator2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #6
  %64 = load double, ptr %51, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  store ptr %0, ptr %14, align 8, !tbaa !35
  %65 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %11, ptr %65, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %5, ptr %66, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %14, i64 24
  store ptr %12, ptr %67, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRKN3jet6VectorIdLm2EEEEEC2IZNS0_22VolumeParticleEmitter24emitERKSt10shared_ptrINS0_19ParticleSystemData2EEPNS0_5ArrayIS2_Lm1EEESG_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %14)
  %68 = load ptr, ptr %63, align 8, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = load ptr, ptr %69, align 8
  invoke void %70(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(32) %7, double noundef %64, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %71 unwind label %72

71:                                               ; preds = %61
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %105

72:                                               ; preds = %61
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %170

74:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @_ZN3jet5Size2C2Emm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef 64, i64 noundef 64)
  %75 = load double, ptr %51, align 8, !tbaa !11
  %76 = fmul double %75, 2.000000e+00
  call void @_ZN3jet22PointHashGridSearcher2C1ERKNS_5Size2Ed(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %76)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  %77 = load i8, ptr %54, align 1, !tbaa !31, !range !32, !noundef !33
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %86, label %79

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %80 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  invoke void @_ZN3jet19ParticleSystemData29positionsEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %18, ptr noundef nonnull align 8 dereferenceable(144) %80)
          to label %81 unwind label %84

81:                                               ; preds = %79
  invoke void @_ZNK3jet13ArrayAccessorINS_6VectorIdLm2EEELm1EEcvNS_18ConstArrayAccessorIS2_Lm1EEEEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %82 unwind label %84

82:                                               ; preds = %81
  invoke void @_ZN3jet22PointHashGridSearcher25buildERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %83 unwind label %84

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %86

84:                                               ; preds = %82, %81, %79
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %104

86:                                               ; preds = %83, %74
  %87 = getelementptr inbounds i8, ptr %0, i64 5160
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15PointGenerator2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %87) #6
  %89 = load double, ptr %51, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %20) #6
  store ptr %0, ptr %20, align 8, !tbaa !37
  %90 = getelementptr inbounds i8, ptr %20, i64 8
  store ptr %11, ptr %90, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %20, i64 16
  store ptr %15, ptr %91, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %20, i64 24
  store ptr %5, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %20, i64 32
  store ptr %12, ptr %93, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRKN3jet6VectorIdLm2EEEEEC2IZNS0_22VolumeParticleEmitter24emitERKSt10shared_ptrINS0_19ParticleSystemData2EEPNS0_5ArrayIS2_Lm1EEESG_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %94 unwind label %99

94:                                               ; preds = %86
  %95 = load ptr, ptr %88, align 8, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  %97 = load ptr, ptr %96, align 8
  invoke void %97(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(32) %7, double noundef %89, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %98 unwind label %101

98:                                               ; preds = %94
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @_ZN3jet22PointHashGridSearcher2D2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #6
  br label %105

99:                                               ; preds = %86
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %104

104:                                              ; preds = %103, %84
  %.pn.pn = phi { ptr, i32 } [ %.pn, %103 ], [ %85, %84 ]
  call void @_ZN3jet22PointHashGridSearcher2D2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #6
  br label %170

105:                                              ; preds = %98, %71
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %21) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %21, i8 noundef zeroext 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, i8 noundef zeroext 2)
          to label %106 unwind label %154

106:                                              ; preds = %105
  %107 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %21, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %108 unwind label %156

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

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

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

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  store i32 140, ptr %23, align 4, !tbaa !39
  %115 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %113, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %116 unwind label %158

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %115, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %118 unwind label %158

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA5_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %117, ptr noundef nonnull align 1 dereferenceable(5) @__func__._ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_)
          to label %120 unwind label %158

120:                                              ; preds = %118
  %121 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %119, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %122 unwind label %158

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

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsImEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %123, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %126 unwind label %158

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %21) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %24) #6
  call void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %24, i8 noundef zeroext 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %25, i8 noundef zeroext 2)
          to label %127 unwind label %162

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %24, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %129 unwind label %164

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

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

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

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  store i32 141, ptr %26, align 4, !tbaa !39
  %136 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %134, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %137 unwind label %166

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %136, ptr noundef nonnull align 1 dereferenceable(3) @.str.3)
          to label %139 unwind label %166

139:                                              ; preds = %137
  %140 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA5_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %138, ptr noundef nonnull align 1 dereferenceable(5) @__func__._ZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_)
          to label %141 unwind label %166

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %140, ptr noundef nonnull align 1 dereferenceable(4) @.str.4)
          to label %143 unwind label %166

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA38_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %142, ptr noundef nonnull align 1 dereferenceable(38) @.str.6)
          to label %145 unwind label %166

145:                                              ; preds = %143
  %146 = getelementptr inbounds i8, ptr %0, i64 5184
  %147 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsImEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %144, ptr noundef nonnull align 8 dereferenceable(8) %146)
          to label %148 unwind label %166

148:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %24) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %24) #6
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = call noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %149)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EE6resizeEmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %150, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  store ptr %6, ptr %28, align 8, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %28, i64 8
  store ptr %0, ptr %151, align 8, !tbaa !41
  %152 = getelementptr inbounds i8, ptr %28, i64 16
  store ptr %5, ptr %152, align 8, !tbaa !5
  call void @"_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE20parallelForEachIndexIZNS_22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPS3_SB_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull byval(%class.anon.33) align 8 %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %153

153:                                              ; preds = %4, %148
  ret void

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

156:                                              ; preds = %112, %110, %108, %106
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %160

158:                                              ; preds = %124, %122, %120, %118, %116, %114
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  br label %160

160:                                              ; preds = %158, %156
  %.pn13 = phi { ptr, i32 } [ %159, %158 ], [ %157, %156 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %161

161:                                              ; preds = %160, %154
  %.pn13.pn = phi { ptr, i32 } [ %.pn13, %160 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %21) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %21) #6
  br label %170

162:                                              ; preds = %126
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %169

164:                                              ; preds = %133, %131, %129, %127
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %145, %143, %141, %139, %137, %135
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  br label %168

168:                                              ; preds = %166, %164
  %.pn16 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %169

169:                                              ; preds = %168, %162
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %168 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %24) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %24) #6
  br label %170

170:                                              ; preds = %169, %161, %104, %72
  %.pn16.pn.pn = phi { ptr, i32 } [ %.pn16.pn, %169 ], [ %.pn13.pn, %161 ], [ %73, %72 ], [ %.pn.pn, %104 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn16.pn.pn
}

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

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

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

declare void @_ZNK3jet8Surface211boundingBoxEv(ptr dead_on_unwind writable sret(%"class.jet::BoundingBox") align 8, ptr noundef nonnull align 8 dereferenceable(49)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet3maxIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet3minIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet22VolumeParticleEmitter26jitterEv(ptr noundef nonnull align 8 dereferenceable(5208)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFbRKN3jet6VectorIdLm2EEEEEC2IZNS0_22VolumeParticleEmitter24emitERKSt10shared_ptrINS0_19ParticleSystemData2EEPNS0_5ArrayIS2_Lm1EEESG_E3$_0vEEOT_"(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 void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare void @_ZN3jet22PointHashGridSearcher2C1ERKNS_5Size2Ed(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #3

declare void @_ZN3jet22PointHashGridSearcher25buildERKNS_18ConstArrayAccessorINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @_ZN3jet19ParticleSystemData29positionsEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet13ArrayAccessorINS_6VectorIdLm2EEELm1EEcvNS_18ConstArrayAccessorIS2_Lm1EEEEv(ptr dead_on_unwind noalias writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet22PointHashGridSearcher2D2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

; 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 @_ZNK3jet6LoggerlsIA96_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(96)) 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 @_ZNK3jet6LoggerlsIA5_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(5)) 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 @_ZNK3jet6LoggerlsIA38_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(38)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE20parallelForEachIndexIZNS_22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPS3_SB_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.anon.33) align 8) local_unnamed_addr #0 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 = { 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 #3 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !26, i64 5112}
!12 = !{!"_ZTSN3jet22VolumeParticleEmitter2E", !13, i64 0, !20, i64 64, !22, i64 5064, !24, i64 5080, !26, i64 5112, !25, i64 5120, !25, i64 5136, !26, i64 5152, !27, i64 5160, !21, i64 5176, !21, i64 5184, !26, i64 5192, !14, i64 5200, !14, i64 5201}
!13 = !{!"_ZTSN3jet16ParticleEmitter2E", !14, i64 8, !15, i64 16, !18, i64 32}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt10shared_ptrIN3jet19ParticleSystemData2EE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSSt8functionIFvPN3jet16ParticleEmitter2EddEE", !19, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!20 = !{!"_ZTSSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE", !7, i64 0, !21, i64 4992}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIN3jet16ImplicitSurface2EE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN3jet16ImplicitSurface2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!24 = !{!"_ZTSN3jet11BoundingBoxIdLm2EEE", !25, i64 0, !25, i64 16}
!25 = !{!"_ZTSN3jet6VectorIdLm2EEE", !26, i64 0, !26, i64 8}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTSSt10shared_ptrIN3jet15PointGenerator2EE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN3jet15PointGenerator2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!29 = !{!26, !26, i64 0}
!30 = !{!21, !21, i64 0}
!31 = !{!12, !14, i64 5201}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!12, !14, i64 5200}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTSZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_E3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!38, !6, i64 0}
!38 = !{!"_ZTSZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_E3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!39 = !{!40, !40, i64 0}
!40 = !{!"int", !7, i64 0}
!41 = !{!42, !6, i64 8}
!42 = !{!"_ZTSZN3jet22VolumeParticleEmitter24emitERKSt10shared_ptrINS_19ParticleSystemData2EEPNS_5ArrayINS_6VectorIdLm2EEELm1EEESA_E3$_2", !6, i64 0, !6, i64 8, !6, i64 16}


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