; LLVM IR from Mjolnir-MD/Mjolnir :: test/core/test_periodic_cell_list.ll (ZN31test_PeriodicGridCellList_clone11test_methodEv)

; 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.boost::unit_test::lazy_ostream_impl.384" = type { %"class.boost::unit_test::lazy_ostream.base", ptr, ptr }
%"class.boost::unit_test::lazy_ostream.base" = type <{ ptr, i8 }>
%"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::allocator" = type { i8 }
%"class.mjolnir::SpatialPartition" = type { %"class.std::unique_ptr.363", %"class.mjolnir::NeighborList" }
%"class.std::unique_ptr.363" = type { %"struct.std::__uniq_ptr_data.364" }
%"struct.std::__uniq_ptr_data.364" = type { %"class.std::__uniq_ptr_impl.365" }
%"class.std::__uniq_ptr_impl.365" = type { %"class.std::tuple.366" }
%"class.std::tuple.366" = type { %"struct.std::_Tuple_impl.367" }
%"struct.std::_Tuple_impl.367" = type { %"struct.std::_Head_base.370" }
%"struct.std::_Head_base.370" = type { ptr }
%"class.mjolnir::NeighborList" = type { %"class.std::vector.371", %"class.std::vector.7" }
%"class.std::vector.371" = type { %"struct.std::_Vector_base.372" }
%"struct.std::_Vector_base.372" = type { %"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl" }
%"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl" = type { %"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.376" = type { %"struct.std::__uniq_ptr_data.377" }
%"struct.std::__uniq_ptr_data.377" = type { %"class.std::__uniq_ptr_impl.378" }
%"class.std::__uniq_ptr_impl.378" = type { %"class.std::tuple.379" }
%"class.std::tuple.379" = type { %"struct.std::_Tuple_impl.380" }
%"struct.std::_Tuple_impl.380" = type { %"struct.std::_Head_base.383" }
%"struct.std::_Head_base.383" = type { ptr }
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"class.boost::test_tools::assertion_result" = type { %"class.boost::test_tools::assertion_result::readonly_property65", %"class.boost::shared_ptr.225" }
%"class.boost::test_tools::assertion_result::readonly_property65" = type { %"class.boost::unit_test::readonly_property.213" }
%"class.boost::unit_test::readonly_property.213" = type { %"class.boost::unit_test::class_property.98" }
%"class.boost::unit_test::class_property.98" = type { i8 }
%"class.boost::shared_ptr.225" = type { ptr, %"class.boost::detail::shared_count" }
%"class.boost::detail::shared_count" = type { ptr }
%"class.boost::test_tools::assertion::binary_expr.405" = type { %"class.boost::test_tools::assertion::value_expr.407", double }
%"class.boost::test_tools::assertion::value_expr.407" = type { double }
%"class.boost::test_tools::assertion::seed" = type { i8 }

@_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE = external hidden global ptr, align 8
@.str.401 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.418 = external hidden unnamed_addr constant [34 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail16report_assertionERKNS0_16assertion_resultERKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeEmz(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(9), ptr noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef, ...) #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEC2EOSt10unique_ptrINS_20SpatialPartitionBaseIS3_S6_EESt14default_deleteISA_EE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost9unit_testlsINS0_13basic_cstringIKcEEEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS7_EERKS6_S9_(ptr dead_on_unwind noalias writable sret(%"class.boost::unit_test::lazy_ostream_impl.384") align 8, ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(16)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv() #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN31test_PeriodicGridCellList_clone11test_methodEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.mjolnir::SpatialPartition", align 8
  %8 = alloca %"class.std::unique_ptr.363", align 8
  %9 = alloca %"class.std::unique_ptr.376", align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.mjolnir::SpatialPartition", align 8
  %12 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %13 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %14 = alloca %"class.boost::test_tools::assertion_result", align 8
  %15 = alloca %"class.boost::test_tools::assertion::binary_expr.405", align 8
  %16 = alloca %"class.boost::test_tools::assertion::value_expr.407", align 8
  %17 = alloca %"class.boost::test_tools::assertion::seed", align 1
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.boost::unit_test::lazy_ostream_impl.384", align 8
  %21 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %22 = alloca %"class.boost::unit_test::basic_cstring", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef @.str.410, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %49

24:                                               ; preds = %1
  invoke void @_ZN7mjolnir20basic_logger_managerIcSt11char_traitsIcEE18set_default_loggerERKNSt7__cxx1112basic_stringIcS2_SaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %25 unwind label %53

25:                                               ; preds = %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store double 1.000000e+01, ptr %10, align 8, !tbaa !9
  call void @_ZN7mjolnir11make_uniqueINS_20PeriodicGridCellListINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEEJdEEESt10unique_ptrIT_St14default_deleteISA_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.376") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @_ZNSt10unique_ptrIN7mjolnir20SpatialPartitionBaseINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EEC2INS0_20PeriodicGridCellListIS4_S7_EES9_ISE_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  invoke void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEC2EOSt10unique_ptrINS_20SpatialPartitionBaseIS3_S6_EESt14default_deleteISA_EE(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %26 unwind label %58

26:                                               ; preds = %25
  call void @_ZNSt10unique_ptrIN7mjolnir20SpatialPartitionBaseINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZNSt10unique_ptrIN7mjolnir20PeriodicGridCellListINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #5
  invoke void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %27 unwind label %62

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %47, %27
  %29 = load ptr, ptr @_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE, align 8, !tbaa !5
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.401, i64 noundef 89)
          to label %30 unwind label %66

30:                                               ; preds = %28
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %31 unwind label %66

31:                                               ; preds = %30
  invoke void @_ZN5boost9unit_test15unit_test_log_t14set_checkpointENS0_13basic_cstringIKcEEmS4_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %12, i64 noundef 324, ptr noundef %13)
          to label %32 unwind label %66

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %33 = call noundef double @_ZNK7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEE6marginEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  store double %33, ptr %18, align 8, !tbaa !9
  invoke void @_ZNK5boost10test_tools9assertion4seedpmIdEENS1_10value_exprIT_EEOS5_(ptr dead_on_unwind writable sret(%"class.boost::test_tools::assertion::value_expr.407") align 8 %16, ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %34 unwind label %70

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %35 = call noundef double @_ZNK7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEE6marginEv(ptr noundef nonnull align 8 dereferenceable(56) %11) #5
  store double %35, ptr %19, align 8, !tbaa !9
  invoke void @_ZN5boost10test_tools9assertion15expression_baseINS1_10value_exprIdEEdEeqIdEENS1_11binary_exprIS4_T_NS1_2op2EQIdNS5_4RhsTIS8_E4typeEvEEEEOS8_(ptr dead_on_unwind writable sret(%"class.boost::test_tools::assertion::binary_expr.405") align 8 %15, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %36 unwind label %74

36:                                               ; preds = %34
  invoke void @_ZNK5boost10test_tools9assertion11binary_exprINS1_10value_exprIdEEdNS1_2op2EQIddvEEE8evaluateEb(ptr dead_on_unwind writable sret(%"class.boost::test_tools::assertion_result") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext false)
          to label %37 unwind label %74

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #5
  %38 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN5boost9unit_test12lazy_ostream8instanceEv()
          to label %39 unwind label %78

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef @.str.418, i64 noundef 33)
          to label %40 unwind label %82

40:                                               ; preds = %39
  invoke void @_ZN5boost9unit_testlsINS0_13basic_cstringIKcEEEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS7_EERKS6_S9_(ptr dead_on_unwind writable sret(%"class.boost::unit_test::lazy_ostream_impl.384") align 8 %20, ptr noundef nonnull align 8 dereferenceable(9) %38, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %41 unwind label %82

41:                                               ; preds = %40
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.401, i64 noundef 89)
          to label %42 unwind label %86

42:                                               ; preds = %41
  %43 = invoke noundef zeroext i1 (ptr, ptr, ptr, i64, i32, i32, i64, ...) @_ZN5boost10test_tools9tt_detail16report_assertionERKNS0_16assertion_resultERKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeEmz(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(9) %20, ptr noundef %22, i64 noundef 324, i32 noundef 1, i32 noundef 14, i64 noundef 0)
          to label %44 unwind label %86

44:                                               ; preds = %42
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @_ZN5boost10test_tools16assertion_resultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %45

45:                                               ; preds = %44
  %46 = invoke noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv()
          to label %47 unwind label %66

47:                                               ; preds = %45
  br i1 %46, label %28, label %48, !llvm.loop !11

48:                                               ; preds = %47
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #5
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #5
  ret void

49:                                               ; preds = %1
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  br label %57

53:                                               ; preds = %24
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %57

57:                                               ; preds = %53, %49
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  br label %97

58:                                               ; preds = %25
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  call void @_ZNSt10unique_ptrIN7mjolnir20SpatialPartitionBaseINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZNSt10unique_ptrIN7mjolnir20PeriodicGridCellListINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %96

62:                                               ; preds = %26
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  br label %95

66:                                               ; preds = %45, %31, %30, %28
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %5, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %6, align 4
  br label %94

70:                                               ; preds = %32
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %5, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %6, align 4
  br label %93

74:                                               ; preds = %36, %34
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %5, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %6, align 4
  br label %92

78:                                               ; preds = %37
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %5, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %6, align 4
  br label %91

82:                                               ; preds = %40, %39
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %5, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %6, align 4
  br label %90

86:                                               ; preds = %42, %41
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %5, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %6, align 4
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  br label %90

90:                                               ; preds = %86, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %91

91:                                               ; preds = %90, %78
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @_ZN5boost10test_tools16assertion_resultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %92

92:                                               ; preds = %91, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %93

93:                                               ; preds = %92, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %94

94:                                               ; preds = %93, %66
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #5
  br label %95

95:                                               ; preds = %94, %62
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #5
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  br label %96

96:                                               ; preds = %95, %58
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #5
  br label %97

97:                                               ; preds = %96, %57
  %98 = load ptr, ptr %5, align 8
  %99 = load i32, ptr %6, align 4
  %100 = insertvalue { ptr, i32 } poison, ptr %98, 0
  %101 = insertvalue { ptr, i32 } %100, i32 %99, 1
  resume { ptr, i32 } %101
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7mjolnir11make_uniqueINS_20PeriodicGridCellListINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEEJdEEESt10unique_ptrIT_St14default_deleteISA_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.376") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5boost10test_tools9assertion4seedpmIdEENS1_10value_exprIT_EEOS5_(ptr dead_on_unwind noalias writable sret(%"class.boost::test_tools::assertion::value_expr.407") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost10test_tools9assertion15expression_baseINS1_10value_exprIdEEdEeqIdEENS1_11binary_exprIS4_T_NS1_2op2EQIdNS5_4RhsTIS8_E4typeEvEEEEOS8_(ptr dead_on_unwind noalias writable sret(%"class.boost::test_tools::assertion::binary_expr.405") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5boost10test_tools9assertion11binary_exprINS1_10value_exprIdEEdNS1_2op2EQIddvEEE8evaluateEb(ptr dead_on_unwind noalias writable sret(%"class.boost::test_tools::assertion_result") align 8, ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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.boost::unit_test::lazy_ostream_impl.384" = type { %"class.boost::unit_test::lazy_ostream.base", ptr, ptr }
%"class.boost::unit_test::lazy_ostream.base" = type <{ ptr, i8 }>
%"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::allocator" = type { i8 }
%"class.mjolnir::SpatialPartition" = type { %"class.std::unique_ptr.363", %"class.mjolnir::NeighborList" }
%"class.std::unique_ptr.363" = type { %"struct.std::__uniq_ptr_data.364" }
%"struct.std::__uniq_ptr_data.364" = type { %"class.std::__uniq_ptr_impl.365" }
%"class.std::__uniq_ptr_impl.365" = type { %"class.std::tuple.366" }
%"class.std::tuple.366" = type { %"struct.std::_Tuple_impl.367" }
%"struct.std::_Tuple_impl.367" = type { %"struct.std::_Head_base.370" }
%"struct.std::_Head_base.370" = type { ptr }
%"class.mjolnir::NeighborList" = type { %"class.std::vector.371", %"class.std::vector.7" }
%"class.std::vector.371" = type { %"struct.std::_Vector_base.372" }
%"struct.std::_Vector_base.372" = type { %"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl" }
%"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl" = type { %"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>, std::allocator<mjolnir::neighbor_element<mjolnir::test::StubPotential<double>::parameter_type>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.376" = type { %"struct.std::__uniq_ptr_data.377" }
%"struct.std::__uniq_ptr_data.377" = type { %"class.std::__uniq_ptr_impl.378" }
%"class.std::__uniq_ptr_impl.378" = type { %"class.std::tuple.379" }
%"class.std::tuple.379" = type { %"struct.std::_Tuple_impl.380" }
%"struct.std::_Tuple_impl.380" = type { %"struct.std::_Head_base.383" }
%"struct.std::_Head_base.383" = type { ptr }
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"class.boost::test_tools::assertion_result" = type { %"class.boost::test_tools::assertion_result::readonly_property65", %"class.boost::shared_ptr.225" }
%"class.boost::test_tools::assertion_result::readonly_property65" = type { %"class.boost::unit_test::readonly_property.213" }
%"class.boost::unit_test::readonly_property.213" = type { %"class.boost::unit_test::class_property.98" }
%"class.boost::unit_test::class_property.98" = type { i8 }
%"class.boost::shared_ptr.225" = type { ptr, %"class.boost::detail::shared_count" }
%"class.boost::detail::shared_count" = type { ptr }
%"class.boost::test_tools::assertion::binary_expr.405" = type { %"class.boost::test_tools::assertion::value_expr.407", double }
%"class.boost::test_tools::assertion::value_expr.407" = type { double }
%"class.boost::test_tools::assertion::seed" = type { i8 }

@_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE = external hidden local_unnamed_addr global ptr, align 8
@.str.401 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.418 = external hidden unnamed_addr constant [34 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail16report_assertionERKNS0_16assertion_resultERKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeEmz(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(9), ptr noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef, ...) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7mjolnir20basic_logger_managerIcSt11char_traitsIcEE18set_default_loggerERKNSt7__cxx1112basic_stringIcS2_SaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEC2EOSt10unique_ptrINS_20SpatialPartitionBaseIS3_S6_EESt14default_deleteISA_EE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost9unit_testlsINS0_13basic_cstringIKcEEEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS7_EERKS6_S9_(ptr dead_on_unwind noalias writable sret(%"class.boost::unit_test::lazy_ostream_impl.384") align 8, ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN31test_PeriodicGridCellList_clone11test_methodEv(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.mjolnir::SpatialPartition", align 8
  %5 = alloca %"class.std::unique_ptr.363", align 8
  %6 = alloca %"class.std::unique_ptr.376", align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.mjolnir::SpatialPartition", align 8
  %9 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %10 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %11 = alloca %"class.boost::test_tools::assertion_result", align 8
  %12 = alloca %"class.boost::test_tools::assertion::binary_expr.405", align 8
  %13 = alloca %"class.boost::test_tools::assertion::value_expr.407", align 8
  %14 = alloca %"class.boost::test_tools::assertion::seed", align 1
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca %"class.boost::unit_test::lazy_ostream_impl.384", align 8
  %18 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %19 = alloca %"class.boost::unit_test::basic_cstring", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.410, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %20 unwind label %35

20:                                               ; preds = %1
  invoke void @_ZN7mjolnir20basic_logger_managerIcSt11char_traitsIcEE18set_default_loggerERKNSt7__cxx1112basic_stringIcS2_SaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %21 unwind label %37

21:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  store double 1.000000e+01, ptr %7, align 8, !tbaa !5
  call void @_ZN7mjolnir11make_uniqueINS_20PeriodicGridCellListINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEEJdEEESt10unique_ptrIT_St14default_deleteISA_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.376") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @_ZNSt10unique_ptrIN7mjolnir20SpatialPartitionBaseINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EEC2INS0_20PeriodicGridCellListIS4_S7_EES9_ISE_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEC2EOSt10unique_ptrINS_20SpatialPartitionBaseIS3_S6_EESt14default_deleteISA_EE(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZNSt10unique_ptrIN7mjolnir20SpatialPartitionBaseINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_ZNSt10unique_ptrIN7mjolnir20PeriodicGridCellListINS0_15SimulatorTraitsIdNS0_24CuboidalPeriodicBoundaryEEENS0_4test13StubPotentialIdEEEESt14default_deleteIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #5
  invoke void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %.preheader unwind label %40

.preheader:                                       ; preds = %21, %32
  %22 = load ptr, ptr @_ZN5boost9unit_test12_GLOBAL__N_113unit_test_logE, align 8, !tbaa !9
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull @.str.401, i64 noundef 89)
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  invoke void @_ZN5boost9unit_test15unit_test_log_t14set_checkpointENS0_13basic_cstringIKcEEmS4_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull %9, i64 noundef 324, ptr noundef nonnull %10)
          to label %23 unwind label %42

23:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %24 = call noundef double @_ZNK7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEE6marginEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  store double %24, ptr %15, align 8, !tbaa !5
  invoke void @_ZNK5boost10test_tools9assertion4seedpmIdEENS1_10value_exprIT_EEOS5_(ptr dead_on_unwind nonnull writable sret(%"class.boost::test_tools::assertion::value_expr.407") align 8 %13, ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %25 unwind label %44

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %26 = call noundef double @_ZNK7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEE6marginEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  store double %26, ptr %16, align 8, !tbaa !5
  invoke void @_ZN5boost10test_tools9assertion15expression_baseINS1_10value_exprIdEEdEeqIdEENS1_11binary_exprIS4_T_NS1_2op2EQIdNS5_4RhsTIS8_E4typeEvEEEEOS8_(ptr dead_on_unwind nonnull writable sret(%"class.boost::test_tools::assertion::binary_expr.405") align 8 %12, ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %27 unwind label %46

27:                                               ; preds = %25
  invoke void @_ZNK5boost10test_tools9assertion11binary_exprINS1_10value_exprIdEEdNS1_2op2EQIddvEEE8evaluateEb(ptr dead_on_unwind nonnull writable sret(%"class.boost::test_tools::assertion_result") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext false)
          to label %28 unwind label %46

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  %29 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN5boost9unit_test12lazy_ostream8instanceEv()
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull @.str.418, i64 noundef 33)
  invoke void @_ZN5boost9unit_testlsINS0_13basic_cstringIKcEEEENS0_17lazy_ostream_implINS0_12lazy_ostreamET_RKS7_EERKS6_S9_(ptr dead_on_unwind nonnull writable sret(%"class.boost::unit_test::lazy_ostream_impl.384") align 8 %17, ptr noundef nonnull align 8 dereferenceable(9) %29, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %30 unwind label %48

30:                                               ; preds = %28
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ImEEPS2_T_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull @.str.401, i64 noundef 89)
  %31 = invoke noundef zeroext i1 (ptr, ptr, ptr, i64, i32, i32, i64, ...) @_ZN5boost10test_tools9tt_detail16report_assertionERKNS0_16assertion_resultERKNS_9unit_test12lazy_ostreamENS5_13basic_cstringIKcEEmNS1_10tool_levelENS1_10check_typeEmz(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(9) %17, ptr noundef nonnull %19, i64 noundef 324, i32 noundef 1, i32 noundef 14, i64 noundef 0)
          to label %32 unwind label %50

32:                                               ; preds = %30
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN5boost10test_tools16assertion_resultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  %33 = call noundef zeroext i1 @_ZN5boost10test_tools9tt_detail10dummy_condEv()
  br i1 %33, label %.preheader, label %34, !llvm.loop !11

34:                                               ; preds = %32
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  ret void

35:                                               ; preds = %1
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %20
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %57

40:                                               ; preds = %21
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %56

42:                                               ; preds = %.preheader
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %55

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

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

48:                                               ; preds = %28
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %30
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost9unit_test12lazy_ostreamD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %52

52:                                               ; preds = %50, %48
  %.pn10 = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN5boost10test_tools16assertion_resultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %53

53:                                               ; preds = %52, %46
  %.pn10.pn = phi { ptr, i32 } [ %.pn10, %52 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %54

54:                                               ; preds = %53, %44
  %.pn10.pn.pn = phi { ptr, i32 } [ %.pn10.pn, %53 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %55

55:                                               ; preds = %54, %42
  %.pn10.pn.pn.pn = phi { ptr, i32 } [ %.pn10.pn.pn, %54 ], [ %43, %42 ]
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  br label %56

56:                                               ; preds = %55, %40
  %.pn10.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn10.pn.pn.pn, %55 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  call void @_ZN7mjolnir16SpatialPartitionINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  br label %57

57:                                               ; preds = %56, %39
  %.pn10.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn10.pn.pn.pn.pn, %56 ], [ %.pn, %39 ]
  resume { ptr, i32 } %.pn10.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7mjolnir11make_uniqueINS_20PeriodicGridCellListINS_15SimulatorTraitsIdNS_24CuboidalPeriodicBoundaryEEENS_4test13StubPotentialIdEEEEJdEEESt10unique_ptrIT_St14default_deleteISA_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.376") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5boost10test_tools9assertion4seedpmIdEENS1_10value_exprIT_EEOS5_(ptr dead_on_unwind noalias writable sret(%"class.boost::test_tools::assertion::value_expr.407") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost10test_tools9assertion15expression_baseINS1_10value_exprIdEEdEeqIdEENS1_11binary_exprIS4_T_NS1_2op2EQIdNS5_4RhsTIS8_E4typeEvEEEEOS8_(ptr dead_on_unwind noalias writable sret(%"class.boost::test_tools::assertion::binary_expr.405") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5boost10test_tools9assertion11binary_exprINS1_10value_exprIdEEdNS1_2op2EQIddvEEE8evaluateEb(ptr dead_on_unwind noalias writable sret(%"class.boost::test_tools::assertion_result") align 8, ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass