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

; 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" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.clib::vec2" = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }
%"class.clib::cpair" = type { %"class.std::weak_ptr", %"class.std::weak_ptr", %"struct.clib::vec2", %"class.std::vector.2" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<clib::ccontact, std::allocator<clib::ccontact>>::_Vector_impl" }
%"struct.std::_Vector_base<clib::ccontact, std::allocator<clib::ccontact>>::_Vector_impl" = type { %"struct.std::_Vector_base<clib::ccontact, std::allocator<clib::ccontact>>::_Vector_impl_data" }
%"struct.std::_Vector_base<clib::ccontact, std::allocator<clib::ccontact>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.clib::ccontact" = type { %"struct.clib::vec2", %"struct.clib::vec2", %"struct.clib::vec2", %"struct.std::array", %"struct.std::array.0", double, double, double, double, double, double }
%"struct.std::array" = type { [2 x i8] }
%"struct.std::array.0" = type { [2 x i64] }

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

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

declare i32 @__gxx_personality_v0(...)

declare { double, double } @_ZNK4clib4vec26normalEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 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)) #2 align 2

declare { double, double } @_ZN4clibplERKNS_4vec2ES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1

declare { double, double } @_ZN4clibmlEdRKNS_4vec2E(double noundef, ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

declare void @_ZN4clib5cbody14update_impulseERKNS_4vec2ES3_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1

declare { double, double } @_ZNK4clib4vec2ngEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4clib5cpair6updateERKS0_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.clib::vec2", align 8
  %7 = alloca %"class.std::shared_ptr", align 8
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %19 = alloca %"struct.clib::vec2", align 8
  %20 = alloca %"struct.clib::vec2", align 8
  %21 = alloca %"struct.clib::vec2", align 8
  %22 = alloca %"struct.clib::vec2", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.clib::cpair", ptr %24, i32 0, i32 3
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %26 = getelementptr inbounds %"class.clib::cpair", ptr %23, i32 0, i32 2
  %27 = call { double, double } @_ZNK4clib4vec26normalEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %29 = extractvalue { double, double } %27, 0
  store double %29, ptr %28, align 8
  %30 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %31 = extractvalue { double, double } %27, 1
  store double %31, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %32 = getelementptr inbounds %"class.clib::cpair", ptr %23, i32 0, i32 0
  call void @_ZNKSt8weak_ptrIN4clib5cbodyEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %33 = getelementptr inbounds %"class.clib::cpair", ptr %23, i32 0, i32 1
  call void @_ZNKSt8weak_ptrIN4clib5cbodyEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %34 = getelementptr inbounds %"class.clib::cpair", ptr %23, i32 0, i32 3
  store ptr %34, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call ptr @_ZNSt6vectorIN4clib8ccontactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = call ptr @_ZNSt6vectorIN4clib8ccontactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  br label %41

41:                                               ; preds = %137, %2
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %140

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %45 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  store ptr %45, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call ptr @_ZNKSt6vectorIN4clib8ccontactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %14, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call ptr @_ZNKSt6vectorIN4clib8ccontactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %15, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %14, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %15, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  %57 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr %54, ptr %56, ptr noundef nonnull align 8 dereferenceable(120) %52)
          to label %58 unwind label %114

58:                                               ; preds = %44
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %13, i32 0, i32 0
  store ptr %57, ptr %59, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call ptr @_ZNKSt6vectorIN4clib8ccontactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #6
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %18, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4clib8ccontactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br i1 %63, label %64, label %136

64:                                               ; preds = %58
  %65 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %66 = getelementptr inbounds %"struct.clib::ccontact", ptr %65, i32 0, i32 6
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.clib::ccontact", ptr %68, i32 0, i32 6
  store double %67, ptr %69, align 8, !tbaa !9
  %70 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %71 = getelementptr inbounds %"struct.clib::ccontact", ptr %70, i32 0, i32 7
  %72 = load double, ptr %71, align 8, !tbaa !15
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.clib::ccontact", ptr %73, i32 0, i32 7
  store double %72, ptr %74, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.clib::ccontact", ptr %75, i32 0, i32 6
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds %"class.clib::cpair", ptr %23, i32 0, i32 2
  %79 = invoke { double, double } @_ZN4clibmlEdRKNS_4vec2E(double noundef %77, ptr noundef nonnull align 8 dereferenceable(16) %78)
          to label %80 unwind label %118

80:                                               ; preds = %64
  %81 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %82 = extractvalue { double, double } %79, 0
  store double %82, ptr %81, align 8
  %83 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %84 = extractvalue { double, double } %79, 1
  store double %84, ptr %83, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.clib::ccontact", ptr %85, i32 0, i32 7
  %87 = load double, ptr %86, align 8, !tbaa !15
  %88 = invoke { double, double } @_ZN4clibmlEdRKNS_4vec2E(double noundef %87, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %89 unwind label %122

89:                                               ; preds = %80
  %90 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %91 = extractvalue { double, double } %88, 0
  store double %91, ptr %90, align 8
  %92 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %93 = extractvalue { double, double } %88, 1
  store double %93, ptr %92, align 8
  %94 = invoke { double, double } @_ZN4clibplERKNS_4vec2ES2_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %95 unwind label %122

95:                                               ; preds = %89
  %96 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %97 = extractvalue { double, double } %94, 0
  store double %97, ptr %96, align 8
  %98 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %99 = extractvalue { double, double } %94, 1
  store double %99, ptr %98, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  %100 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %101 = invoke { double, double } @_ZNK4clib4vec2ngEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %102 unwind label %127

102:                                              ; preds = %95
  %103 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %104 = extractvalue { double, double } %101, 0
  store double %104, ptr %103, align 8
  %105 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %106 = extractvalue { double, double } %101, 1
  store double %106, ptr %105, align 8
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.clib::ccontact", ptr %107, i32 0, i32 1
  invoke void @_ZN4clib5cbody14update_impulseERKNS_4vec2ES3_(ptr noundef nonnull align 8 dereferenceable(168) %100, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %108)
          to label %109 unwind label %127

109:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %110 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.clib::ccontact", ptr %111, i32 0, i32 2
  invoke void @_ZN4clib5cbody14update_impulseERKNS_4vec2ES3_(ptr noundef nonnull align 8 dereferenceable(168) %110, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %112)
          to label %113 unwind label %131

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %136

114:                                              ; preds = %44
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %16, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %17, align 4
  br label %139

118:                                              ; preds = %64
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %16, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %17, align 4
  br label %126

122:                                              ; preds = %89, %80
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %16, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %126

126:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %135

127:                                              ; preds = %102, %95
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %16, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %135

131:                                              ; preds = %109
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %16, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %17, align 4
  br label %135

135:                                              ; preds = %131, %127, %126
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %139

136:                                              ; preds = %113, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %137

137:                                              ; preds = %136
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %41

139:                                              ; preds = %135, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZNSt12__shared_ptrIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @_ZNSt12__shared_ptrIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %141

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

141:                                              ; preds = %139
  %142 = load ptr, ptr %16, align 8
  %143 = load i32, ptr %17, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(120)) #5

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 80}
!10 = !{!"_ZTSN4clib8ccontactE", !11, i64 0, !11, i64 16, !11, i64 32, !13, i64 48, !14, i64 56, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112}
!11 = !{!"_ZTSN4clib4vec2E", !12, i64 0, !12, i64 8}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTSSt5arrayIbLm2EE", !7, i64 0}
!14 = !{!"_ZTSSt5arrayImLm2EE", !7, i64 0}
!15 = !{!10, !12, i64 88}


; 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" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.clib::vec2" = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.7" = 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

declare { double, double } @_ZNK4clib4vec26normalEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 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 #2 align 2

declare { double, double } @_ZN4clibplERKNS_4vec2ES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare { double, double } @_ZN4clibmlEdRKNS_4vec2E(double noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

declare void @_ZN4clib5cbody14update_impulseERKNS_4vec2ES3_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare { double, double } @_ZNK4clib4vec2ngEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4clib5cpair6updateERKS0_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.clib::vec2", align 8
  %4 = alloca %"class.std::shared_ptr", align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %10 = alloca %"struct.clib::vec2", align 8
  %11 = alloca %"struct.clib::vec2", align 8
  %12 = alloca %"struct.clib::vec2", align 8
  %13 = alloca %"struct.clib::vec2", align 8
  %14 = getelementptr inbounds i8, ptr %1, i64 48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = tail call { double, double } @_ZNK4clib4vec26normalEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %17 = extractvalue { double, double } %16, 0
  store double %17, ptr %3, align 8
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  %19 = extractvalue { double, double } %16, 1
  store double %19, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZNKSt8weak_ptrIN4clib5cbodyEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZNKSt8weak_ptrIN4clib5cbodyEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %22 = call ptr @_ZNSt6vectorIN4clib8ccontactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store ptr %22, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %23 = call ptr @_ZNSt6vectorIN4clib8ccontactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store ptr %23, ptr %7, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %25 = getelementptr inbounds i8, ptr %11, i64 8
  %26 = getelementptr inbounds i8, ptr %12, i64 8
  %27 = getelementptr inbounds i8, ptr %10, i64 8
  %28 = getelementptr inbounds i8, ptr %13, i64 8
  br label %29

._crit_edge:                                      ; preds = %82, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt12__shared_ptrIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt12__shared_ptrIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret void

29:                                               ; preds = %.lr.ph, %82
  %30 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %31 = call ptr @_ZNKSt6vectorIN4clib8ccontactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %32 = call ptr @_ZNKSt6vectorIN4clib8ccontactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %33 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr %31, ptr %32, ptr noundef nonnull align 8 dereferenceable(120) %30)
          to label %34 unwind label %70

34:                                               ; preds = %29
  store ptr %33, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %35 = call ptr @_ZNKSt6vectorIN4clib8ccontactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  store ptr %35, ptr %9, align 8
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4clib8ccontactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %36, label %37, label %82

37:                                               ; preds = %34
  %38 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %39 = getelementptr inbounds i8, ptr %38, i64 80
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %30, i64 80
  store double %40, ptr %41, align 8, !tbaa !5
  %42 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 88
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %30, i64 88
  store double %44, ptr %45, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %46 = load double, ptr %41, align 8, !tbaa !5
  %47 = invoke { double, double } @_ZN4clibmlEdRKNS_4vec2E(double noundef %46, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %48 unwind label %72

48:                                               ; preds = %37
  %49 = extractvalue { double, double } %47, 0
  store double %49, ptr %11, align 8
  %50 = extractvalue { double, double } %47, 1
  store double %50, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %51 = load double, ptr %45, align 8, !tbaa !13
  %52 = invoke { double, double } @_ZN4clibmlEdRKNS_4vec2E(double noundef %51, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %53 unwind label %74

53:                                               ; preds = %48
  %54 = extractvalue { double, double } %52, 0
  store double %54, ptr %12, align 8
  %55 = extractvalue { double, double } %52, 1
  store double %55, ptr %26, align 8
  %56 = invoke { double, double } @_ZN4clibplERKNS_4vec2ES2_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %57 unwind label %74

57:                                               ; preds = %53
  %58 = extractvalue { double, double } %56, 0
  store double %58, ptr %10, align 8
  %59 = extractvalue { double, double } %56, 1
  store double %59, ptr %27, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %61 = invoke { double, double } @_ZNK4clib4vec2ngEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %62 unwind label %77

62:                                               ; preds = %57
  %63 = extractvalue { double, double } %61, 0
  store double %63, ptr %13, align 8
  %64 = extractvalue { double, double } %61, 1
  store double %64, ptr %28, align 8
  %65 = getelementptr inbounds i8, ptr %30, i64 16
  invoke void @_ZN4clib5cbody14update_impulseERKNS_4vec2ES3_(ptr noundef nonnull align 8 dereferenceable(168) %60, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %65)
          to label %66 unwind label %77

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %67 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  %68 = getelementptr inbounds i8, ptr %30, i64 32
  invoke void @_ZN4clib5cbody14update_impulseERKNS_4vec2ES3_(ptr noundef nonnull align 8 dereferenceable(168) %67, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %68)
          to label %69 unwind label %79

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %82

70:                                               ; preds = %29
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %85

72:                                               ; preds = %37
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %53, %48
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %76

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %81

77:                                               ; preds = %62, %57
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %81

79:                                               ; preds = %66
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %81

81:                                               ; preds = %79, %77, %76
  %.pn20 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ], [ %.pn, %76 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %85

82:                                               ; preds = %69, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4clib8ccontactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %84, label %29, label %._crit_edge

85:                                               ; preds = %81, %70
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %81 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt12__shared_ptrIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt12__shared_ptrIN4clib5cbodyELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn20.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKN4clib8ccontactESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #5

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 80}
!6 = !{!"_ZTSN4clib8ccontactE", !7, i64 0, !7, i64 16, !7, i64 32, !11, i64 48, !12, i64 56, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112}
!7 = !{!"_ZTSN4clib4vec2E", !8, i64 0, !8, i64 8}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt5arrayIbLm2EE", !9, i64 0}
!12 = !{!"_ZTSSt5arrayImLm2EE", !9, i64 0}
!13 = !{!6, !8, i64 88}


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