; LLVM IR from simbody/simbody :: SimTKmath/Optimizers/src/IpOpt (IpCompoundVector)

; 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::allocator.7" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"class.SimTKIpopt::SmartPtr" = type { ptr }
%"class.SimTKIpopt::CompoundVector" = type <{ %"class.SimTKIpopt::Vector.base", [3 x i8], %"class.std::vector.5", %"class.std::vector.10", ptr, i8, [7 x i8] }>
%"class.SimTKIpopt::Vector.base" = type <{ %"class.SimTKIpopt::TaggedObject", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::CachedResults", i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, i32, i8 }>
%"class.SimTKIpopt::TaggedObject" = type { %"class.SimTKIpopt::ReferencedObject.base", %"class.SimTKIpopt::Subject", i32, i32 }
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::Subject" = type { ptr, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<SimTKIpopt::Observer *, std::allocator<SimTKIpopt::Observer *>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::Observer *, std::allocator<SimTKIpopt::Observer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::Observer *, std::allocator<SimTKIpopt::Observer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::Observer *, std::allocator<SimTKIpopt::Observer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.SimTKIpopt::CachedResults" = type { ptr, i32, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<SimTKIpopt::Vector>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>, std::allocator<SimTKIpopt::SmartPtr<const SimTKIpopt::Vector>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN10SimTKIpopt14CompoundVectorE = external dso_local unnamed_addr constant { [30 x ptr], [4 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt14CompoundVectorC2EPKNS_19CompoundVectorSpaceEb(ptr noundef nonnull align 8 dereferenceable(265) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::allocator.7", align 1
  %10 = alloca %"class.std::allocator.12", align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.SimTKIpopt::SmartPtr", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = zext i1 %2 to i8
  store i8 %14, ptr %6, align 1, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10SimTKIpopt6VectorC2EPKNS_11VectorSpaceE(ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef %16)
  store ptr getelementptr inbounds inrange(-16, 224) ({ [30 x ptr], [4 x ptr] }, ptr @_ZTVN10SimTKIpopt14CompoundVectorE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr getelementptr inbounds inrange(-16, 16) ({ [30 x ptr], [4 x ptr] }, ptr @_ZTVN10SimTKIpopt14CompoundVectorE, i32 0, i32 1, i32 2), ptr %17, align 8, !tbaa !11
  %18 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 2
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = invoke noundef i32 @_ZNK10SimTKIpopt19CompoundVectorSpace11NCompSpacesEv(ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %21 unwind label %39

21:                                               ; preds = %3
  %22 = sext i32 %20 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @_ZNSaIN10SimTKIpopt8SmartPtrINS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %23 unwind label %43

23:                                               ; preds = %21
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  %24 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = invoke noundef i32 @_ZNK10SimTKIpopt19CompoundVectorSpace11NCompSpacesEv(ptr noundef nonnull align 8 dereferenceable(48) %25)
          to label %27 unwind label %47

27:                                               ; preds = %23
  %28 = sext i32 %26 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @_ZNSaIN10SimTKIpopt8SmartPtrIKNS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %29 unwind label %51

29:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  %30 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %31, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 5
  store i8 0, ptr %32, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !36
  br label %33

33:                                               ; preds = %95, %29
  %34 = load i32, ptr %12, align 4, !tbaa !36
  %35 = invoke noundef i32 @_ZNK10SimTKIpopt14CompoundVector6NCompsEv(ptr noundef nonnull align 8 dereferenceable(265) %15)
          to label %36 unwind label %55

36:                                               ; preds = %33
  %37 = icmp slt i32 %34, %35
  br i1 %37, label %59, label %38

38:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %100

39:                                               ; preds = %3
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %7, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %8, align 4
  br label %115

43:                                               ; preds = %21
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %115

47:                                               ; preds = %23
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %114

51:                                               ; preds = %27
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %114

55:                                               ; preds = %33
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  br label %99

59:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %60 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = load i32, ptr %12, align 4, !tbaa !36
  invoke void @_ZNK10SimTKIpopt19CompoundVectorSpace12GetCompSpaceEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %61, i32 noundef %62)
          to label %63 unwind label %86

63:                                               ; preds = %59
  %64 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %65 unwind label %90

65:                                               ; preds = %63
  %66 = invoke noundef i32 @_ZNK10SimTKIpopt11VectorSpace3DimEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %67 unwind label %90

67:                                               ; preds = %65
  %68 = load i32, ptr %11, align 4, !tbaa !36
  %69 = add nsw i32 %68, %66
  store i32 %69, ptr %11, align 4, !tbaa !36
  %70 = load i8, ptr %6, align 1, !tbaa !9, !range !37, !noundef !38
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %94

72:                                               ; preds = %67
  %73 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %74 unwind label %90

74:                                               ; preds = %72
  %75 = load ptr, ptr %73, align 8, !tbaa !11
  %76 = getelementptr inbounds ptr, ptr %75, i64 2
  %77 = load ptr, ptr %76, align 8
  %78 = invoke noundef ptr %77(ptr noundef nonnull align 8 dereferenceable(16) %73)
          to label %79 unwind label %90

79:                                               ; preds = %74
  %80 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 2
  %81 = load i32, ptr %12, align 4, !tbaa !36
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #5
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef %78)
          to label %85 unwind label %90

85:                                               ; preds = %79
  br label %94

86:                                               ; preds = %59
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  br label %98

90:                                               ; preds = %79, %74, %72, %65, %63
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br label %98

94:                                               ; preds = %85, %67
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %12, align 4, !tbaa !36
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %12, align 4, !tbaa !36
  br label %33, !llvm.loop !39

98:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %99

99:                                               ; preds = %98, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %113

100:                                              ; preds = %38
  %101 = load i8, ptr %6, align 1, !tbaa !9, !range !37, !noundef !38
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %112

103:                                              ; preds = %100
  %104 = invoke noundef zeroext i1 @_ZN10SimTKIpopt14CompoundVector12VectorsValidEv(ptr noundef nonnull align 8 dereferenceable(265) %15)
          to label %105 unwind label %108

105:                                              ; preds = %103
  %106 = getelementptr inbounds %"class.SimTKIpopt::CompoundVector", ptr %15, i32 0, i32 5
  %107 = zext i1 %104 to i8
  store i8 %107, ptr %106, align 8, !tbaa !35
  br label %112

108:                                              ; preds = %103
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  br label %113

112:                                              ; preds = %105, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void

113:                                              ; preds = %108, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  br label %114

114:                                              ; preds = %113, %51, %47
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br label %115

115:                                              ; preds = %114, %43, %39
  call void @_ZN10SimTKIpopt6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(205) %15) #5
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %7, align 8
  %118 = load i32, ptr %8, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt6VectorC2EPKNS_11VectorSpaceE(ptr noundef nonnull align 8 dereferenceable(205), ptr noundef) unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10SimTKIpopt19CompoundVectorSpace12GetCompSpaceEi(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt14CompoundVector12VectorsValidEv(ptr noundef nonnull align 8 dereferenceable(265)) #3 align 2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 256}
!14 = !{!"_ZTSN10SimTKIpopt14CompoundVectorE", !15, i64 0, !27, i64 208, !31, i64 232, !6, i64 256, !10, i64 264}
!15 = !{!"_ZTSN10SimTKIpopt6VectorE", !16, i64 0, !24, i64 56, !25, i64 64, !18, i64 88, !26, i64 96, !18, i64 104, !26, i64 112, !18, i64 120, !26, i64 128, !18, i64 136, !26, i64 144, !18, i64 152, !26, i64 160, !18, i64 168, !26, i64 176, !18, i64 184, !26, i64 192, !18, i64 200, !10, i64 204}
!16 = !{!"_ZTSN10SimTKIpopt12TaggedObjectE", !17, i64 0, !19, i64 16, !18, i64 48, !18, i64 52}
!17 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !18, i64 8}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt7SubjectE", !20, i64 8}
!20 = !{!"_ZTSSt6vectorIPN10SimTKIpopt8ObserverESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN10SimTKIpopt8ObserverESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN10SimTKIpopt8ObserverESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN10SimTKIpopt8ObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEE", !6, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt13CachedResultsIdEE", !18, i64 8, !6, i64 16}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTSSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!14, !10, i64 264}
!36 = !{!18, !18, i64 0}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::allocator.7" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"class.SimTKIpopt::SmartPtr" = type { ptr }

@_ZTVN10SimTKIpopt14CompoundVectorE = external dso_local unnamed_addr constant { [30 x ptr], [4 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt14CompoundVectorC2EPKNS_19CompoundVectorSpaceEb(ptr noundef nonnull align 8 dereferenceable(265) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator.7", align 1
  %5 = alloca %"class.std::allocator.12", align 1
  %6 = alloca %"class.SimTKIpopt::SmartPtr", align 8
  tail call void @_ZN10SimTKIpopt6VectorC2EPKNS_11VectorSpaceE(ptr noundef nonnull align 8 dereferenceable(205) %0, ptr noundef %1)
  store ptr getelementptr inbounds inrange(-16, 224) (i8, ptr @_ZTVN10SimTKIpopt14CompoundVectorE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN10SimTKIpopt14CompoundVectorE, i64 256), ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  %9 = tail call noundef i32 @_ZNK10SimTKIpopt19CompoundVectorSpace11NCompSpacesEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %10 = sext i32 %9 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIN10SimTKIpopt8SmartPtrINS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %11 unwind label %39

11:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 232
  %13 = call noundef i32 @_ZNK10SimTKIpopt19CompoundVectorSpace11NCompSpacesEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %14 = sext i32 %13 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaIN10SimTKIpopt8SmartPtrIKNS_6VectorEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %15 unwind label %41

15:                                               ; preds = %11
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 256
  store ptr %1, ptr %16, align 8, !tbaa !8
  %17 = getelementptr inbounds i8, ptr %0, i64 264
  store i8 0, ptr %17, align 8, !tbaa !33
  %18 = call noundef i32 @_ZNK10SimTKIpopt14CompoundVector6NCompsEv(ptr noundef nonnull align 8 dereferenceable(265) %0)
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  br i1 %2, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %33
  %indvars.iv = phi i64 [ %indvars.iv.next, %33 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %20 = load ptr, ptr %16, align 8, !tbaa !8
  %21 = trunc nuw nsw i64 %indvars.iv to i32
  invoke void @_ZNK10SimTKIpopt19CompoundVectorSpace12GetCompSpaceEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %20, i32 noundef %21)
          to label %22 unwind label %.split.us

22:                                               ; preds = %.lr.ph.split.us
  %23 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %24 = call noundef i32 @_ZNK10SimTKIpopt11VectorSpace3DimEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8
  %29 = invoke noundef ptr %28(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %30 unwind label %.split25.us

30:                                               ; preds = %22
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #5
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %29)
          to label %33 unwind label %.split25.us

33:                                               ; preds = %30
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = call noundef i32 @_ZNK10SimTKIpopt14CompoundVector6NCompsEv(ptr noundef nonnull align 8 dereferenceable(265) %0)
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next, %35
  br i1 %36, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !34

.split.us:                                        ; preds = %.lr.ph.split.us
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %51

.split25.us:                                      ; preds = %30, %22
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %51

._crit_edge:                                      ; preds = %44, %33, %15
  br i1 %2, label %52, label %58

39:                                               ; preds = %3
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrINS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %61

41:                                               ; preds = %11
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %60

.lr.ph.split:                                     ; preds = %.lr.ph, %44
  %.023 = phi i32 [ %47, %44 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %43 = load ptr, ptr %16, align 8, !tbaa !8
  invoke void @_ZNK10SimTKIpopt19CompoundVectorSpace12GetCompSpaceEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %43, i32 noundef %.023)
          to label %44 unwind label %.split

44:                                               ; preds = %.lr.ph.split
  %45 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %46 = call noundef i32 @_ZNK10SimTKIpopt11VectorSpace3DimEv(ptr noundef nonnull align 8 dereferenceable(16) %45)
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %47 = add nuw nsw i32 %.023, 1
  %48 = call noundef i32 @_ZNK10SimTKIpopt14CompoundVector6NCompsEv(ptr noundef nonnull align 8 dereferenceable(265) %0)
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %.lr.ph.split, label %._crit_edge, !llvm.loop !34

.split:                                           ; preds = %.lr.ph.split
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %51

51:                                               ; preds = %.split, %.split.us, %.split25.us
  %.pn = phi { ptr, i32 } [ %38, %.split25.us ], [ %50, %.split ], [ %37, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %59

52:                                               ; preds = %._crit_edge
  %53 = invoke noundef zeroext i1 @_ZN10SimTKIpopt14CompoundVector12VectorsValidEv(ptr noundef nonnull align 8 dereferenceable(265) %0)
          to label %54 unwind label %56

54:                                               ; preds = %52
  %55 = zext i1 %53 to i8
  store i8 %55, ptr %17, align 8, !tbaa !33
  br label %58

56:                                               ; preds = %52
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %59

58:                                               ; preds = %54, %._crit_edge
  ret void

59:                                               ; preds = %56, %51
  %.pn.pn = phi { ptr, i32 } [ %.pn, %51 ], [ %57, %56 ]
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %60

60:                                               ; preds = %59, %41
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %59 ], [ %42, %41 ]
  call void @_ZNSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %61

61:                                               ; preds = %60, %39
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %60 ], [ %40, %39 ]
  call void @_ZN10SimTKIpopt6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(205) %0) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt6VectorC2EPKNS_11VectorSpaceE(ptr noundef nonnull align 8 dereferenceable(205), ptr noundef) unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10SimTKIpopt19CompoundVectorSpace12GetCompSpaceEi(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt14CompoundVector12VectorsValidEv(ptr noundef nonnull align 8 dereferenceable(265)) local_unnamed_addr #3 align 2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !20, i64 256}
!9 = !{!"_ZTSN10SimTKIpopt14CompoundVectorE", !10, i64 0, !25, i64 208, !29, i64 232, !20, i64 256, !24, i64 264}
!10 = !{!"_ZTSN10SimTKIpopt6VectorE", !11, i64 0, !21, i64 56, !22, i64 64, !13, i64 88, !23, i64 96, !13, i64 104, !23, i64 112, !13, i64 120, !23, i64 128, !13, i64 136, !23, i64 144, !13, i64 152, !23, i64 160, !13, i64 168, !23, i64 176, !13, i64 184, !23, i64 192, !13, i64 200, !24, i64 204}
!11 = !{!"_ZTSN10SimTKIpopt12TaggedObjectE", !12, i64 0, !15, i64 16, !13, i64 48, !13, i64 52}
!12 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !13, i64 8}
!13 = !{!"int", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt7SubjectE", !16, i64 8}
!16 = !{!"_ZTSSt6vectorIPN10SimTKIpopt8ObserverESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN10SimTKIpopt8ObserverESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN10SimTKIpopt8ObserverESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN10SimTKIpopt8ObserverESaIS2_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !14, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEE", !20, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt13CachedResultsIdEE", !13, i64 8, !20, i64 16}
!23 = !{!"double", !14, i64 0}
!24 = !{!"bool", !14, i64 0}
!25 = !{!"_ZTSSt6vectorIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrINS0_6VectorEEESaIS3_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!29 = !{!"_ZTSSt6vectorIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt8SmartPtrIKNS0_6VectorEEESaIS4_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!33 = !{!9, !24, i64 264}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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