; LLVM IR from Simple-XX/SimplePhysicsEngine :: test/system_test/demo_old/RigidBodySimulation/cworld.ll (ZN4clib6cworld4stepEd)

; 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.13" = type { %"class.std::__shared_ptr.14" }
%"class.std::__shared_ptr.14" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.21" = type { %"class.std::__shared_ptr.22" }
%"class.std::__shared_ptr.22" = type { ptr, %"class.std::__shared_count" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.clib::cworld" = type { i8, %"struct.clib::vec2", i64, %"class.std::vector", %"class.std::vector.0", %"class.std::unordered_map" }
%"struct.clib::vec2" = type { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<clib::cbody>, std::allocator<std::shared_ptr<clib::cbody>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<clib::cbody>, std::allocator<std::shared_ptr<clib::cbody>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<clib::cbody>, std::allocator<std::shared_ptr<clib::cbody>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<clib::cbody>, std::allocator<std::shared_ptr<clib::cbody>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::shared_ptr<clib::cjoint>, std::allocator<std::shared_ptr<clib::cjoint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<clib::cjoint>, std::allocator<std::shared_ptr<clib::cjoint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<clib::cjoint>, std::allocator<std::shared_ptr<clib::cjoint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<clib::cjoint>, std::allocator<std::shared_ptr<clib::cjoint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { i32, %"class.std::shared_ptr.21" }

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

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

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

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

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

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

; 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 dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4clib6cworld4stepEd(ptr noundef nonnull align 8 dereferenceable(136) %0, double noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::shared_ptr.13", align 8
  %9 = alloca %"class.std::shared_ptr.13", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::shared_ptr.21", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %29 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %39 = load ptr, ptr %3, align 8
  %40 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 0
  %41 = load i8, ptr %40, align 8, !tbaa !11, !range !29, !noundef !30
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %44

43:                                               ; preds = %2
  br label %256

44:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !31
  br label %45

45:                                               ; preds = %141, %44
  %46 = load i64, ptr %5, align 8, !tbaa !31
  %47 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 3
  %48 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %49 = icmp ult i64 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %144

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %52 = load i64, ptr %5, align 8, !tbaa !31
  %53 = add i64 %52, 1
  store i64 %53, ptr %7, align 8, !tbaa !31
  br label %54

54:                                               ; preds = %134, %51
  %55 = load i64, ptr %7, align 8, !tbaa !31
  %56 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 3
  %57 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %140

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %61 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 3
  %62 = load i64, ptr %5, align 8, !tbaa !31
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %62) #5
  call void @_ZSt20dynamic_pointer_castIN4clib12polygon_bodyENS0_5cbodyEESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.13") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %63) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %64 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 3
  %65 = load i64, ptr %7, align 8, !tbaa !31
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %65) #5
  call void @_ZSt20dynamic_pointer_castIN4clib12polygon_bodyENS0_5cbodyEESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.13") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %66) #5
  %67 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  %68 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNKSt19__shared_ptr_accessIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  %69 = invoke noundef zeroext i1 @_ZNK4clib5cbody11can_collideERKS0_(ptr noundef nonnull align 8 dereferenceable(168) %67, ptr noundef nonnull align 8 dereferenceable(168) %68)
          to label %70 unwind label %72

70:                                               ; preds = %60
  br i1 %69, label %76, label %71

71:                                               ; preds = %70
  store i32 7, ptr %6, align 4
  br label %131

72:                                               ; preds = %60
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %10, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %11, align 4
  br label %139

76:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  invoke void @_ZN4clib5cpair10is_collideERSt10shared_ptrINS_12polygon_bodyEES4_Rj(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.21") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %77 unwind label %94

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %78 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  %79 = invoke ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56) %78, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %80 unwind label %98

80:                                               ; preds = %77
  %81 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %82 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %81, i32 0, i32 0
  store ptr %79, ptr %82, align 8
  %83 = call noundef zeroext i1 @_ZSteqIN4clib5cpairEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr null) #5
  br i1 %83, label %84, label %103

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %85 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  %86 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %85) #5
  %87 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %15, i32 0, i32 0
  %88 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %87, i32 0, i32 0
  store ptr %86, ptr %88, align 8
  %89 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br i1 %89, label %90, label %102

90:                                               ; preds = %84
  %91 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  %92 = invoke noundef i64 @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5eraseERS9_(ptr noundef nonnull align 8 dereferenceable(56) %91, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %93 unwind label %98

93:                                               ; preds = %90
  br label %102

94:                                               ; preds = %76
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %10, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %11, align 4
  br label %138

98:                                               ; preds = %109, %90, %77
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %10, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %11, align 4
  br label %137

102:                                              ; preds = %93, %84
  br label %130

103:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %104 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  %105 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %104) #5
  %106 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %16, i32 0, i32 0
  %107 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %106, i32 0, i32 0
  store ptr %105, ptr %107, align 8
  %108 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br i1 %108, label %109, label %114

109:                                              ; preds = %103
  %110 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  %111 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %110, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %112 unwind label %98

112:                                              ; preds = %109
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4clib5cpairEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %111, ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %129

114:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %115 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %116 = getelementptr inbounds %"struct.std::pair", ptr %115, i32 0, i32 1
  store ptr %116, ptr %17, align 8, !tbaa !5
  %117 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %118) #5
  invoke void @_ZN4clib5cpair6updateERKS0_(ptr noundef nonnull align 8 dereferenceable(72) %117, ptr noundef nonnull align 8 dereferenceable(72) %119)
          to label %120 unwind label %125

120:                                              ; preds = %114
  %121 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  %122 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %121, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %123 unwind label %125

123:                                              ; preds = %120
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4clib5cpairEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %122, ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %129

125:                                              ; preds = %120, %114
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %10, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %137

129:                                              ; preds = %123, %112
  br label %130

130:                                              ; preds = %129, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZNSt12__shared_ptrIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  store i32 0, ptr %6, align 4
  br label %131

131:                                              ; preds = %130, %71
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  %132 = load i32, ptr %6, align 4
  switch i32 %132, label %262 [
    i32 0, label %133
    i32 7, label %134
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133, %131
  %135 = load i64, ptr %7, align 8, !tbaa !31
  %136 = add i64 %135, 1
  store i64 %136, ptr %7, align 8, !tbaa !31
  br label %54, !llvm.loop !32

137:                                              ; preds = %125, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZNSt12__shared_ptrIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %138

138:                                              ; preds = %137, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %139

139:                                              ; preds = %138, %72
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %257

140:                                              ; preds = %59
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %5, align 8, !tbaa !31
  %143 = add i64 %142, 1
  store i64 %143, ptr %5, align 8, !tbaa !31
  br label %45, !llvm.loop !34

144:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %145 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  store ptr %145, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %146) #5
  %148 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %19, i32 0, i32 0
  %149 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %148, i32 0, i32 0
  store ptr %147, ptr %149, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %150) #5
  %152 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %20, i32 0, i32 0
  %153 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %152, i32 0, i32 0
  store ptr %151, ptr %153, align 8
  br label %154

154:                                              ; preds = %163, %144
  %155 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %155, label %157, label %156

156:                                              ; preds = %154
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %165

157:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store ptr %158, ptr %21, align 8, !tbaa !5
  %159 = load ptr, ptr %21, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.std::pair", ptr %159, i32 0, i32 1
  %161 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %160) #5
  %162 = load double, ptr %4, align 8, !tbaa !9
  call void @_ZN4clib5cpair8pre_stepEd(ptr noundef nonnull align 8 dereferenceable(72) %161, double noundef %162)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %163

163:                                              ; preds = %157
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %154

165:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %166 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 4
  store ptr %166, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %167 = load ptr, ptr %22, align 8, !tbaa !5
  %168 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #5
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %23, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %170 = load ptr, ptr %22, align 8, !tbaa !5
  %171 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %170) #5
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %24, i32 0, i32 0
  store ptr %171, ptr %172, align 8
  br label %173

173:                                              ; preds = %184, %165
  %174 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br i1 %174, label %176, label %175

175:                                              ; preds = %173
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %186

176:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %177 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  store ptr %177, ptr %25, align 8, !tbaa !5
  %178 = load ptr, ptr %25, align 8, !tbaa !5
  %179 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib6cjointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %178) #5
  %180 = load double, ptr %4, align 8, !tbaa !9
  %181 = load ptr, ptr %179, align 8, !tbaa !35
  %182 = getelementptr inbounds ptr, ptr %181, i64 2
  %183 = load ptr, ptr %182, align 8
  call void %183(ptr noundef nonnull align 8 dereferenceable(40) %179, double noundef %180)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %184

184:                                              ; preds = %176
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  br label %173

186:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  store i64 0, ptr %26, align 8, !tbaa !31
  br label %187

187:                                              ; preds = %234, %186
  %188 = load i64, ptr %26, align 8, !tbaa !31
  %189 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 2
  %190 = load i64, ptr %189, align 8, !tbaa !37
  %191 = icmp ult i64 %188, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %187
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %237

193:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %194 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 5
  store ptr %194, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %195 = load ptr, ptr %27, align 8, !tbaa !5
  %196 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %195) #5
  %197 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %198 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %197, i32 0, i32 0
  store ptr %196, ptr %198, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %199 = load ptr, ptr %27, align 8, !tbaa !5
  %200 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %199) #5
  %201 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %29, i32 0, i32 0
  %202 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %201, i32 0, i32 0
  store ptr %200, ptr %202, align 8
  br label %203

203:                                              ; preds = %211, %193
  %204 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br i1 %204, label %206, label %205

205:                                              ; preds = %203
  store i32 15, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %213

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %207 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  store ptr %207, ptr %30, align 8, !tbaa !5
  %208 = load ptr, ptr %30, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.std::pair", ptr %208, i32 0, i32 1
  %210 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %209) #5
  call void @_ZN4clib5cpair14update_impulseEv(ptr noundef nonnull align 8 dereferenceable(72) %210)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %211

211:                                              ; preds = %206
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  br label %203

213:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %214 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 4
  store ptr %214, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %215 = load ptr, ptr %31, align 8, !tbaa !5
  %216 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #5
  %217 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %32, i32 0, i32 0
  store ptr %216, ptr %217, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %218 = load ptr, ptr %31, align 8, !tbaa !5
  %219 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %218) #5
  %220 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.29", ptr %33, i32 0, i32 0
  store ptr %219, ptr %220, align 8
  br label %221

221:                                              ; preds = %231, %213
  %222 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  br i1 %222, label %224, label %223

223:                                              ; preds = %221
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %233

224:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %225 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  store ptr %225, ptr %34, align 8, !tbaa !5
  %226 = load ptr, ptr %34, align 8, !tbaa !5
  %227 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib6cjointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %226) #5
  %228 = load ptr, ptr %227, align 8, !tbaa !35
  %229 = getelementptr inbounds ptr, ptr %228, i64 3
  %230 = load ptr, ptr %229, align 8
  call void %230(ptr noundef nonnull align 8 dereferenceable(40) %227)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %231

231:                                              ; preds = %224
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  br label %221

233:                                              ; preds = %223
  br label %234

234:                                              ; preds = %233
  %235 = load i64, ptr %26, align 8, !tbaa !31
  %236 = add i64 %235, 1
  store i64 %236, ptr %26, align 8, !tbaa !31
  br label %187, !llvm.loop !38

237:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %238 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 3
  store ptr %238, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %239 = load ptr, ptr %35, align 8, !tbaa !5
  %240 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %239) #5
  %241 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %240, ptr %241, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %242 = load ptr, ptr %35, align 8, !tbaa !5
  %243 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #5
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  br label %245

245:                                              ; preds = %254, %237
  %246 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #5
  br i1 %246, label %248, label %247

247:                                              ; preds = %245
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %256

248:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %249 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  store ptr %249, ptr %38, align 8, !tbaa !5
  %250 = load ptr, ptr %38, align 8, !tbaa !5
  %251 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %250) #5
  %252 = getelementptr inbounds %"class.clib::cworld", ptr %39, i32 0, i32 1
  %253 = load double, ptr %4, align 8, !tbaa !9
  call void @_ZN4clib5cbody12update_forceERKNS_4vec2Ed(ptr noundef nonnull align 8 dereferenceable(168) %251, ptr noundef nonnull align 8 dereferenceable(16) %252, double noundef %253)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  br label %254

254:                                              ; preds = %248
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  br label %245

256:                                              ; preds = %247, %43
  ret void

257:                                              ; preds = %139
  %258 = load ptr, ptr %10, align 8
  %259 = load i32, ptr %11, align 4
  %260 = insertvalue { ptr, i32 } poison, ptr %258, 0
  %261 = insertvalue { ptr, i32 } %260, i32 %259, 1
  resume { ptr, i32 } %261

262:                                              ; preds = %131
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt20dynamic_pointer_castIN4clib12polygon_bodyENS0_5cbodyEESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.13") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2

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

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

declare noundef zeroext i1 @_ZNK4clib5cbody11can_collideERKS0_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(168)) #4

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4clib5cpair10is_collideERSt10shared_ptrINS_12polygon_bodyEES4_Rj(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5eraseERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

declare void @_ZN4clib5cpair6updateERKS0_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #4

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

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

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

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

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

declare void @_ZN4clib5cpair8pre_stepEd(ptr noundef nonnull align 8 dereferenceable(72), double noundef) #4

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

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

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

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

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

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

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

declare void @_ZN4clib5cpair14update_impulseEv(ptr noundef nonnull align 8 dereferenceable(72)) #4

declare void @_ZN4clib5cbody12update_forceERKNS_4vec2Ed(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), double noundef) #4

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 = { 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 #3 = { 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 #4 = { "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 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN4clib6cworldE", !13, i64 0, !14, i64 8, !15, i64 24, !16, i64 32, !20, i64 56, !24, i64 80}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN4clib4vec2E", !10, i64 0, !10, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4clib5cbodyEESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib5cbodyEESaIS3_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib5cbodyEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4clib6cjointEESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib6cjointEESaIS3_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib6cjointEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableIjSt4pairIKjSt10shared_ptrIN4clib5cpairEEESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !26, i64 16, !15, i64 24, !27, i64 32, !6, i64 48}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !15, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!15, !15, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !8, i64 0}
!37 = !{!12, !15, i64 24}
!38 = distinct !{!38, !33}


; 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.13" = type { %"class.std::__shared_ptr.14" }
%"class.std::__shared_ptr.14" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.21" = type { %"class.std::__shared_ptr.22" }
%"class.std::__shared_ptr.22" = type { ptr, %"class.std::__shared_count" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.29" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

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

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

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

; 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 dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4clib6cworld4stepEd(ptr noundef nonnull align 8 dereferenceable(136) %0, double noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_ptr.13", align 8
  %4 = alloca %"class.std::shared_ptr.13", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::shared_ptr.21", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.29", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = load i8, ptr %0, align 8, !tbaa !5, !range !27, !noundef !28
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %128, label %.preheader

.preheader:                                       ; preds = %2
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = tail call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph45

.lr.ph45:                                         ; preds = %.preheader
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  br label %31

.loopexit:                                        ; preds = %73, %31
  %25 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %26 = icmp ult i64 %32, %25
  br i1 %26, label %31, label %._crit_edge, !llvm.loop !29

._crit_edge:                                      ; preds = %.loopexit, %.preheader
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %28 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %28, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %29 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %29, ptr %11, align 8
  %30 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %30, label %.lr.ph47, label %._crit_edge48

31:                                               ; preds = %.lr.ph45, %.loopexit
  %.044 = phi i64 [ 0, %.lr.ph45 ], [ %32, %.loopexit ]
  %32 = add nuw i64 %.044, 1
  %33 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %31, %73
  %.03043 = phi i64 [ %74, %73 ], [ %32, %31 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.044) #5
  call void @_ZSt20dynamic_pointer_castIN4clib12polygon_bodyENS0_5cbodyEESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.13") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %35) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.03043) #5
  call void @_ZSt20dynamic_pointer_castIN4clib12polygon_bodyENS0_5cbodyEESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.13") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %36) #5
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  %38 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNKSt19__shared_ptr_accessIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  %39 = invoke noundef zeroext i1 @_ZNK4clib5cbody11can_collideERKS0_(ptr noundef nonnull align 8 dereferenceable(168) %37, ptr noundef nonnull align 8 dereferenceable(168) %38)
          to label %40 unwind label %41

40:                                               ; preds = %.lr.ph
  br i1 %39, label %43, label %73

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %79

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZN4clib5cpair10is_collideERSt10shared_ptrINS_12polygon_bodyEES4_Rj(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.21") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %44 unwind label %53

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %45 = invoke ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %46 unwind label %55

46:                                               ; preds = %44
  store ptr %45, ptr %7, align 8
  %47 = call noundef zeroext i1 @_ZSteqIN4clib5cpairEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr null) #5
  br i1 %47, label %48, label %57

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %49 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %24) #5
  store ptr %49, ptr %8, align 8
  %50 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %50, label %51, label %72

51:                                               ; preds = %48
  %52 = invoke noundef i64 @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5eraseERS9_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %72 unwind label %55

53:                                               ; preds = %43
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %78

55:                                               ; preds = %60, %51, %44
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %77

57:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %58 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %24) #5
  store ptr %58, ptr %9, align 8
  %59 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %.sink.split unwind label %55

62:                                               ; preds = %57
  %63 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  %66 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %64) #5
  invoke void @_ZN4clib5cpair6updateERKS0_(ptr noundef nonnull align 8 dereferenceable(72) %65, ptr noundef nonnull align 8 dereferenceable(72) %66)
          to label %67 unwind label %69

67:                                               ; preds = %62
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %.sink.split unwind label %69

69:                                               ; preds = %67, %62
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %77

.sink.split:                                      ; preds = %67, %60
  %.sink = phi ptr [ %61, %60 ], [ %68, %67 ]
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4clib5cpairEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %.sink, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %72

72:                                               ; preds = %.sink.split, %48, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNSt12__shared_ptrIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %73

73:                                               ; preds = %40, %72
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %74 = add nuw i64 %.03043, 1
  %75 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %.lr.ph, label %.loopexit, !llvm.loop !31

77:                                               ; preds = %69, %55
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNSt12__shared_ptrIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %78

78:                                               ; preds = %77, %53
  %.pn.pn = phi { ptr, i32 } [ %.pn, %77 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %79

79:                                               ; preds = %78, %41
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %78 ], [ %42, %41 ]
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @_ZNSt12__shared_ptrIN4clib12polygon_bodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn.pn

._crit_edge48:                                    ; preds = %.lr.ph47, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %80 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %81 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %81, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %82 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %82, ptr %13, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %83, label %.lr.ph50, label %._crit_edge51

.lr.ph47:                                         ; preds = %._crit_edge, %.lr.ph47
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %85) #5
  call void @_ZN4clib5cpair8pre_stepEd(ptr noundef nonnull align 8 dereferenceable(72) %86, double noundef %1)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %88 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %88, label %.lr.ph47, label %._crit_edge48

._crit_edge51:                                    ; preds = %.lr.ph50, %._crit_edge48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %89 = getelementptr inbounds i8, ptr %0, i64 24
  %90 = load i64, ptr %89, align 8, !tbaa !32
  %.not65 = icmp eq i64 %90, 0
  br i1 %.not65, label %._crit_edge61, label %.lr.ph60

.lr.ph50:                                         ; preds = %._crit_edge48, %.lr.ph50
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %92 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib6cjointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %91) #5
  %93 = load ptr, ptr %92, align 8, !tbaa !33
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %95 = load ptr, ptr %94, align 8
  call void %95(ptr noundef nonnull align 8 dereferenceable(40) %92, double noundef %1)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %97, label %.lr.ph50, label %._crit_edge51

._crit_edge61:                                    ; preds = %._crit_edge57, %._crit_edge51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %98 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  store ptr %98, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  %99 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  store ptr %99, ptr %19, align 8
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br i1 %100, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %._crit_edge61
  %101 = getelementptr inbounds i8, ptr %0, i64 8
  br label %123

.lr.ph60:                                         ; preds = %._crit_edge51, %._crit_edge57
  %.03558 = phi i64 [ %113, %._crit_edge57 ], [ 0, %._crit_edge51 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %102 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %102, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %103 = call ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  store ptr %103, ptr %15, align 8
  %104 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %104, label %.lr.ph53, label %._crit_edge54

._crit_edge54:                                    ; preds = %.lr.ph53, %.lr.ph60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %105 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %105, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %106 = call ptr @_ZNSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %106, ptr %17, align 8
  %107 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %107, label %.lr.ph56, label %._crit_edge57

.lr.ph53:                                         ; preds = %.lr.ph60, %.lr.ph53
  %108 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cpairELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %109) #5
  call void @_ZN4clib5cpair14update_impulseEv(ptr noundef nonnull align 8 dereferenceable(72) %110)
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %112 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %112, label %.lr.ph53, label %._crit_edge54

._crit_edge57:                                    ; preds = %.lr.ph56, %._crit_edge54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  %113 = add nuw i64 %.03558, 1
  %114 = load i64, ptr %89, align 8, !tbaa !32
  %115 = icmp ult i64 %113, %114
  br i1 %115, label %.lr.ph60, label %._crit_edge61, !llvm.loop !35

.lr.ph56:                                         ; preds = %._crit_edge54, %.lr.ph56
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %117 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib6cjointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %116) #5
  %118 = load ptr, ptr %117, align 8, !tbaa !33
  %119 = getelementptr inbounds i8, ptr %118, i64 24
  %120 = load ptr, ptr %119, align 8
  call void %120(ptr noundef nonnull align 8 dereferenceable(40) %117)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %122 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib6cjointEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %122, label %.lr.ph56, label %._crit_edge57

._crit_edge64:                                    ; preds = %123, %._crit_edge61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %128

123:                                              ; preds = %.lr.ph63, %123
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %125 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %124) #5
  call void @_ZN4clib5cbody12update_forceERKNS_4vec2Ed(ptr noundef nonnull align 8 dereferenceable(168) %125, ptr noundef nonnull align 8 dereferenceable(16) %101, double noundef %1)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %127 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN4clib5cbodyEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br i1 %127, label %123, label %._crit_edge64

128:                                              ; preds = %2, %._crit_edge64
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt20dynamic_pointer_castIN4clib12polygon_bodyENS0_5cbodyEESt10shared_ptrIT_ERKS3_IT0_E(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.13") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZNK4clib5cbody11can_collideERKS0_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4clib5cpair10is_collideERSt10shared_ptrINS_12polygon_bodyEES4_Rj(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE5eraseERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt10shared_ptrIN4clib5cpairEEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

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

declare void @_ZN4clib5cpair6updateERKS0_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

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

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

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

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

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

declare void @_ZN4clib5cpair8pre_stepEd(ptr noundef nonnull align 8 dereferenceable(72), double noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

declare void @_ZN4clib5cpair14update_impulseEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

declare void @_ZN4clib5cbody12update_forceERKNS_4vec2Ed(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #4

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 = { 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 #3 = { 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 #4 = { "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, !7, i64 0}
!6 = !{!"_ZTSN4clib6cworldE", !7, i64 0, !10, i64 8, !12, i64 24, !13, i64 32, !18, i64 56, !22, i64 80}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4clib4vec2E", !11, i64 0, !11, i64 8}
!11 = !{!"double", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTSSt6vectorISt10shared_ptrIN4clib5cbodyEESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4clib5cbodyEESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib5cbodyEESaIS3_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib5cbodyEESaIS3_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"_ZTSSt6vectorISt10shared_ptrIN4clib6cjointEESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4clib6cjointEESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib6cjointEESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4clib6cjointEESaIS3_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!22 = !{!"_ZTSSt13unordered_mapIjSt10shared_ptrIN4clib5cpairEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIjSt4pairIKjSt10shared_ptrIN4clib5cpairEEESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !17, i64 0, !12, i64 8, !24, i64 16, !12, i64 24, !25, i64 32, !17, i64 48}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !17, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !12, i64 8}
!26 = !{!"float", !8, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!6, !12, i64 24}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !9, i64 0}
!35 = distinct !{!35, !30}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass