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

; 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.SimTKIpopt::SmartPtr" = type { ptr }
%"class.SimTKIpopt::SmartPtr.25" = type { ptr }
%"class.SimTKIpopt::SmartPtr.90" = type { ptr }
%"class.SimTKIpopt::SmartPtr.41" = type { ptr }
%"class.SimTKIpopt::SmartPtr.92" = type { ptr }
%"class.SimTKIpopt::SmartPtr.65" = type { ptr }
%"class.SimTKIpopt::LimMemQuasiNewtonUpdater" = type { %"class.SimTKIpopt::HessianUpdater.base", %"class.SimTKIpopt::SmartPtr.20", i32, i32, i32, double, i32, double, double, i8, double, %"class.SimTKIpopt::SmartPtr.21", i32, %"class.SimTKIpopt::SmartPtr.21", double, i8, i32, i32, %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.23", %"class.SimTKIpopt::SmartPtr.24", %"class.SimTKIpopt::SmartPtr.25", double, %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.26", i8, %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.26", %"class.SimTKIpopt::SmartPtr.21", %"class.SimTKIpopt::SmartPtr.21", %"class.SimTKIpopt::SmartPtr.27", %"class.SimTKIpopt::SmartPtr.27", i32, %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.23", %"class.SimTKIpopt::SmartPtr.24", %"class.SimTKIpopt::SmartPtr.25", double, %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.26", i8, %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.26" }
%"class.SimTKIpopt::HessianUpdater.base" = type { %"class.SimTKIpopt::AlgorithmStrategyObject.base" }
%"class.SimTKIpopt::AlgorithmStrategyObject.base" = type <{ %"class.SimTKIpopt::ReferencedObject.base", [4 x i8], %"class.SimTKIpopt::SmartPtr.16", %"class.SimTKIpopt::SmartPtr.17", %"class.SimTKIpopt::SmartPtr.18", %"class.SimTKIpopt::SmartPtr.19", i8 }>
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::SmartPtr.16" = type { ptr }
%"class.SimTKIpopt::SmartPtr.17" = type { ptr }
%"class.SimTKIpopt::SmartPtr.18" = type { ptr }
%"class.SimTKIpopt::SmartPtr.19" = type { ptr }
%"class.SimTKIpopt::SmartPtr.20" = type { ptr }
%"class.SimTKIpopt::SmartPtr.21" = type { ptr }
%"class.SimTKIpopt::SmartPtr.27" = type { ptr }
%"class.SimTKIpopt::SmartPtr.23" = type { ptr }
%"class.SimTKIpopt::SmartPtr.24" = type { ptr }
%"class.SimTKIpopt::SmartPtr.22" = type { ptr }
%"class.SimTKIpopt::SmartPtr.26" = type { ptr }

@_ZTIN10SimTKIpopt14SymMatrixSpaceE = external constant ptr
@_ZTIN10SimTKIpopt22CompoundSymMatrixSpaceE = external dso_local constant { ptr, ptr, 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: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt24LimMemQuasiNewtonUpdater4SetWEv(ptr noundef nonnull align 8 dereferenceable(424) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.SimTKIpopt::SmartPtr.25", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.SimTKIpopt::SmartPtr", align 8
  %7 = alloca %"class.SimTKIpopt::SmartPtr.90", align 8
  %8 = alloca %"class.SimTKIpopt::SmartPtr.41", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.SimTKIpopt::SmartPtr.92", align 8
  %11 = alloca %"class.SimTKIpopt::SmartPtr.65", align 8
  %12 = alloca %"class.SimTKIpopt::SmartPtr.65", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %14 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 9
  %15 = load i8, ptr %14, align 8, !tbaa !9, !range !31, !noundef !32
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %37

17:                                               ; preds = %1
  %18 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 11
  %19 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %20 unwind label %33

20:                                               ; preds = %17
  %21 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %19)
          to label %22 unwind label %33

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %21)
          to label %24 unwind label %33

24:                                               ; preds = %22
  %25 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %26 unwind label %33

26:                                               ; preds = %24
  %27 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 14
  %28 = load double, ptr %27, align 8, !tbaa !33
  %29 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 11
  %30 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %31 unwind label %33

31:                                               ; preds = %26
  invoke void @_ZN10SimTKIpopt6Vector12AddOneVectorEdRKS0_d(ptr noundef nonnull align 8 dereferenceable(205) %25, double noundef %28, ptr noundef nonnull align 8 dereferenceable(205) %30, double noundef 0.000000e+00)
          to label %32 unwind label %33

32:                                               ; preds = %31
  br label %65

33:                                               ; preds = %31, %26, %24, %22, %20, %17
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %4, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %5, align 4
  br label %178

37:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %38 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 1
  %39 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_27LowRankUpdateSymMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %40 unwind label %56

40:                                               ; preds = %37
  invoke void @_ZNK10SimTKIpopt27LowRankUpdateSymMatrixSpace18LowRankVectorSpaceEv(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(41) %39)
          to label %41 unwind label %56

41:                                               ; preds = %40
  %42 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %43 unwind label %60

43:                                               ; preds = %41
  %44 = load ptr, ptr %42, align 8, !tbaa !34
  %45 = getelementptr inbounds ptr, ptr %44, i64 2
  %46 = load ptr, ptr %45, align 8
  %47 = invoke noundef ptr %46(ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %48 unwind label %60

48:                                               ; preds = %43
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %47)
          to label %50 unwind label %60

50:                                               ; preds = %48
  %51 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %52 unwind label %60

52:                                               ; preds = %50
  %53 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 24
  %54 = load double, ptr %53, align 8, !tbaa !36
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %51, double noundef %54)
          to label %55 unwind label %60

55:                                               ; preds = %52
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %65

56:                                               ; preds = %40, %37
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  br label %64

60:                                               ; preds = %52, %50, %48, %43, %41
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %4, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %5, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %64

64:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %178

65:                                               ; preds = %55, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %66 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 1
  %67 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_27LowRankUpdateSymMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %68 unwind label %87

68:                                               ; preds = %65
  %69 = invoke noundef ptr @_ZNK10SimTKIpopt27LowRankUpdateSymMatrixSpace29MakeNewLowRankUpdateSymMatrixEv(ptr noundef nonnull align 8 dereferenceable(41) %67)
          to label %70 unwind label %87

70:                                               ; preds = %68
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %69)
          to label %71 unwind label %87

71:                                               ; preds = %70
  %72 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %73 unwind label %91

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %75 unwind label %91

75:                                               ; preds = %73
  invoke void @_ZN10SimTKIpopt22LowRankUpdateSymMatrix7SetDiagERKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(112) %72, ptr noundef nonnull align 8 dereferenceable(205) %74)
          to label %76 unwind label %91

76:                                               ; preds = %75
  %77 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 25
  %78 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17MultiVectorMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %77)
          to label %79 unwind label %91

79:                                               ; preds = %76
  br i1 %78, label %80, label %95

80:                                               ; preds = %79
  %81 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %82 unwind label %91

82:                                               ; preds = %80
  %83 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 25
  %84 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17MultiVectorMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %85 unwind label %91

85:                                               ; preds = %82
  invoke void @_ZN10SimTKIpopt22LowRankUpdateSymMatrix4SetVERKNS_17MultiVectorMatrixE(ptr noundef nonnull align 8 dereferenceable(112) %81, ptr noundef nonnull align 8 dereferenceable(128) %84)
          to label %86 unwind label %91

86:                                               ; preds = %85
  br label %95

87:                                               ; preds = %70, %68, %65
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  br label %177

91:                                               ; preds = %168, %166, %164, %104, %101, %99, %95, %85, %82, %80, %76, %75, %73, %71
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %4, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %5, align 4
  br label %176

95:                                               ; preds = %86, %79
  %96 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 26
  %97 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17MultiVectorMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %96)
          to label %98 unwind label %91

98:                                               ; preds = %95
  br i1 %97, label %99, label %106

99:                                               ; preds = %98
  %100 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %101 unwind label %91

101:                                              ; preds = %99
  %102 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 26
  %103 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17MultiVectorMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %104 unwind label %91

104:                                              ; preds = %101
  invoke void @_ZN10SimTKIpopt22LowRankUpdateSymMatrix4SetUERKNS_17MultiVectorMatrixE(ptr noundef nonnull align 8 dereferenceable(112) %100, ptr noundef nonnull align 8 dereferenceable(128) %103)
          to label %105 unwind label %91

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105, %98
  %107 = getelementptr inbounds %"class.SimTKIpopt::LimMemQuasiNewtonUpdater", ptr %13, i32 0, i32 9
  %108 = load i8, ptr %107, align 8, !tbaa !9, !range !31, !noundef !32
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %164

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %111 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5IpNLPEv(ptr noundef nonnull align 8 dereferenceable(49) %13)
          to label %112 unwind label %122

112:                                              ; preds = %110
  %113 = load ptr, ptr %111, align 8, !tbaa !34
  %114 = getelementptr inbounds ptr, ptr %113, i64 20
  %115 = load ptr, ptr %114, align 8
  invoke void %115(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.41") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %111)
          to label %116 unwind label %122

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %117 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_14SymMatrixSpaceEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %118 unwind label %126

118:                                              ; preds = %116
  %119 = icmp eq ptr %117, null
  br i1 %119, label %130, label %120

120:                                              ; preds = %118
  %121 = call ptr @__dynamic_cast(ptr %117, ptr @_ZTIN10SimTKIpopt14SymMatrixSpaceE, ptr @_ZTIN10SimTKIpopt22CompoundSymMatrixSpaceE, i64 0) #6
  br label %131

122:                                              ; preds = %112, %110
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %4, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %5, align 4
  br label %163

126:                                              ; preds = %116
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %4, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %5, align 4
  br label %162

130:                                              ; preds = %118
  br label %131

131:                                              ; preds = %130, %120
  %132 = phi ptr [ %121, %120 ], [ null, %130 ]
  store ptr %132, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = invoke noundef ptr @_ZNK10SimTKIpopt22CompoundSymMatrixSpace24MakeNewCompoundSymMatrixEv(ptr noundef nonnull align 8 dereferenceable(97) %133)
          to label %135 unwind label %148

135:                                              ; preds = %131
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %134)
          to label %136 unwind label %148

136:                                              ; preds = %135
  %137 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %138 unwind label %152

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %140 unwind label %152

140:                                              ; preds = %138
  invoke void @_ZN10SimTKIpopt17CompoundSymMatrix7SetCompEiiRKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(137) %137, i32 noundef 0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(69) %139)
          to label %141 unwind label %152

141:                                              ; preds = %140
  %142 = invoke noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %13)
          to label %143 unwind label %152

143:                                              ; preds = %141
  %144 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_17CompoundSymMatrixEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %145 unwind label %152

145:                                              ; preds = %143
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %144)
          to label %146 unwind label %152

146:                                              ; preds = %145
  invoke void @_ZN10SimTKIpopt9IpoptData5Set_WENS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(864) %142, ptr noundef %11)
          to label %147 unwind label %156

147:                                              ; preds = %146
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #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 @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %175

148:                                              ; preds = %135, %131
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %4, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %5, align 4
  br label %161

152:                                              ; preds = %145, %143, %141, %140, %138, %136
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %4, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %5, align 4
  br label %160

156:                                              ; preds = %146
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %4, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %5, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %160

160:                                              ; preds = %156, %152
  call void @_ZN10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %161

161:                                              ; preds = %160, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %162

162:                                              ; preds = %161, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %163

163:                                              ; preds = %162, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %176

164:                                              ; preds = %106
  %165 = invoke noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %13)
          to label %166 unwind label %91

166:                                              ; preds = %164
  %167 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_22LowRankUpdateSymMatrixEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %168 unwind label %91

168:                                              ; preds = %166
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %167)
          to label %169 unwind label %91

169:                                              ; preds = %168
  invoke void @_ZN10SimTKIpopt9IpoptData5Set_WENS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(864) %165, ptr noundef %12)
          to label %170 unwind label %171

170:                                              ; preds = %169
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %175

171:                                              ; preds = %169
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %4, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %5, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %176

175:                                              ; preds = %170, %147
  call void @_ZN10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

176:                                              ; preds = %171, %163, %91
  call void @_ZN10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %177

177:                                              ; preds = %176, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %178

178:                                              ; preds = %177, %64, %33
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %179

179:                                              ; preds = %178
  %180 = load ptr, ptr %4, align 8
  %181 = load i32, ptr %5, align 4
  %182 = insertvalue { ptr, i32 } poison, ptr %180, 0
  %183 = insertvalue { ptr, i32 } %182, i32 %181, 1
  resume { ptr, i32 } %183
}

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZNK10SimTKIpopt22CompoundSymMatrixSpace24MakeNewCompoundSymMatrixEv(ptr noundef nonnull align 8 dereferenceable(97)) #5

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

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

declare void @_ZN10SimTKIpopt17CompoundSymMatrix7SetCompEiiRKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(137), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(69)) #5

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
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 = { "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, !19, i64 112}
!10 = !{!"_ZTSN10SimTKIpopt24LimMemQuasiNewtonUpdaterE", !11, i64 0, !20, i64 56, !14, i64 64, !21, i64 68, !22, i64 72, !23, i64 80, !14, i64 88, !23, i64 96, !23, i64 104, !19, i64 112, !23, i64 120, !24, i64 128, !14, i64 136, !24, i64 144, !23, i64 152, !19, i64 160, !14, i64 164, !14, i64 168, !25, i64 176, !25, i64 184, !25, i64 192, !26, i64 200, !27, i64 208, !28, i64 216, !23, i64 224, !25, i64 232, !25, i64 240, !29, i64 248, !19, i64 256, !25, i64 264, !29, i64 272, !24, i64 280, !24, i64 288, !30, i64 296, !30, i64 304, !14, i64 312, !25, i64 320, !25, i64 328, !25, i64 336, !26, i64 344, !27, i64 352, !28, i64 360, !23, i64 368, !25, i64 376, !25, i64 384, !29, i64 392, !19, i64 400, !25, i64 408, !29, i64 416}
!11 = !{!"_ZTSN10SimTKIpopt14HessianUpdaterE", !12, i64 0}
!12 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !13, i64 0, !15, i64 16, !16, i64 24, !17, i64 32, !18, i64 40, !19, i64 48}
!13 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !6, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !6, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !6, i64 0}
!18 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !6, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_27LowRankUpdateSymMatrixSpaceEEE", !6, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt24LimMemQuasiNewtonUpdater12LMUpdateTypeE", !7, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt24LimMemQuasiNewtonUpdater16LMInitializationE", !7, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_6VectorEEE", !6, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_17MultiVectorMatrixEEE", !6, i64 0}
!26 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_11DenseVectorEEE", !6, i64 0}
!27 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEE", !6, i64 0}
!28 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_6VectorEEE", !6, i64 0}
!29 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_14DenseSymMatrixEEE", !6, i64 0}
!30 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_6MatrixEEE", !6, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!10, !23, i64 152}
!34 = !{!35, !35, i64 0}
!35 = !{!"vtable pointer", !8, i64 0}
!36 = !{!10, !23, i64 224}


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

%"class.SimTKIpopt::SmartPtr" = type { ptr }
%"class.SimTKIpopt::SmartPtr.25" = type { ptr }
%"class.SimTKIpopt::SmartPtr.90" = type { ptr }
%"class.SimTKIpopt::SmartPtr.41" = type { ptr }
%"class.SimTKIpopt::SmartPtr.92" = type { ptr }
%"class.SimTKIpopt::SmartPtr.65" = type { ptr }

@_ZTIN10SimTKIpopt14SymMatrixSpaceE = external constant ptr
@_ZTIN10SimTKIpopt22CompoundSymMatrixSpaceE = external dso_local constant { ptr, ptr, 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: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt24LimMemQuasiNewtonUpdater4SetWEv(ptr noundef nonnull align 8 dereferenceable(424) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.SimTKIpopt::SmartPtr.25", align 8
  %3 = alloca %"class.SimTKIpopt::SmartPtr", align 8
  %4 = alloca %"class.SimTKIpopt::SmartPtr.90", align 8
  %5 = alloca %"class.SimTKIpopt::SmartPtr.41", align 8
  %6 = alloca %"class.SimTKIpopt::SmartPtr.92", align 8
  %7 = alloca %"class.SimTKIpopt::SmartPtr.65", align 8
  %8 = alloca %"class.SimTKIpopt::SmartPtr.65", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !30, !noundef !31
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %25

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 128
  %14 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %15 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %14)
          to label %16 unwind label %23

16:                                               ; preds = %12
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %15)
          to label %18 unwind label %23

18:                                               ; preds = %16
  %19 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %20 = getelementptr inbounds i8, ptr %0, i64 152
  %21 = load double, ptr %20, align 8, !tbaa !32
  %22 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  invoke void @_ZN10SimTKIpopt6Vector12AddOneVectorEdRKS0_d(ptr noundef nonnull align 8 dereferenceable(205) %19, double noundef %21, ptr noundef nonnull align 8 dereferenceable(205) %22, double noundef 0.000000e+00)
          to label %46 unwind label %23

23:                                               ; preds = %18, %16, %12
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %118

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  %27 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_27LowRankUpdateSymMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  invoke void @_ZNK10SimTKIpopt27LowRankUpdateSymMatrixSpace18LowRankVectorSpaceEv(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(41) %27)
          to label %28 unwind label %41

28:                                               ; preds = %25
  %29 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %30 = load ptr, ptr %29, align 8, !tbaa !33
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef ptr %32(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %34 unwind label %43

34:                                               ; preds = %28
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %33)
          to label %36 unwind label %43

36:                                               ; preds = %34
  %37 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %38 = getelementptr inbounds i8, ptr %0, i64 224
  %39 = load double, ptr %38, align 8, !tbaa !35
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %37, double noundef %39)
          to label %40 unwind label %43

40:                                               ; preds = %36
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %46

41:                                               ; preds = %25
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %36, %34, %28
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br label %45

45:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %118

46:                                               ; preds = %18, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_27LowRankUpdateSymMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %49 = invoke noundef ptr @_ZNK10SimTKIpopt27LowRankUpdateSymMatrixSpace29MakeNewLowRankUpdateSymMatrixEv(ptr noundef nonnull align 8 dereferenceable(41) %48)
          to label %50 unwind label %61

50:                                               ; preds = %46
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %49)
          to label %51 unwind label %61

51:                                               ; preds = %50
  %52 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %53 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN10SimTKIpopt22LowRankUpdateSymMatrix7SetDiagERKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(112) %52, ptr noundef nonnull align 8 dereferenceable(205) %53)
          to label %54 unwind label %63

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %0, i64 232
  %56 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17MultiVectorMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %57 unwind label %63

57:                                               ; preds = %54
  br i1 %56, label %58, label %65

58:                                               ; preds = %57
  %59 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %60 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17MultiVectorMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55)
  invoke void @_ZN10SimTKIpopt22LowRankUpdateSymMatrix4SetVERKNS_17MultiVectorMatrixE(ptr noundef nonnull align 8 dereferenceable(112) %59, ptr noundef nonnull align 8 dereferenceable(128) %60)
          to label %65 unwind label %63

61:                                               ; preds = %50, %46
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %117

63:                                               ; preds = %109, %107, %69, %65, %58, %54, %51
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %116

65:                                               ; preds = %58, %57
  %66 = getelementptr inbounds i8, ptr %0, i64 240
  %67 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_17MultiVectorMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %68 unwind label %63

68:                                               ; preds = %65
  br i1 %67, label %69, label %72

69:                                               ; preds = %68
  %70 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %71 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK10SimTKIpopt8SmartPtrINS_17MultiVectorMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  invoke void @_ZN10SimTKIpopt22LowRankUpdateSymMatrix4SetUERKNS_17MultiVectorMatrixE(ptr noundef nonnull align 8 dereferenceable(112) %70, ptr noundef nonnull align 8 dereferenceable(128) %71)
          to label %72 unwind label %63

72:                                               ; preds = %69, %68
  %73 = load i8, ptr %9, align 8, !tbaa !5, !range !30, !noundef !31
  %74 = trunc nuw i8 %73 to i1
  br i1 %74, label %75, label %107

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %76 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5IpNLPEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %77 unwind label %86

77:                                               ; preds = %75
  %78 = load ptr, ptr %76, align 8, !tbaa !33
  %79 = getelementptr inbounds i8, ptr %78, i64 160
  %80 = load ptr, ptr %79, align 8
  invoke void %80(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.41") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %81 unwind label %86

81:                                               ; preds = %77
  %82 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_14SymMatrixSpaceEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %83 = icmp ne ptr %82, null
  call void @llvm.assume(i1 %83)
  %84 = call ptr @__dynamic_cast(ptr nonnull %82, ptr nonnull @_ZTIN10SimTKIpopt14SymMatrixSpaceE, ptr nonnull @_ZTIN10SimTKIpopt22CompoundSymMatrixSpaceE, i64 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %85 = invoke noundef ptr @_ZNK10SimTKIpopt22CompoundSymMatrixSpace24MakeNewCompoundSymMatrixEv(ptr noundef nonnull align 8 dereferenceable(97) %84)
          to label %88 unwind label %98

86:                                               ; preds = %77, %75
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %106

88:                                               ; preds = %81
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %85)
          to label %89 unwind label %98

89:                                               ; preds = %88
  %90 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %91 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN10SimTKIpopt17CompoundSymMatrix7SetCompEiiRKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(137) %90, i32 noundef 0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(69) %91)
          to label %92 unwind label %100

92:                                               ; preds = %89
  %93 = invoke noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %94 unwind label %100

94:                                               ; preds = %92
  %95 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_17CompoundSymMatrixEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %95)
          to label %96 unwind label %100

96:                                               ; preds = %94
  invoke void @_ZN10SimTKIpopt9IpoptData5Set_WENS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(864) %93, ptr noundef nonnull %7)
          to label %97 unwind label %102

97:                                               ; preds = %96
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %115

98:                                               ; preds = %88, %81
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %105

100:                                              ; preds = %94, %92, %89
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %96
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %104

104:                                              ; preds = %102, %100
  %.pn12 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %105

105:                                              ; preds = %104, %98
  %.pn12.pn = phi { ptr, i32 } [ %.pn12, %104 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %106

106:                                              ; preds = %105, %86
  %.pn12.pn.pn = phi { ptr, i32 } [ %.pn12.pn, %105 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %116

107:                                              ; preds = %72
  %108 = invoke noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
          to label %109 unwind label %63

109:                                              ; preds = %107
  %110 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrINS_22LowRankUpdateSymMatrixEEEPT_RKNS_8SmartPtrIS2_EE(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %110)
          to label %111 unwind label %63

111:                                              ; preds = %109
  invoke void @_ZN10SimTKIpopt9IpoptData5Set_WENS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(864) %108, ptr noundef nonnull %8)
          to label %112 unwind label %113

112:                                              ; preds = %111
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %115

113:                                              ; preds = %111
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %116

115:                                              ; preds = %112, %97
  call void @_ZN10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void

116:                                              ; preds = %113, %106, %63
  %.pn12.pn.pn.pn = phi { ptr, i32 } [ %.pn12.pn.pn, %106 ], [ %114, %113 ], [ %64, %63 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_22LowRankUpdateSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br label %117

117:                                              ; preds = %116, %61
  %.pn12.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn12.pn.pn.pn, %116 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %118

118:                                              ; preds = %117, %45, %23
  %.pn12.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn12.pn.pn.pn.pn, %117 ], [ %24, %23 ], [ %.pn, %45 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn12.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZNK10SimTKIpopt22CompoundSymMatrixSpace24MakeNewCompoundSymMatrixEv(ptr noundef nonnull align 8 dereferenceable(97)) local_unnamed_addr #5

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

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

declare void @_ZN10SimTKIpopt17CompoundSymMatrix7SetCompEiiRKNS_6MatrixE(ptr noundef nonnull align 8 dereferenceable(137), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(69)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(read) }
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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #7 = { 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, !18, i64 112}
!6 = !{!"_ZTSN10SimTKIpopt24LimMemQuasiNewtonUpdaterE", !7, i64 0, !19, i64 56, !10, i64 64, !20, i64 68, !21, i64 72, !22, i64 80, !10, i64 88, !22, i64 96, !22, i64 104, !18, i64 112, !22, i64 120, !23, i64 128, !10, i64 136, !23, i64 144, !22, i64 152, !18, i64 160, !10, i64 164, !10, i64 168, !24, i64 176, !24, i64 184, !24, i64 192, !25, i64 200, !26, i64 208, !27, i64 216, !22, i64 224, !24, i64 232, !24, i64 240, !28, i64 248, !18, i64 256, !24, i64 264, !28, i64 272, !23, i64 280, !23, i64 288, !29, i64 296, !29, i64 304, !10, i64 312, !24, i64 320, !24, i64 328, !24, i64 336, !25, i64 344, !26, i64 352, !27, i64 360, !22, i64 368, !24, i64 376, !24, i64 384, !28, i64 392, !18, i64 400, !24, i64 408, !28, i64 416}
!7 = !{!"_ZTSN10SimTKIpopt14HessianUpdaterE", !8, i64 0}
!8 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !9, i64 0, !13, i64 16, !15, i64 24, !16, i64 32, !17, i64 40, !18, i64 48}
!9 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !10, i64 8}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !14, i64 0}
!14 = !{!"any pointer", !11, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !14, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !14, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !14, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_27LowRankUpdateSymMatrixSpaceEEE", !14, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt24LimMemQuasiNewtonUpdater12LMUpdateTypeE", !11, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt24LimMemQuasiNewtonUpdater16LMInitializationE", !11, i64 0}
!22 = !{!"double", !11, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_6VectorEEE", !14, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_17MultiVectorMatrixEEE", !14, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_11DenseVectorEEE", !14, i64 0}
!26 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEE", !14, i64 0}
!27 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_6VectorEEE", !14, i64 0}
!28 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_14DenseSymMatrixEEE", !14, i64 0}
!29 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_6MatrixEEE", !14, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!6, !22, i64 152}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !12, i64 0}
!35 = !{!6, !22, i64 224}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass