; LLVM IR from doyubkim/fluid-engine-dev :: src/jet/sph_solver2.ll (ZN3jet10SphSolver2C2Eddd)

; 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.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.jet::SphSolver2" = type { %"class.jet::ParticleSystemSolver2", double, double, double, double, double, double }
%"class.jet::ParticleSystemSolver2" = type { %"class.jet::PhysicsAnimation", double, double, %"class.jet::Vector", %"class.std::shared_ptr", %"class.jet::Array", %"class.jet::Array", %"class.std::shared_ptr.0", %"class.std::shared_ptr.3", %"class.std::shared_ptr.6" }
%"class.jet::PhysicsAnimation" = type { %"class.jet::Animation", %"struct.jet::Frame", i8, i32, double }
%"class.jet::Animation" = type { ptr }
%"struct.jet::Frame" = type { i32, double }
%"class.jet::Vector" = type { double, double }
%"class.jet::Array" = type { %"class.std::vector" }
%"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::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" }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }

@_ZTVN3jet10SphSolver2E = external dso_local unnamed_addr constant { [13 x ptr] }, align 8

declare void @_ZN3jet21ParticleSystemSolver2C2Ev(ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #0

declare void @_ZN3jet21ParticleSystemSolver221setParticleSystemDataERKSt10shared_ptrINS_19ParticleSystemData2EE(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(16)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet14SphSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.9") align 8) #2

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet10SphSolver2C2Eddd(ptr noundef nonnull align 8 dereferenceable(232) %0, double noundef %1, double noundef %2, double noundef %3) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %"class.std::shared_ptr.9", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::shared_ptr", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !tbaa !9
  %13 = load ptr, ptr %5, align 8
  call void @_ZN3jet21ParticleSystemSolver2C2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13)
  store ptr getelementptr inbounds inrange(-16, 88) ({ [13 x ptr] }, ptr @_ZTVN3jet10SphSolver2E, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.jet::SphSolver2", ptr %13, i32 0, i32 1
  store double 7.000000e+00, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds %"class.jet::SphSolver2", ptr %13, i32 0, i32 2
  store double 0.000000e+00, ptr %15, align 8, !tbaa !36
  %16 = getelementptr inbounds %"class.jet::SphSolver2", ptr %13, i32 0, i32 3
  store double 1.000000e-02, ptr %16, align 8, !tbaa !37
  %17 = getelementptr inbounds %"class.jet::SphSolver2", ptr %13, i32 0, i32 4
  store double 1.000000e+01, ptr %17, align 8, !tbaa !38
  %18 = getelementptr inbounds %"class.jet::SphSolver2", ptr %13, i32 0, i32 5
  store double 1.000000e+02, ptr %18, align 8, !tbaa !39
  %19 = getelementptr inbounds %"class.jet::SphSolver2", ptr %13, i32 0, i32 6
  store double 1.000000e+00, ptr %19, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  invoke void @_ZSt11make_sharedIN3jet14SphSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.9") align 8 %9)
          to label %20 unwind label %32

20:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @_ZNSt10shared_ptrIN3jet19ParticleSystemData2EEC2INS0_14SphSystemData2EvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  invoke void @_ZN3jet21ParticleSystemSolver221setParticleSystemDataERKSt10shared_ptrINS_19ParticleSystemData2EE(ptr noundef nonnull align 8 dereferenceable(184) %13, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %21 unwind label %36

21:                                               ; preds = %20
  call void @_ZNSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %22 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  %23 = load double, ptr %6, align 8, !tbaa !9
  invoke void @_ZN3jet14SphSystemData216setTargetDensityEd(ptr noundef nonnull align 8 dereferenceable(192) %22, double noundef %23)
          to label %24 unwind label %40

24:                                               ; preds = %21
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  %26 = load double, ptr %7, align 8, !tbaa !9
  invoke void @_ZN3jet14SphSystemData216setTargetSpacingEd(ptr noundef nonnull align 8 dereferenceable(192) %25, double noundef %26)
          to label %27 unwind label %40

27:                                               ; preds = %24
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  %29 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZN3jet14SphSystemData223setRelativeKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192) %28, double noundef %29)
          to label %30 unwind label %40

30:                                               ; preds = %27
  invoke void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40) %13, i1 noundef zeroext false)
          to label %31 unwind label %40

31:                                               ; preds = %30
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  ret void

32:                                               ; preds = %4
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %10, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %11, align 4
  br label %45

36:                                               ; preds = %20
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %10, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %44

40:                                               ; preds = %30, %27, %24, %21
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %10, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %11, align 4
  br label %44

44:                                               ; preds = %40, %36
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %45

45:                                               ; preds = %44, %32
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @_ZN3jet21ParticleSystemSolver2D2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13) #6
  br label %46

46:                                               ; preds = %45
  %47 = load ptr, ptr %10, align 8
  %48 = load i32, ptr %11, align 4
  %49 = insertvalue { ptr, i32 } poison, ptr %47, 0
  %50 = insertvalue { ptr, i32 } %49, i32 %48, 1
  resume { ptr, i32 } %50
}

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

declare void @_ZN3jet14SphSystemData216setTargetDensityEd(ptr noundef nonnull align 8 dereferenceable(192), double noundef) #0

declare void @_ZN3jet14SphSystemData216setTargetSpacingEd(ptr noundef nonnull align 8 dereferenceable(192), double noundef) #0

declare void @_ZN3jet14SphSystemData223setRelativeKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192), double noundef) #0

attributes #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 = { inlinehint 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 #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 = { 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 #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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 184}
!14 = !{!"_ZTSN3jet10SphSolver2E", !15, i64 0, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224}
!15 = !{!"_ZTSN3jet21ParticleSystemSolver2E", !16, i64 0, !10, i64 40, !10, i64 48, !21, i64 56, !22, i64 72, !25, i64 88, !25, i64 112, !30, i64 136, !32, i64 152, !34, i64 168}
!16 = !{!"_ZTSN3jet16PhysicsAnimationE", !17, i64 0, !18, i64 8, !20, i64 24, !19, i64 28, !10, i64 32}
!17 = !{!"_ZTSN3jet9AnimationE"}
!18 = !{!"_ZTSN3jet5FrameE", !19, i64 0, !10, i64 8}
!19 = !{!"int", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN3jet6VectorIdLm2EEE", !10, i64 0, !10, i64 8}
!22 = !{!"_ZTSSt10shared_ptrIN3jet19ParticleSystemData2EE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!25 = !{!"_ZTSN3jet5ArrayINS_6VectorIdLm2EEELm1EEE", !26, i64 0}
!26 = !{!"_ZTSSt6vectorIN3jet6VectorIdLm2EEESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN3jet6VectorIdLm2EEESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN3jet6VectorIdLm2EEESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN3jet6VectorIdLm2EEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt10shared_ptrIN3jet9Collider2EE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN3jet9Collider2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!32 = !{!"_ZTSSt10shared_ptrIN3jet16ParticleEmitter2EE", !33, i64 0}
!33 = !{!"_ZTSSt12__shared_ptrIN3jet16ParticleEmitter2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!34 = !{!"_ZTSSt10shared_ptrIN3jet12VectorField2EE", !35, i64 0}
!35 = !{!"_ZTSSt12__shared_ptrIN3jet12VectorField2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!36 = !{!14, !10, i64 192}
!37 = !{!14, !10, i64 200}
!38 = !{!14, !10, i64 208}
!39 = !{!14, !10, i64 216}
!40 = !{!14, !10, i64 224}


; 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.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }

@_ZTVN3jet10SphSolver2E = external dso_local unnamed_addr constant { [13 x ptr] }, align 8

declare void @_ZN3jet21ParticleSystemSolver2C2Ev(ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #0

declare void @_ZN3jet21ParticleSystemSolver221setParticleSystemDataERKSt10shared_ptrINS_19ParticleSystemData2EE(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet14SphSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.9") align 8) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet10SphSolver2C2Eddd(ptr noundef nonnull align 8 dereferenceable(232) %0, double noundef %1, double noundef %2, double noundef %3) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::shared_ptr.9", align 8
  %6 = alloca %"class.std::shared_ptr", align 8
  tail call void @_ZN3jet21ParticleSystemSolver2C2Ev(ptr noundef nonnull align 8 dereferenceable(184) %0)
  store ptr getelementptr inbounds inrange(-16, 88) (i8, ptr @_ZTVN3jet10SphSolver2E, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 184
  store <2 x double> <double 7.000000e+00, double 0.000000e+00>, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 200
  store <2 x double> <double 1.000000e-02, double 1.000000e+01>, ptr %8, align 8, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %0, i64 216
  store <2 x double> <double 1.000000e+02, double 1.000000e+00>, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  invoke void @_ZSt11make_sharedIN3jet14SphSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.9") align 8 %5)
          to label %10 unwind label %19

10:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZNSt10shared_ptrIN3jet19ParticleSystemData2EEC2INS0_14SphSystemData2EvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  invoke void @_ZN3jet21ParticleSystemSolver221setParticleSystemDataERKSt10shared_ptrINS_19ParticleSystemData2EE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %11 unwind label %21

11:                                               ; preds = %10
  call void @_ZNSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  %12 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZN3jet14SphSystemData216setTargetDensityEd(ptr noundef nonnull align 8 dereferenceable(192) %12, double noundef %1)
          to label %13 unwind label %23

13:                                               ; preds = %11
  %14 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZN3jet14SphSystemData216setTargetSpacingEd(ptr noundef nonnull align 8 dereferenceable(192) %14, double noundef %2)
          to label %15 unwind label %23

15:                                               ; preds = %13
  %16 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZN3jet14SphSystemData223setRelativeKernelRadiusEd(ptr noundef nonnull align 8 dereferenceable(192) %16, double noundef %3)
          to label %17 unwind label %23

17:                                               ; preds = %15
  invoke void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40) %0, i1 noundef zeroext false)
          to label %18 unwind label %23

18:                                               ; preds = %17
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  ret void

19:                                               ; preds = %4
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %26

21:                                               ; preds = %10
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet19ParticleSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %25

23:                                               ; preds = %17, %15, %13, %11
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  br label %26

26:                                               ; preds = %25, %19
  %.pn.pn = phi { ptr, i32 } [ %.pn, %25 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3jet21ParticleSystemSolver2D2Ev(ptr noundef nonnull align 8 dereferenceable(184) %0) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

attributes #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 = { inlinehint 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 #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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass