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

; 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.43" = type { ptr }
%"class.SimTKIpopt::SmartPtr.44" = type { ptr }
%"class.SimTKIpopt::SmartPtr.45" = type { ptr }
%"class.SimTKIpopt::SmartPtr.46" = type { ptr }
%"class.SimTKIpopt::SmartPtr.47" = type { ptr }
%"class.SimTKIpopt::SmartPtr.48" = type { ptr }
%"class.SimTKIpopt::SmartPtr.29" = type { ptr }
%"class.SimTKIpopt::SmartPtr.59" = type { ptr }
%"class.SimTKIpopt::SmartPtr.37" = type { ptr }
%"class.SimTKIpopt::AugRestoSystemSolver" = type <{ %"class.SimTKIpopt::AugSystemSolver.base", [7 x i8], %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::SmartPtr.21", i8, [7 x i8] }>
%"class.SimTKIpopt::AugSystemSolver.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::CachedResults.20" = type { ptr, i32, ptr }
%"class.SimTKIpopt::SmartPtr.21" = type { ptr }

@_ZTIN10SimTKIpopt9SymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt17CompoundSymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt6VectorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt14CompoundVectorE = external constant ptr
@_ZTIN10SimTKIpopt6MatrixE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt14CompoundMatrixE = external constant ptr
@_ZTIN10SimTKIpopt12SumSymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10DiagMatrixE = external constant ptr
@_ZTIN10SimTKIpopt22LowRankUpdateSymMatrixE = external constant ptr

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt20AugRestoSystemSolver5SolveEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dPKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_RS4_SB_SB_SB_bi(ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, double noundef %9, ptr noundef %10, ptr noundef %11, double noundef %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, i1 noundef zeroext %21, i32 noundef %22) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca double, align 8
  %27 = alloca ptr, align 8
  %28 = alloca double, align 8
  %29 = alloca ptr, align 8
  %30 = alloca double, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca double, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca double, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i8, align 1
  %46 = alloca i32, align 4
  %47 = alloca %"class.SimTKIpopt::SmartPtr.43", align 8
  %48 = alloca %"class.SimTKIpopt::SmartPtr.44", align 8
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %52 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %53 = alloca %"class.SimTKIpopt::SmartPtr.44", align 8
  %54 = alloca %"class.SimTKIpopt::SmartPtr.46", align 8
  %55 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %56 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %57 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %58 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %59 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %60 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %61 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %62 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %63 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %64 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %65 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %66 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %67 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %68 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %69 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %70 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %71 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %72 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %73 = alloca %"class.SimTKIpopt::SmartPtr.29", align 8
  %74 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %75 = alloca %"class.SimTKIpopt::SmartPtr.59", align 8
  %76 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %77 = alloca double, align 8
  %78 = alloca double, align 8
  %79 = alloca %"class.SimTKIpopt::SmartPtr.29", align 8
  %80 = alloca double, align 8
  %81 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %82 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %83 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %84 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %85 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %86 = alloca ptr, align 8
  %87 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %88 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %89 = alloca double, align 8
  %90 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %91 = alloca double, align 8
  %92 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %93 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %94 = alloca double, align 8
  %95 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %96 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %97 = alloca double, align 8
  %98 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %99 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %100 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %101 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %102 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %103 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %104 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %105 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %106 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %107 = alloca ptr, align 8
  %108 = alloca ptr, align 8
  %109 = alloca ptr, align 8
  %110 = alloca i32, align 4
  %111 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %112 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %113 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %114 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %115 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %116 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %117 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %118 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  store ptr %0, ptr %24, align 8, !tbaa !5
  store ptr %1, ptr %25, align 8, !tbaa !5
  store double %2, ptr %26, align 8, !tbaa !9
  store ptr %3, ptr %27, align 8, !tbaa !5
  store double %4, ptr %28, align 8, !tbaa !9
  store ptr %5, ptr %29, align 8, !tbaa !5
  store double %6, ptr %30, align 8, !tbaa !9
  store ptr %7, ptr %31, align 8, !tbaa !5
  store ptr %8, ptr %32, align 8, !tbaa !5
  store double %9, ptr %33, align 8, !tbaa !9
  store ptr %10, ptr %34, align 8, !tbaa !5
  store ptr %11, ptr %35, align 8, !tbaa !5
  store double %12, ptr %36, align 8, !tbaa !9
  store ptr %13, ptr %37, align 8, !tbaa !5
  store ptr %14, ptr %38, align 8, !tbaa !5
  store ptr %15, ptr %39, align 8, !tbaa !5
  store ptr %16, ptr %40, align 8, !tbaa !5
  store ptr %17, ptr %41, align 8, !tbaa !5
  store ptr %18, ptr %42, align 8, !tbaa !5
  store ptr %19, ptr %43, align 8, !tbaa !5
  store ptr %20, ptr %44, align 8, !tbaa !5
  %119 = zext i1 %21 to i8
  store i8 %119, ptr %45, align 1, !tbaa !11
  store i32 %22, ptr %46, align 4, !tbaa !13
  %120 = load ptr, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %121 = load ptr, ptr %25, align 8, !tbaa !5
  %122 = icmp eq ptr %121, null
  br i1 %122, label %125, label %123

123:                                              ; preds = %23
  %124 = call ptr @__dynamic_cast(ptr %121, ptr @_ZTIN10SimTKIpopt9SymMatrixE, ptr @_ZTIN10SimTKIpopt17CompoundSymMatrixE, i64 0) #6
  br label %126

125:                                              ; preds = %23
  br label %126

126:                                              ; preds = %125, %123
  %127 = phi ptr [ %124, %123 ], [ null, %125 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %127)
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %128 = load ptr, ptr %27, align 8, !tbaa !5
  %129 = icmp eq ptr %128, null
  br i1 %129, label %132, label %130

130:                                              ; preds = %126
  %131 = call ptr @__dynamic_cast(ptr %128, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt14CompoundVectorE, i64 0) #6
  br label %133

132:                                              ; preds = %126
  br label %133

133:                                              ; preds = %132, %130
  %134 = phi ptr [ %131, %130 ], [ null, %132 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef %134)
          to label %135 unwind label %140

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %136 = load ptr, ptr %31, align 8, !tbaa !5
  %137 = icmp eq ptr %136, null
  br i1 %137, label %144, label %138

138:                                              ; preds = %135
  %139 = call ptr @__dynamic_cast(ptr %136, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt14CompoundMatrixE, i64 0) #6
  br label %145

140:                                              ; preds = %133
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %49, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %50, align 4
  br label %928

144:                                              ; preds = %135
  br label %145

145:                                              ; preds = %144, %138
  %146 = phi ptr [ %139, %138 ], [ null, %144 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef %146)
          to label %147 unwind label %152

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  %148 = load ptr, ptr %34, align 8, !tbaa !5
  %149 = icmp eq ptr %148, null
  br i1 %149, label %156, label %150

150:                                              ; preds = %147
  %151 = call ptr @__dynamic_cast(ptr %148, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt14CompoundMatrixE, i64 0) #6
  br label %157

152:                                              ; preds = %145
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %49, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %50, align 4
  br label %927

156:                                              ; preds = %147
  br label %157

157:                                              ; preds = %156, %150
  %158 = phi ptr [ %151, %150 ], [ null, %156 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef %158)
          to label %159 unwind label %164

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %160 = load ptr, ptr %37, align 8, !tbaa !5
  %161 = icmp eq ptr %160, null
  br i1 %161, label %168, label %162

162:                                              ; preds = %159
  %163 = call ptr @__dynamic_cast(ptr %160, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt14CompoundVectorE, i64 0) #6
  br label %169

164:                                              ; preds = %157
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %49, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %50, align 4
  br label %926

168:                                              ; preds = %159
  br label %169

169:                                              ; preds = %168, %162
  %170 = phi ptr [ %163, %162 ], [ null, %168 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef %170)
          to label %171 unwind label %176

171:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  %172 = load ptr, ptr %41, align 8, !tbaa !5
  %173 = icmp eq ptr %172, null
  br i1 %173, label %180, label %174

174:                                              ; preds = %171
  %175 = call ptr @__dynamic_cast(ptr %172, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt14CompoundVectorE, i64 0) #6
  br label %181

176:                                              ; preds = %169
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %49, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %50, align 4
  br label %925

180:                                              ; preds = %171
  br label %181

181:                                              ; preds = %180, %174
  %182 = phi ptr [ %175, %174 ], [ null, %180 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef %182)
          to label %183 unwind label %211

183:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %184 unwind label %215

184:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %185 unwind label %219

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %186 unwind label %223

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58)
          to label %187 unwind label %227

187:                                              ; preds = %186
  %188 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_14CompoundVectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %189 unwind label %231

189:                                              ; preds = %187
  br i1 %188, label %190, label %271

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  %191 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %192 unwind label %235

192:                                              ; preds = %190
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %59, ptr noundef nonnull align 8 dereferenceable(265) %191, i32 noundef 1)
          to label %193 unwind label %235

193:                                              ; preds = %192
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %195 unwind label %239

195:                                              ; preds = %193
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  %196 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %197 unwind label %244

197:                                              ; preds = %195
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %60, ptr noundef nonnull align 8 dereferenceable(265) %196, i32 noundef 2)
          to label %198 unwind label %244

198:                                              ; preds = %197
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %200 unwind label %248

200:                                              ; preds = %198
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  %201 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %202 unwind label %253

202:                                              ; preds = %200
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %61, ptr noundef nonnull align 8 dereferenceable(265) %201, i32 noundef 3)
          to label %203 unwind label %253

203:                                              ; preds = %202
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %205 unwind label %257

205:                                              ; preds = %203
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #6
  %206 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %207 unwind label %262

207:                                              ; preds = %205
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %62, ptr noundef nonnull align 8 dereferenceable(265) %206, i32 noundef 4)
          to label %208 unwind label %262

208:                                              ; preds = %207
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %62)
          to label %210 unwind label %266

210:                                              ; preds = %208
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  br label %271

211:                                              ; preds = %181
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %49, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %50, align 4
  br label %924

215:                                              ; preds = %183
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %49, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %50, align 4
  br label %923

219:                                              ; preds = %184
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %49, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %50, align 4
  br label %922

223:                                              ; preds = %185
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %49, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %50, align 4
  br label %921

227:                                              ; preds = %186
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %49, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %50, align 4
  br label %920

231:                                              ; preds = %187
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %49, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %50, align 4
  br label %919

235:                                              ; preds = %192, %190
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %49, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %50, align 4
  br label %243

239:                                              ; preds = %193
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %49, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  br label %243

243:                                              ; preds = %239, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  br label %919

244:                                              ; preds = %197, %195
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %49, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %50, align 4
  br label %252

248:                                              ; preds = %198
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %49, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %60) #6
  br label %252

252:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  br label %919

253:                                              ; preds = %202, %200
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %49, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %50, align 4
  br label %261

257:                                              ; preds = %203
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %49, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #6
  br label %261

261:                                              ; preds = %257, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  br label %919

262:                                              ; preds = %207, %205
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %49, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %50, align 4
  br label %270

266:                                              ; preds = %208
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %49, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #6
  br label %270

270:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  br label %919

271:                                              ; preds = %210, %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #6
  %272 = load double, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #6
  %273 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %274 unwind label %316

274:                                              ; preds = %271
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %64, ptr noundef nonnull align 8 dereferenceable(265) %273, i32 noundef 1)
          to label %275 unwind label %316

275:                                              ; preds = %274
  %276 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %277 unwind label %320

277:                                              ; preds = %275
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_n_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %63, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %55, double noundef %272, ptr noundef nonnull align 8 dereferenceable(205) %276)
          to label %278 unwind label %320

278:                                              ; preds = %277
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %64) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #6
  %279 = load double, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #6
  %280 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %281 unwind label %325

281:                                              ; preds = %278
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %66, ptr noundef nonnull align 8 dereferenceable(265) %280, i32 noundef 2)
          to label %282 unwind label %325

282:                                              ; preds = %281
  %283 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %284 unwind label %329

284:                                              ; preds = %282
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_p_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %65, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %56, double noundef %279, ptr noundef nonnull align 8 dereferenceable(205) %283)
          to label %285 unwind label %329

285:                                              ; preds = %284
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #6
  %286 = load double, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #6
  %287 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %288 unwind label %334

288:                                              ; preds = %285
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %68, ptr noundef nonnull align 8 dereferenceable(265) %287, i32 noundef 3)
          to label %289 unwind label %334

289:                                              ; preds = %288
  %290 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %291 unwind label %338

291:                                              ; preds = %289
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_n_d_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %67, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %286, ptr noundef nonnull align 8 dereferenceable(205) %290)
          to label %292 unwind label %338

292:                                              ; preds = %291
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #6
  %293 = load double, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #6
  %294 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %295 unwind label %343

295:                                              ; preds = %292
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %70, ptr noundef nonnull align 8 dereferenceable(265) %294, i32 noundef 4)
          to label %296 unwind label %343

296:                                              ; preds = %295
  %297 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %298 unwind label %347

298:                                              ; preds = %296
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_p_d_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %69, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %58, double noundef %293, ptr noundef nonnull align 8 dereferenceable(205) %297)
          to label %299 unwind label %347

299:                                              ; preds = %298
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %70) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #6
  %300 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %301 unwind label %352

301:                                              ; preds = %299
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %71, ptr noundef nonnull align 8 dereferenceable(129) %300, i32 noundef 0, i32 noundef 3)
          to label %302 unwind label %352

302:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #6
  %303 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %304 unwind label %356

304:                                              ; preds = %302
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %72, ptr noundef nonnull align 8 dereferenceable(129) %303, i32 noundef 0, i32 noundef 4)
          to label %305 unwind label %356

305:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %306 unwind label %360

306:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %307 unwind label %364

307:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #6
  %308 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %309 unwind label %368

309:                                              ; preds = %307
  invoke void @_ZNK10SimTKIpopt17CompoundSymMatrix7GetCompEii(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %76, ptr noundef nonnull align 8 dereferenceable(137) %308, i32 noundef 0, i32 noundef 0)
          to label %310 unwind label %368

310:                                              ; preds = %309
  %311 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %312 unwind label %372

312:                                              ; preds = %310
  %313 = icmp eq ptr %311, null
  br i1 %313, label %376, label %314

314:                                              ; preds = %312
  %315 = call ptr @__dynamic_cast(ptr %311, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt12SumSymMatrixE, i64 0) #6
  br label %377

316:                                              ; preds = %274, %271
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %49, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %50, align 4
  br label %324

320:                                              ; preds = %277, %275
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %49, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %64) #6
  br label %324

324:                                              ; preds = %320, %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  br label %918

325:                                              ; preds = %281, %278
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %49, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %50, align 4
  br label %333

329:                                              ; preds = %284, %282
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %49, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #6
  br label %333

333:                                              ; preds = %329, %325
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  br label %917

334:                                              ; preds = %288, %285
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %49, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %50, align 4
  br label %342

338:                                              ; preds = %291, %289
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %49, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #6
  br label %342

342:                                              ; preds = %338, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  br label %916

343:                                              ; preds = %295, %292
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %49, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %50, align 4
  br label %351

347:                                              ; preds = %298, %296
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %49, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %70) #6
  br label %351

351:                                              ; preds = %347, %343
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  br label %915

352:                                              ; preds = %301, %299
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %49, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %50, align 4
  br label %914

356:                                              ; preds = %304, %302
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %49, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %50, align 4
  br label %913

360:                                              ; preds = %305
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %49, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %50, align 4
  br label %912

364:                                              ; preds = %306
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %49, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %50, align 4
  br label %911

368:                                              ; preds = %309, %307
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %49, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %50, align 4
  br label %399

372:                                              ; preds = %377, %310
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %49, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76) #6
  br label %399

376:                                              ; preds = %312
  br label %377

377:                                              ; preds = %376, %314
  %378 = phi ptr [ %315, %314 ], [ null, %376 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef %378)
          to label %379 unwind label %372

379:                                              ; preds = %377
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #6
  %380 = load double, ptr %26, align 8, !tbaa !9
  store double %380, ptr %77, align 8, !tbaa !9
  %381 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_12SumSymMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %382 unwind label %400

382:                                              ; preds = %379
  br i1 %381, label %383, label %482

383:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #6
  %384 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %385 unwind label %404

385:                                              ; preds = %383
  invoke void @_ZNK10SimTKIpopt12SumSymMatrix7GetTermEiRdRNS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(136) %384, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %386 unwind label %404

386:                                              ; preds = %385
  %387 = load double, ptr %78, align 8, !tbaa !9
  %388 = load double, ptr %26, align 8, !tbaa !9
  %389 = fmul double %387, %388
  store double %389, ptr %77, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79)
          to label %390 unwind label %408

390:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #6
  %391 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %392 unwind label %412

392:                                              ; preds = %390
  invoke void @_ZNK10SimTKIpopt12SumSymMatrix7GetTermEiRdRNS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(136) %391, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 8 dereferenceable(8) %79)
          to label %393 unwind label %412

393:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #6
  %394 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_9SymMatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %79)
          to label %395 unwind label %416

395:                                              ; preds = %393
  %396 = icmp eq ptr %394, null
  br i1 %396, label %420, label %397

397:                                              ; preds = %395
  %398 = call ptr @__dynamic_cast(ptr %394, ptr @_ZTIN10SimTKIpopt9SymMatrixE, ptr @_ZTIN10SimTKIpopt10DiagMatrixE, i64 0) #6
  br label %421

399:                                              ; preds = %372, %368
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #6
  br label %910

400:                                              ; preds = %379
  %401 = landingpad { ptr, i32 }
          cleanup
  %402 = extractvalue { ptr, i32 } %401, 0
  store ptr %402, ptr %49, align 8
  %403 = extractvalue { ptr, i32 } %401, 1
  store i32 %403, ptr %50, align 4
  br label %909

404:                                              ; preds = %385, %383
  %405 = landingpad { ptr, i32 }
          cleanup
  %406 = extractvalue { ptr, i32 } %405, 0
  store ptr %406, ptr %49, align 8
  %407 = extractvalue { ptr, i32 } %405, 1
  store i32 %407, ptr %50, align 4
  br label %481

408:                                              ; preds = %386
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %49, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %50, align 4
  br label %480

412:                                              ; preds = %392, %390
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %49, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %50, align 4
  br label %479

416:                                              ; preds = %421, %393
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %49, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %50, align 4
  br label %478

420:                                              ; preds = %395
  br label %421

421:                                              ; preds = %420, %397
  %422 = phi ptr [ %398, %397 ], [ null, %420 ]
  invoke void @_ZNK10SimTKIpopt10DiagMatrix7GetDiagEv(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %81, ptr noundef nonnull align 8 dereferenceable(88) %422)
          to label %423 unwind label %416

423:                                              ; preds = %421
  %424 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_14CompoundVectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %425 unwind label %436

425:                                              ; preds = %423
  br i1 %424, label %426, label %454

426:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #6
  %427 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %428 unwind label %440

428:                                              ; preds = %426
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %83, ptr noundef nonnull align 8 dereferenceable(265) %427, i32 noundef 0)
          to label %429 unwind label %440

429:                                              ; preds = %428
  %430 = load double, ptr %80, align 8, !tbaa !9
  %431 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
          to label %432 unwind label %444

432:                                              ; preds = %429
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver13D_x_plus_wr_dERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %82, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %83, double noundef %430, ptr noundef nonnull align 8 dereferenceable(205) %431)
          to label %433 unwind label %444

433:                                              ; preds = %432
  %434 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %82)
          to label %435 unwind label %448

435:                                              ; preds = %433
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #6
  br label %476

436:                                              ; preds = %423
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %49, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %50, align 4
  br label %477

440:                                              ; preds = %428, %426
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %49, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %50, align 4
  br label %453

444:                                              ; preds = %432, %429
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %49, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %50, align 4
  br label %452

448:                                              ; preds = %433
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %49, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #6
  br label %452

452:                                              ; preds = %448, %444
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #6
  br label %453

453:                                              ; preds = %452, %440
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #6
  br label %477

454:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef null)
          to label %455 unwind label %462

455:                                              ; preds = %454
  %456 = load double, ptr %80, align 8, !tbaa !9
  %457 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
          to label %458 unwind label %466

458:                                              ; preds = %455
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver13D_x_plus_wr_dERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %84, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %85, double noundef %456, ptr noundef nonnull align 8 dereferenceable(205) %457)
          to label %459 unwind label %466

459:                                              ; preds = %458
  %460 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %84)
          to label %461 unwind label %470

461:                                              ; preds = %459
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %84) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %85) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #6
  br label %476

462:                                              ; preds = %454
  %463 = landingpad { ptr, i32 }
          cleanup
  %464 = extractvalue { ptr, i32 } %463, 0
  store ptr %464, ptr %49, align 8
  %465 = extractvalue { ptr, i32 } %463, 1
  store i32 %465, ptr %50, align 4
  br label %475

466:                                              ; preds = %458, %455
  %467 = landingpad { ptr, i32 }
          cleanup
  %468 = extractvalue { ptr, i32 } %467, 0
  store ptr %468, ptr %49, align 8
  %469 = extractvalue { ptr, i32 } %467, 1
  store i32 %469, ptr %50, align 4
  br label %474

470:                                              ; preds = %459
  %471 = landingpad { ptr, i32 }
          cleanup
  %472 = extractvalue { ptr, i32 } %471, 0
  store ptr %472, ptr %49, align 8
  %473 = extractvalue { ptr, i32 } %471, 1
  store i32 %473, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %84) #6
  br label %474

474:                                              ; preds = %470, %466
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %85) #6
  br label %475

475:                                              ; preds = %474, %462
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #6
  br label %477

476:                                              ; preds = %461, %435
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %81) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #6
  br label %532

477:                                              ; preds = %475, %453, %436
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %81) #6
  br label %478

478:                                              ; preds = %477, %416
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #6
  br label %479

479:                                              ; preds = %478, %412
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #6
  br label %480

480:                                              ; preds = %479, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #6
  br label %481

481:                                              ; preds = %480, %404
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #6
  br label %909

482:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 8, ptr %86) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %87) #6
  %483 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %484 unwind label %491

484:                                              ; preds = %482
  invoke void @_ZNK10SimTKIpopt17CompoundSymMatrix7GetCompEii(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %87, ptr noundef nonnull align 8 dereferenceable(137) %483, i32 noundef 0, i32 noundef 0)
          to label %485 unwind label %491

485:                                              ; preds = %484
  %486 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %487 unwind label %495

487:                                              ; preds = %485
  %488 = icmp eq ptr %486, null
  br i1 %488, label %499, label %489

489:                                              ; preds = %487
  %490 = call ptr @__dynamic_cast(ptr %486, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt22LowRankUpdateSymMatrixE, i64 0) #6
  br label %500

491:                                              ; preds = %484, %482
  %492 = landingpad { ptr, i32 }
          cleanup
  %493 = extractvalue { ptr, i32 } %492, 0
  store ptr %493, ptr %49, align 8
  %494 = extractvalue { ptr, i32 } %492, 1
  store i32 %494, ptr %50, align 4
  br label %513

495:                                              ; preds = %485
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %49, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %87) #6
  br label %513

499:                                              ; preds = %487
  br label %500

500:                                              ; preds = %499, %489
  %501 = phi ptr [ %490, %489 ], [ null, %499 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %87) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #6
  store ptr %501, ptr %86, align 8, !tbaa !5
  %502 = load ptr, ptr %86, align 8, !tbaa !5
  %503 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef %502)
          to label %504 unwind label %514

504:                                              ; preds = %500
  %505 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_14CompoundVectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %506 unwind label %514

506:                                              ; preds = %504
  br i1 %505, label %507, label %527

507:                                              ; preds = %506
  call void @llvm.lifetime.start.p0(i64 8, ptr %88) #6
  %508 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %509 unwind label %518

509:                                              ; preds = %507
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %88, ptr noundef nonnull align 8 dereferenceable(265) %508, i32 noundef 0)
          to label %510 unwind label %518

510:                                              ; preds = %509
  %511 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %512 unwind label %522

512:                                              ; preds = %510
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %88) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #6
  br label %530

513:                                              ; preds = %495, %491
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #6
  br label %531

514:                                              ; preds = %527, %504, %500
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %49, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %50, align 4
  br label %531

518:                                              ; preds = %509, %507
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %49, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %50, align 4
  br label %526

522:                                              ; preds = %510
  %523 = landingpad { ptr, i32 }
          cleanup
  %524 = extractvalue { ptr, i32 } %523, 0
  store ptr %524, ptr %49, align 8
  %525 = extractvalue { ptr, i32 } %523, 1
  store i32 %525, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %88) #6
  br label %526

526:                                              ; preds = %522, %518
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #6
  br label %531

527:                                              ; preds = %506
  %528 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef null)
          to label %529 unwind label %514

529:                                              ; preds = %527
  br label %530

530:                                              ; preds = %529, %512
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #6
  br label %532

531:                                              ; preds = %526, %514, %513
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #6
  br label %909

532:                                              ; preds = %530, %476
  call void @llvm.lifetime.start.p0(i64 8, ptr %89) #6
  %533 = load double, ptr %28, align 8, !tbaa !9
  store double %533, ptr %89, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %90) #6
  %534 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef %534)
          to label %535 unwind label %663

535:                                              ; preds = %532
  call void @llvm.lifetime.start.p0(i64 8, ptr %91) #6
  %536 = load double, ptr %30, align 8, !tbaa !9
  store double %536, ptr %91, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %92) #6
  %537 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %538 unwind label %667

538:                                              ; preds = %535
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %92, ptr noundef nonnull align 8 dereferenceable(129) %537, i32 noundef 0, i32 noundef 0)
          to label %539 unwind label %667

539:                                              ; preds = %538
  call void @llvm.lifetime.start.p0(i64 8, ptr %93) #6
  %540 = load ptr, ptr %32, align 8, !tbaa !5
  %541 = load ptr, ptr %39, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver20Neg_Omega_c_plus_D_cERKNS_8SmartPtrIKNS_6VectorEEES6_PS3_RS3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %93, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef %540, ptr noundef nonnull align 8 dereferenceable(205) %541)
          to label %542 unwind label %671

542:                                              ; preds = %539
  call void @llvm.lifetime.start.p0(i64 8, ptr %94) #6
  %543 = load double, ptr %33, align 8, !tbaa !9
  store double %543, ptr %94, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %95) #6
  %544 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %545 unwind label %675

545:                                              ; preds = %542
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %95, ptr noundef nonnull align 8 dereferenceable(129) %544, i32 noundef 0, i32 noundef 0)
          to label %546 unwind label %675

546:                                              ; preds = %545
  call void @llvm.lifetime.start.p0(i64 8, ptr %96) #6
  %547 = invoke noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %548 unwind label %679

548:                                              ; preds = %546
  %549 = invoke noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %550 unwind label %679

550:                                              ; preds = %548
  %551 = load ptr, ptr %35, align 8, !tbaa !5
  %552 = load ptr, ptr %40, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver20Neg_Omega_d_plus_D_dERKNS_6MatrixERKNS_8SmartPtrIKNS_6VectorEEES3_S9_PS6_RS6_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %96, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(69) %547, ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(69) %549, ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef %551, ptr noundef nonnull align 8 dereferenceable(205) %552)
          to label %553 unwind label %679

553:                                              ; preds = %550
  call void @llvm.lifetime.start.p0(i64 8, ptr %97) #6
  %554 = load double, ptr %36, align 8, !tbaa !9
  store double %554, ptr %97, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %98) #6
  %555 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %556 unwind label %683

556:                                              ; preds = %553
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %98, ptr noundef nonnull align 8 dereferenceable(265) %555, i32 noundef 0)
          to label %557 unwind label %683

557:                                              ; preds = %556
  call void @llvm.lifetime.start.p0(i64 8, ptr %99) #6
  %558 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef %558)
          to label %559 unwind label %687

559:                                              ; preds = %557
  call void @llvm.lifetime.start.p0(i64 8, ptr %100) #6
  %560 = load ptr, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %101) #6
  %561 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %562 unwind label %691

562:                                              ; preds = %559
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %101, ptr noundef nonnull align 8 dereferenceable(265) %561, i32 noundef 1)
          to label %563 unwind label %691

563:                                              ; preds = %562
  %564 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %101)
          to label %565 unwind label %695

565:                                              ; preds = %563
  call void @llvm.lifetime.start.p0(i64 8, ptr %102) #6
  %566 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %567 unwind label %699

567:                                              ; preds = %565
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %102, ptr noundef nonnull align 8 dereferenceable(265) %566, i32 noundef 2)
          to label %568 unwind label %699

568:                                              ; preds = %567
  %569 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %570 unwind label %703

570:                                              ; preds = %568
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver6Rhs_cRERKNS_6VectorERKNS_8SmartPtrIS2_EES3_S7_S3_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %100, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(205) %560, ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(205) %564, ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(205) %569)
          to label %571 unwind label %703

571:                                              ; preds = %570
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %102) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %102) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %101) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %101) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %103) #6
  %572 = load ptr, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %104) #6
  %573 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %574 unwind label %710

574:                                              ; preds = %571
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %104, ptr noundef nonnull align 8 dereferenceable(265) %573, i32 noundef 3)
          to label %575 unwind label %710

575:                                              ; preds = %574
  %576 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %104)
          to label %577 unwind label %714

577:                                              ; preds = %575
  %578 = invoke noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %579 unwind label %714

579:                                              ; preds = %577
  call void @llvm.lifetime.start.p0(i64 8, ptr %105) #6
  %580 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %581 unwind label %718

581:                                              ; preds = %579
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %105, ptr noundef nonnull align 8 dereferenceable(265) %580, i32 noundef 4)
          to label %582 unwind label %718

582:                                              ; preds = %581
  %583 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %105)
          to label %584 unwind label %722

584:                                              ; preds = %582
  %585 = invoke noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %586 unwind label %722

586:                                              ; preds = %584
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver6Rhs_dRERKNS_6VectorERKNS_8SmartPtrIS2_EES3_RKNS_6MatrixES7_S3_SA_(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %103, ptr noundef nonnull align 8 dereferenceable(281) %120, ptr noundef nonnull align 8 dereferenceable(205) %572, ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(205) %576, ptr noundef nonnull align 8 dereferenceable(69) %578, ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(205) %583, ptr noundef nonnull align 8 dereferenceable(69) %585)
          to label %587 unwind label %722

587:                                              ; preds = %586
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %105) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %104) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %106) #6
  %588 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %589 unwind label %729

589:                                              ; preds = %587
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %106, ptr noundef nonnull align 8 dereferenceable(265) %588, i32 noundef 0)
          to label %590 unwind label %729

590:                                              ; preds = %589
  call void @llvm.lifetime.start.p0(i64 8, ptr %107) #6
  %591 = load ptr, ptr %42, align 8, !tbaa !5
  store ptr %591, ptr %107, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %108) #6
  %592 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %592, ptr %108, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %109) #6
  %593 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %593, ptr %109, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %110) #6
  %594 = getelementptr inbounds %"class.SimTKIpopt::AugRestoSystemSolver", ptr %120, i32 0, i32 11
  %595 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15AugSystemSolverEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %594)
          to label %596 unwind label %733

596:                                              ; preds = %590
  %597 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_9SymMatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %598 unwind label %733

598:                                              ; preds = %596
  %599 = load double, ptr %77, align 8, !tbaa !9
  %600 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %601 unwind label %733

601:                                              ; preds = %598
  %602 = load double, ptr %89, align 8, !tbaa !9
  %603 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %604 unwind label %733

604:                                              ; preds = %601
  %605 = load double, ptr %91, align 8, !tbaa !9
  %606 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %92)
          to label %607 unwind label %733

607:                                              ; preds = %604
  %608 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %93)
          to label %609 unwind label %733

609:                                              ; preds = %607
  %610 = load double, ptr %94, align 8, !tbaa !9
  %611 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %95)
          to label %612 unwind label %733

612:                                              ; preds = %609
  %613 = invoke noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %96)
          to label %614 unwind label %733

614:                                              ; preds = %612
  %615 = load double, ptr %97, align 8, !tbaa !9
  %616 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %98)
          to label %617 unwind label %733

617:                                              ; preds = %614
  %618 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %99)
          to label %619 unwind label %733

619:                                              ; preds = %617
  %620 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %100)
          to label %621 unwind label %733

621:                                              ; preds = %619
  %622 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %623 unwind label %733

623:                                              ; preds = %621
  %624 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %106)
          to label %625 unwind label %733

625:                                              ; preds = %623
  %626 = load ptr, ptr %107, align 8, !tbaa !5
  %627 = load ptr, ptr %108, align 8, !tbaa !5
  %628 = load ptr, ptr %109, align 8, !tbaa !5
  %629 = load i8, ptr %45, align 1, !tbaa !11, !range !15, !noundef !16
  %630 = trunc i8 %629 to i1
  %631 = load i32, ptr %46, align 4, !tbaa !13
  %632 = load ptr, ptr %595, align 8, !tbaa !17
  %633 = getelementptr inbounds ptr, ptr %632, i64 3
  %634 = load ptr, ptr %633, align 8
  %635 = invoke noundef i32 %634(ptr noundef nonnull align 8 dereferenceable(49) %595, ptr noundef %597, double noundef %599, ptr noundef %600, double noundef %602, ptr noundef %603, double noundef %605, ptr noundef %606, ptr noundef %608, double noundef %610, ptr noundef %611, ptr noundef %613, double noundef %615, ptr noundef nonnull align 8 dereferenceable(205) %616, ptr noundef nonnull align 8 dereferenceable(205) %618, ptr noundef nonnull align 8 dereferenceable(205) %620, ptr noundef nonnull align 8 dereferenceable(205) %622, ptr noundef nonnull align 8 dereferenceable(205) %624, ptr noundef nonnull align 8 dereferenceable(205) %626, ptr noundef nonnull align 8 dereferenceable(205) %627, ptr noundef nonnull align 8 dereferenceable(205) %628, i1 noundef zeroext %630, i32 noundef %631)
          to label %636 unwind label %733

636:                                              ; preds = %625
  store i32 %635, ptr %110, align 4, !tbaa !19
  %637 = load i32, ptr %110, align 4, !tbaa !19
  %638 = icmp eq i32 %637, 0
  br i1 %638, label %639, label %896

639:                                              ; preds = %636
  call void @llvm.lifetime.start.p0(i64 8, ptr %111) #6
  %640 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %641 unwind label %737

641:                                              ; preds = %639
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %111, ptr noundef nonnull align 8 dereferenceable(265) %640, i32 noundef 1)
          to label %642 unwind label %737

642:                                              ; preds = %641
  %643 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %111)
          to label %644 unwind label %741

644:                                              ; preds = %642
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %643, double noundef 0.000000e+00)
          to label %645 unwind label %741

645:                                              ; preds = %644
  %646 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %647 unwind label %741

647:                                              ; preds = %645
  br i1 %646, label %648, label %754

648:                                              ; preds = %647
  %649 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %111)
          to label %650 unwind label %741

650:                                              ; preds = %648
  call void @llvm.lifetime.start.p0(i64 8, ptr %112) #6
  %651 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %652 unwind label %745

652:                                              ; preds = %650
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %112, ptr noundef nonnull align 8 dereferenceable(265) %651, i32 noundef 1)
          to label %653 unwind label %745

653:                                              ; preds = %652
  %654 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %112)
          to label %655 unwind label %749

655:                                              ; preds = %653
  %656 = load ptr, ptr %108, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt6Vector13AddTwoVectorsEdRKS0_dS2_d(ptr noundef nonnull align 8 dereferenceable(205) %649, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %654, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %656, double noundef 0.000000e+00)
          to label %657 unwind label %749

657:                                              ; preds = %655
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %112) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #6
  %658 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %111)
          to label %659 unwind label %741

659:                                              ; preds = %657
  %660 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %661 unwind label %741

661:                                              ; preds = %659
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %658, ptr noundef nonnull align 8 dereferenceable(205) %660)
          to label %662 unwind label %741

662:                                              ; preds = %661
  br label %754

663:                                              ; preds = %532
  %664 = landingpad { ptr, i32 }
          cleanup
  %665 = extractvalue { ptr, i32 } %664, 0
  store ptr %665, ptr %49, align 8
  %666 = extractvalue { ptr, i32 } %664, 1
  store i32 %666, ptr %50, align 4
  br label %908

667:                                              ; preds = %538, %535
  %668 = landingpad { ptr, i32 }
          cleanup
  %669 = extractvalue { ptr, i32 } %668, 0
  store ptr %669, ptr %49, align 8
  %670 = extractvalue { ptr, i32 } %668, 1
  store i32 %670, ptr %50, align 4
  br label %907

671:                                              ; preds = %539
  %672 = landingpad { ptr, i32 }
          cleanup
  %673 = extractvalue { ptr, i32 } %672, 0
  store ptr %673, ptr %49, align 8
  %674 = extractvalue { ptr, i32 } %672, 1
  store i32 %674, ptr %50, align 4
  br label %906

675:                                              ; preds = %545, %542
  %676 = landingpad { ptr, i32 }
          cleanup
  %677 = extractvalue { ptr, i32 } %676, 0
  store ptr %677, ptr %49, align 8
  %678 = extractvalue { ptr, i32 } %676, 1
  store i32 %678, ptr %50, align 4
  br label %905

679:                                              ; preds = %550, %548, %546
  %680 = landingpad { ptr, i32 }
          cleanup
  %681 = extractvalue { ptr, i32 } %680, 0
  store ptr %681, ptr %49, align 8
  %682 = extractvalue { ptr, i32 } %680, 1
  store i32 %682, ptr %50, align 4
  br label %904

683:                                              ; preds = %556, %553
  %684 = landingpad { ptr, i32 }
          cleanup
  %685 = extractvalue { ptr, i32 } %684, 0
  store ptr %685, ptr %49, align 8
  %686 = extractvalue { ptr, i32 } %684, 1
  store i32 %686, ptr %50, align 4
  br label %903

687:                                              ; preds = %557
  %688 = landingpad { ptr, i32 }
          cleanup
  %689 = extractvalue { ptr, i32 } %688, 0
  store ptr %689, ptr %49, align 8
  %690 = extractvalue { ptr, i32 } %688, 1
  store i32 %690, ptr %50, align 4
  br label %902

691:                                              ; preds = %562, %559
  %692 = landingpad { ptr, i32 }
          cleanup
  %693 = extractvalue { ptr, i32 } %692, 0
  store ptr %693, ptr %49, align 8
  %694 = extractvalue { ptr, i32 } %692, 1
  store i32 %694, ptr %50, align 4
  br label %709

695:                                              ; preds = %563
  %696 = landingpad { ptr, i32 }
          cleanup
  %697 = extractvalue { ptr, i32 } %696, 0
  store ptr %697, ptr %49, align 8
  %698 = extractvalue { ptr, i32 } %696, 1
  store i32 %698, ptr %50, align 4
  br label %708

699:                                              ; preds = %567, %565
  %700 = landingpad { ptr, i32 }
          cleanup
  %701 = extractvalue { ptr, i32 } %700, 0
  store ptr %701, ptr %49, align 8
  %702 = extractvalue { ptr, i32 } %700, 1
  store i32 %702, ptr %50, align 4
  br label %707

703:                                              ; preds = %570, %568
  %704 = landingpad { ptr, i32 }
          cleanup
  %705 = extractvalue { ptr, i32 } %704, 0
  store ptr %705, ptr %49, align 8
  %706 = extractvalue { ptr, i32 } %704, 1
  store i32 %706, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %102) #6
  br label %707

707:                                              ; preds = %703, %699
  call void @llvm.lifetime.end.p0(i64 8, ptr %102) #6
  br label %708

708:                                              ; preds = %707, %695
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %101) #6
  br label %709

709:                                              ; preds = %708, %691
  call void @llvm.lifetime.end.p0(i64 8, ptr %101) #6
  br label %901

710:                                              ; preds = %574, %571
  %711 = landingpad { ptr, i32 }
          cleanup
  %712 = extractvalue { ptr, i32 } %711, 0
  store ptr %712, ptr %49, align 8
  %713 = extractvalue { ptr, i32 } %711, 1
  store i32 %713, ptr %50, align 4
  br label %728

714:                                              ; preds = %577, %575
  %715 = landingpad { ptr, i32 }
          cleanup
  %716 = extractvalue { ptr, i32 } %715, 0
  store ptr %716, ptr %49, align 8
  %717 = extractvalue { ptr, i32 } %715, 1
  store i32 %717, ptr %50, align 4
  br label %727

718:                                              ; preds = %581, %579
  %719 = landingpad { ptr, i32 }
          cleanup
  %720 = extractvalue { ptr, i32 } %719, 0
  store ptr %720, ptr %49, align 8
  %721 = extractvalue { ptr, i32 } %719, 1
  store i32 %721, ptr %50, align 4
  br label %726

722:                                              ; preds = %586, %584, %582
  %723 = landingpad { ptr, i32 }
          cleanup
  %724 = extractvalue { ptr, i32 } %723, 0
  store ptr %724, ptr %49, align 8
  %725 = extractvalue { ptr, i32 } %723, 1
  store i32 %725, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %105) #6
  br label %726

726:                                              ; preds = %722, %718
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #6
  br label %727

727:                                              ; preds = %726, %714
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %104) #6
  br label %728

728:                                              ; preds = %727, %710
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #6
  br label %900

729:                                              ; preds = %589, %587
  %730 = landingpad { ptr, i32 }
          cleanup
  %731 = extractvalue { ptr, i32 } %730, 0
  store ptr %731, ptr %49, align 8
  %732 = extractvalue { ptr, i32 } %730, 1
  store i32 %732, ptr %50, align 4
  br label %899

733:                                              ; preds = %625, %623, %621, %619, %617, %614, %612, %609, %607, %604, %601, %598, %596, %590
  %734 = landingpad { ptr, i32 }
          cleanup
  %735 = extractvalue { ptr, i32 } %734, 0
  store ptr %735, ptr %49, align 8
  %736 = extractvalue { ptr, i32 } %734, 1
  store i32 %736, ptr %50, align 4
  br label %898

737:                                              ; preds = %641, %639
  %738 = landingpad { ptr, i32 }
          cleanup
  %739 = extractvalue { ptr, i32 } %738, 0
  store ptr %739, ptr %49, align 8
  %740 = extractvalue { ptr, i32 } %738, 1
  store i32 %740, ptr %50, align 4
  br label %895

741:                                              ; preds = %661, %659, %657, %648, %645, %644, %642
  %742 = landingpad { ptr, i32 }
          cleanup
  %743 = extractvalue { ptr, i32 } %742, 0
  store ptr %743, ptr %49, align 8
  %744 = extractvalue { ptr, i32 } %742, 1
  store i32 %744, ptr %50, align 4
  br label %894

745:                                              ; preds = %652, %650
  %746 = landingpad { ptr, i32 }
          cleanup
  %747 = extractvalue { ptr, i32 } %746, 0
  store ptr %747, ptr %49, align 8
  %748 = extractvalue { ptr, i32 } %746, 1
  store i32 %748, ptr %50, align 4
  br label %753

749:                                              ; preds = %655, %653
  %750 = landingpad { ptr, i32 }
          cleanup
  %751 = extractvalue { ptr, i32 } %750, 0
  store ptr %751, ptr %49, align 8
  %752 = extractvalue { ptr, i32 } %750, 1
  store i32 %752, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %112) #6
  br label %753

753:                                              ; preds = %749, %745
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #6
  br label %894

754:                                              ; preds = %662, %647
  call void @llvm.lifetime.start.p0(i64 8, ptr %113) #6
  %755 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %756 unwind label %778

756:                                              ; preds = %754
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %113, ptr noundef nonnull align 8 dereferenceable(265) %755, i32 noundef 2)
          to label %757 unwind label %778

757:                                              ; preds = %756
  %758 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %759 unwind label %782

759:                                              ; preds = %757
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %758, double noundef 0.000000e+00)
          to label %760 unwind label %782

760:                                              ; preds = %759
  %761 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %762 unwind label %782

762:                                              ; preds = %760
  br i1 %761, label %763, label %795

763:                                              ; preds = %762
  %764 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %765 unwind label %782

765:                                              ; preds = %763
  call void @llvm.lifetime.start.p0(i64 8, ptr %114) #6
  %766 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %767 unwind label %786

767:                                              ; preds = %765
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %114, ptr noundef nonnull align 8 dereferenceable(265) %766, i32 noundef 2)
          to label %768 unwind label %786

768:                                              ; preds = %767
  %769 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %114)
          to label %770 unwind label %790

770:                                              ; preds = %768
  %771 = load ptr, ptr %108, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt6Vector13AddTwoVectorsEdRKS0_dS2_d(ptr noundef nonnull align 8 dereferenceable(205) %764, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %769, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %771, double noundef 0.000000e+00)
          to label %772 unwind label %790

772:                                              ; preds = %770
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %114) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #6
  %773 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %774 unwind label %782

774:                                              ; preds = %772
  %775 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %776 unwind label %782

776:                                              ; preds = %774
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %773, ptr noundef nonnull align 8 dereferenceable(205) %775)
          to label %777 unwind label %782

777:                                              ; preds = %776
  br label %795

778:                                              ; preds = %756, %754
  %779 = landingpad { ptr, i32 }
          cleanup
  %780 = extractvalue { ptr, i32 } %779, 0
  store ptr %780, ptr %49, align 8
  %781 = extractvalue { ptr, i32 } %779, 1
  store i32 %781, ptr %50, align 4
  br label %893

782:                                              ; preds = %776, %774, %772, %763, %760, %759, %757
  %783 = landingpad { ptr, i32 }
          cleanup
  %784 = extractvalue { ptr, i32 } %783, 0
  store ptr %784, ptr %49, align 8
  %785 = extractvalue { ptr, i32 } %783, 1
  store i32 %785, ptr %50, align 4
  br label %892

786:                                              ; preds = %767, %765
  %787 = landingpad { ptr, i32 }
          cleanup
  %788 = extractvalue { ptr, i32 } %787, 0
  store ptr %788, ptr %49, align 8
  %789 = extractvalue { ptr, i32 } %787, 1
  store i32 %789, ptr %50, align 4
  br label %794

790:                                              ; preds = %770, %768
  %791 = landingpad { ptr, i32 }
          cleanup
  %792 = extractvalue { ptr, i32 } %791, 0
  store ptr %792, ptr %49, align 8
  %793 = extractvalue { ptr, i32 } %791, 1
  store i32 %793, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %114) #6
  br label %794

794:                                              ; preds = %790, %786
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #6
  br label %892

795:                                              ; preds = %777, %762
  call void @llvm.lifetime.start.p0(i64 8, ptr %115) #6
  %796 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %797 unwind label %824

797:                                              ; preds = %795
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %115, ptr noundef nonnull align 8 dereferenceable(265) %796, i32 noundef 3)
          to label %798 unwind label %824

798:                                              ; preds = %797
  %799 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %800 unwind label %828

800:                                              ; preds = %798
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %799, double noundef 0.000000e+00)
          to label %801 unwind label %828

801:                                              ; preds = %800
  %802 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %67)
          to label %803 unwind label %828

803:                                              ; preds = %801
  br i1 %802, label %804, label %841

804:                                              ; preds = %803
  %805 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %806 unwind label %828

806:                                              ; preds = %804
  %807 = load ptr, ptr %109, align 8, !tbaa !5
  %808 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %809 unwind label %828

809:                                              ; preds = %806
  invoke void @_ZNK10SimTKIpopt6Matrix15TransMultVectorEdRKNS_6VectorEdRS1_(ptr noundef nonnull align 8 dereferenceable(69) %805, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %807, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %808)
          to label %810 unwind label %828

810:                                              ; preds = %809
  %811 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %812 unwind label %828

812:                                              ; preds = %810
  call void @llvm.lifetime.start.p0(i64 8, ptr %116) #6
  %813 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %814 unwind label %832

814:                                              ; preds = %812
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %116, ptr noundef nonnull align 8 dereferenceable(265) %813, i32 noundef 3)
          to label %815 unwind label %832

815:                                              ; preds = %814
  %816 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %116)
          to label %817 unwind label %836

817:                                              ; preds = %815
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %811, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %816)
          to label %818 unwind label %836

818:                                              ; preds = %817
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %116) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %116) #6
  %819 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %820 unwind label %828

820:                                              ; preds = %818
  %821 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %67)
          to label %822 unwind label %828

822:                                              ; preds = %820
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %819, ptr noundef nonnull align 8 dereferenceable(205) %821)
          to label %823 unwind label %828

823:                                              ; preds = %822
  br label %841

824:                                              ; preds = %797, %795
  %825 = landingpad { ptr, i32 }
          cleanup
  %826 = extractvalue { ptr, i32 } %825, 0
  store ptr %826, ptr %49, align 8
  %827 = extractvalue { ptr, i32 } %825, 1
  store i32 %827, ptr %50, align 4
  br label %891

828:                                              ; preds = %822, %820, %818, %810, %809, %806, %804, %801, %800, %798
  %829 = landingpad { ptr, i32 }
          cleanup
  %830 = extractvalue { ptr, i32 } %829, 0
  store ptr %830, ptr %49, align 8
  %831 = extractvalue { ptr, i32 } %829, 1
  store i32 %831, ptr %50, align 4
  br label %890

832:                                              ; preds = %814, %812
  %833 = landingpad { ptr, i32 }
          cleanup
  %834 = extractvalue { ptr, i32 } %833, 0
  store ptr %834, ptr %49, align 8
  %835 = extractvalue { ptr, i32 } %833, 1
  store i32 %835, ptr %50, align 4
  br label %840

836:                                              ; preds = %817, %815
  %837 = landingpad { ptr, i32 }
          cleanup
  %838 = extractvalue { ptr, i32 } %837, 0
  store ptr %838, ptr %49, align 8
  %839 = extractvalue { ptr, i32 } %837, 1
  store i32 %839, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %116) #6
  br label %840

840:                                              ; preds = %836, %832
  call void @llvm.lifetime.end.p0(i64 8, ptr %116) #6
  br label %890

841:                                              ; preds = %823, %803
  call void @llvm.lifetime.start.p0(i64 8, ptr %117) #6
  %842 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %843 unwind label %870

843:                                              ; preds = %841
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %117, ptr noundef nonnull align 8 dereferenceable(265) %842, i32 noundef 4)
          to label %844 unwind label %870

844:                                              ; preds = %843
  %845 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117)
          to label %846 unwind label %874

846:                                              ; preds = %844
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %845, double noundef 0.000000e+00)
          to label %847 unwind label %874

847:                                              ; preds = %846
  %848 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %849 unwind label %874

849:                                              ; preds = %847
  br i1 %848, label %850, label %887

850:                                              ; preds = %849
  %851 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %852 unwind label %874

852:                                              ; preds = %850
  %853 = load ptr, ptr %109, align 8, !tbaa !5
  %854 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %117)
          to label %855 unwind label %874

855:                                              ; preds = %852
  invoke void @_ZNK10SimTKIpopt6Matrix15TransMultVectorEdRKNS_6VectorEdRS1_(ptr noundef nonnull align 8 dereferenceable(69) %851, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %853, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %854)
          to label %856 unwind label %874

856:                                              ; preds = %855
  %857 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117)
          to label %858 unwind label %874

858:                                              ; preds = %856
  call void @llvm.lifetime.start.p0(i64 8, ptr %118) #6
  %859 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %860 unwind label %878

860:                                              ; preds = %858
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %118, ptr noundef nonnull align 8 dereferenceable(265) %859, i32 noundef 4)
          to label %861 unwind label %878

861:                                              ; preds = %860
  %862 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %863 unwind label %882

863:                                              ; preds = %861
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %857, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %862)
          to label %864 unwind label %882

864:                                              ; preds = %863
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %118) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #6
  %865 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117)
          to label %866 unwind label %874

866:                                              ; preds = %864
  %867 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %868 unwind label %874

868:                                              ; preds = %866
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %865, ptr noundef nonnull align 8 dereferenceable(205) %867)
          to label %869 unwind label %874

869:                                              ; preds = %868
  br label %887

870:                                              ; preds = %843, %841
  %871 = landingpad { ptr, i32 }
          cleanup
  %872 = extractvalue { ptr, i32 } %871, 0
  store ptr %872, ptr %49, align 8
  %873 = extractvalue { ptr, i32 } %871, 1
  store i32 %873, ptr %50, align 4
  br label %889

874:                                              ; preds = %868, %866, %864, %856, %855, %852, %850, %847, %846, %844
  %875 = landingpad { ptr, i32 }
          cleanup
  %876 = extractvalue { ptr, i32 } %875, 0
  store ptr %876, ptr %49, align 8
  %877 = extractvalue { ptr, i32 } %875, 1
  store i32 %877, ptr %50, align 4
  br label %888

878:                                              ; preds = %860, %858
  %879 = landingpad { ptr, i32 }
          cleanup
  %880 = extractvalue { ptr, i32 } %879, 0
  store ptr %880, ptr %49, align 8
  %881 = extractvalue { ptr, i32 } %879, 1
  store i32 %881, ptr %50, align 4
  br label %886

882:                                              ; preds = %863, %861
  %883 = landingpad { ptr, i32 }
          cleanup
  %884 = extractvalue { ptr, i32 } %883, 0
  store ptr %884, ptr %49, align 8
  %885 = extractvalue { ptr, i32 } %883, 1
  store i32 %885, ptr %50, align 4
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %118) #6
  br label %886

886:                                              ; preds = %882, %878
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #6
  br label %888

887:                                              ; preds = %869, %849
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %117) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %117) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %115) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %115) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %113) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %111) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %111) #6
  br label %896

888:                                              ; preds = %886, %874
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %117) #6
  br label %889

889:                                              ; preds = %888, %870
  call void @llvm.lifetime.end.p0(i64 8, ptr %117) #6
  br label %890

890:                                              ; preds = %889, %840, %828
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %115) #6
  br label %891

891:                                              ; preds = %890, %824
  call void @llvm.lifetime.end.p0(i64 8, ptr %115) #6
  br label %892

892:                                              ; preds = %891, %794, %782
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %113) #6
  br label %893

893:                                              ; preds = %892, %778
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #6
  br label %894

894:                                              ; preds = %893, %753, %741
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %111) #6
  br label %895

895:                                              ; preds = %894, %737
  call void @llvm.lifetime.end.p0(i64 8, ptr %111) #6
  br label %898

896:                                              ; preds = %887, %636
  %897 = load i32, ptr %110, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %110) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %109) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %108) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %106) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %103) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %100) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %100) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %99) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %99) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %98) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %98) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %97) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %96) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %96) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %95) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %93) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %92) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %90) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %65) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  ret i32 %897

898:                                              ; preds = %895, %733
  call void @llvm.lifetime.end.p0(i64 4, ptr %110) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %109) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %108) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %106) #6
  br label %899

899:                                              ; preds = %898, %729
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %103) #6
  br label %900

900:                                              ; preds = %899, %728
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %100) #6
  br label %901

901:                                              ; preds = %900, %709
  call void @llvm.lifetime.end.p0(i64 8, ptr %100) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %99) #6
  br label %902

902:                                              ; preds = %901, %687
  call void @llvm.lifetime.end.p0(i64 8, ptr %99) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %98) #6
  br label %903

903:                                              ; preds = %902, %683
  call void @llvm.lifetime.end.p0(i64 8, ptr %98) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %97) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %96) #6
  br label %904

904:                                              ; preds = %903, %679
  call void @llvm.lifetime.end.p0(i64 8, ptr %96) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %95) #6
  br label %905

905:                                              ; preds = %904, %675
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %93) #6
  br label %906

906:                                              ; preds = %905, %671
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %92) #6
  br label %907

907:                                              ; preds = %906, %667
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %90) #6
  br label %908

908:                                              ; preds = %907, %663
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #6
  br label %909

909:                                              ; preds = %908, %531, %481, %400
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #6
  br label %910

910:                                              ; preds = %909, %399
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #6
  br label %911

911:                                              ; preds = %910, %364
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #6
  br label %912

912:                                              ; preds = %911, %360
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #6
  br label %913

913:                                              ; preds = %912, %356
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #6
  br label %914

914:                                              ; preds = %913, %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #6
  br label %915

915:                                              ; preds = %914, %351
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #6
  br label %916

916:                                              ; preds = %915, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %65) #6
  br label %917

917:                                              ; preds = %916, %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #6
  br label %918

918:                                              ; preds = %917, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  br label %919

919:                                              ; preds = %918, %270, %261, %252, %243, %231
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #6
  br label %920

920:                                              ; preds = %919, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #6
  br label %921

921:                                              ; preds = %920, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  br label %922

922:                                              ; preds = %921, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #6
  br label %923

923:                                              ; preds = %922, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  br label %924

924:                                              ; preds = %923, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #6
  br label %925

925:                                              ; preds = %924, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #6
  br label %926

926:                                              ; preds = %925, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  br label %927

927:                                              ; preds = %926, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  br label %928

928:                                              ; preds = %927, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  br label %929

929:                                              ; preds = %928
  %930 = load ptr, ptr %49, align 8
  %931 = load i32, ptr %50, align 4
  %932 = insertvalue { ptr, i32 } poison, ptr %930, 0
  %933 = insertvalue { ptr, i32 } %932, i32 %931, 1
  resume { ptr, i32 } %933
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_n_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8, ptr noundef nonnull align 8 dereferenceable(281), ptr noundef nonnull align 8 dereferenceable(8), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) #2 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 uwtable
declare dso_local void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_p_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8, ptr noundef nonnull align 8 dereferenceable(281), ptr noundef nonnull align 8 dereferenceable(8), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZNK10SimTKIpopt12SumSymMatrix7GetTermEiRdRNS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZNK10SimTKIpopt6Matrix15TransMultVectorEdRKNS_6VectorEdRS1_(ptr noundef nonnull align 8 dereferenceable(69), double noundef, ptr noundef nonnull align 8 dereferenceable(205), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) #5 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 nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEED2Ev(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt16ESymSolverStatusE", !7, i64 0}


; 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.43" = type { ptr }
%"class.SimTKIpopt::SmartPtr.44" = type { ptr }
%"class.SimTKIpopt::SmartPtr.45" = type { ptr }
%"class.SimTKIpopt::SmartPtr.46" = type { ptr }
%"class.SimTKIpopt::SmartPtr.47" = type { ptr }
%"class.SimTKIpopt::SmartPtr.48" = type { ptr }
%"class.SimTKIpopt::SmartPtr.29" = type { ptr }
%"class.SimTKIpopt::SmartPtr.59" = type { ptr }
%"class.SimTKIpopt::SmartPtr.37" = type { ptr }

@_ZTIN10SimTKIpopt9SymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt17CompoundSymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt6VectorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt14CompoundVectorE = external constant ptr
@_ZTIN10SimTKIpopt6MatrixE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt14CompoundMatrixE = external constant ptr
@_ZTIN10SimTKIpopt12SumSymMatrixE = external constant ptr
@_ZTIN10SimTKIpopt10DiagMatrixE = external constant ptr
@_ZTIN10SimTKIpopt22LowRankUpdateSymMatrixE = external constant ptr

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt20AugRestoSystemSolver5SolveEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dPKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_RS4_SB_SB_SB_bi(ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef %1, double noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, double noundef %9, ptr noundef %10, ptr noundef %11, double noundef %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, i1 noundef zeroext %21, i32 noundef %22) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %24 = alloca %"class.SimTKIpopt::SmartPtr.43", align 8
  %25 = alloca %"class.SimTKIpopt::SmartPtr.44", align 8
  %26 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %27 = alloca %"class.SimTKIpopt::SmartPtr.45", align 8
  %28 = alloca %"class.SimTKIpopt::SmartPtr.44", align 8
  %29 = alloca %"class.SimTKIpopt::SmartPtr.46", align 8
  %30 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %31 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %32 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %33 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %34 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %35 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %36 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %37 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %38 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %39 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %40 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %41 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %42 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %43 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %44 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %45 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %46 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %47 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %48 = alloca %"class.SimTKIpopt::SmartPtr.29", align 8
  %49 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %50 = alloca %"class.SimTKIpopt::SmartPtr.59", align 8
  %51 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %52 = alloca double, align 8
  %53 = alloca %"class.SimTKIpopt::SmartPtr.29", align 8
  %54 = alloca double, align 8
  %55 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %56 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %57 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %58 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %59 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %60 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %61 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %62 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %63 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %64 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %65 = alloca %"class.SimTKIpopt::SmartPtr.48", align 8
  %66 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %67 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %68 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %69 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %70 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %71 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %72 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %73 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %74 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %75 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %76 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %77 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %78 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %79 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %80 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %81 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  %82 = alloca %"class.SimTKIpopt::SmartPtr.37", align 8
  %83 = alloca %"class.SimTKIpopt::SmartPtr.47", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %84 = icmp eq ptr %1, null
  br i1 %84, label %87, label %85

85:                                               ; preds = %23
  %86 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt9SymMatrixE, ptr nonnull @_ZTIN10SimTKIpopt17CompoundSymMatrixE, i64 0) #7
  br label %87

87:                                               ; preds = %23, %85
  %88 = phi ptr [ %86, %85 ], [ null, %23 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef %88)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %89 = icmp eq ptr %3, null
  br i1 %89, label %92, label %90

90:                                               ; preds = %87
  %91 = call ptr @__dynamic_cast(ptr nonnull %3, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt14CompoundVectorE, i64 0) #7
  br label %92

92:                                               ; preds = %87, %90
  %93 = phi ptr [ %91, %90 ], [ null, %87 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %93)
          to label %94 unwind label %98

94:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %95 = icmp eq ptr %7, null
  br i1 %95, label %100, label %96

96:                                               ; preds = %94
  %97 = call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt14CompoundMatrixE, i64 0) #7
  br label %100

98:                                               ; preds = %92
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %532

100:                                              ; preds = %94, %96
  %101 = phi ptr [ %97, %96 ], [ null, %94 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %101)
          to label %102 unwind label %106

102:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %103 = icmp eq ptr %10, null
  br i1 %103, label %108, label %104

104:                                              ; preds = %102
  %105 = call ptr @__dynamic_cast(ptr nonnull %10, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt14CompoundMatrixE, i64 0) #7
  br label %108

106:                                              ; preds = %100
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %531

108:                                              ; preds = %102, %104
  %109 = phi ptr [ %105, %104 ], [ null, %102 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %109)
          to label %110 unwind label %112

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %111 = call ptr @__dynamic_cast(ptr nonnull %13, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt14CompoundVectorE, i64 0) #7
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %111)
          to label %114 unwind label %116

112:                                              ; preds = %108
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %530

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %115 = call ptr @__dynamic_cast(ptr nonnull %17, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt14CompoundVectorE, i64 0) #7
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %115)
          to label %118 unwind label %138

116:                                              ; preds = %110
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %529

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33)
  %119 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_14CompoundVectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %120 unwind label %140

120:                                              ; preds = %118
  br i1 %119, label %121, label %162

121:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #7
  %122 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %34, ptr noundef nonnull align 8 dereferenceable(265) %122, i32 noundef 1)
          to label %123 unwind label %142

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %125 unwind label %144

125:                                              ; preds = %123
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #7
  %126 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %35, ptr noundef nonnull align 8 dereferenceable(265) %126, i32 noundef 2)
          to label %127 unwind label %147

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %129 unwind label %149

129:                                              ; preds = %127
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #7
  %130 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %36, ptr noundef nonnull align 8 dereferenceable(265) %130, i32 noundef 3)
          to label %131 unwind label %152

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %133 unwind label %154

133:                                              ; preds = %131
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #7
  %134 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %37, ptr noundef nonnull align 8 dereferenceable(265) %134, i32 noundef 4)
          to label %135 unwind label %157

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %137 unwind label %159

137:                                              ; preds = %135
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  br label %162

138:                                              ; preds = %114
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %528

140:                                              ; preds = %118
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %527

142:                                              ; preds = %121
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %123
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  br label %146

146:                                              ; preds = %144, %142
  %.pn = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #7
  br label %527

147:                                              ; preds = %125
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %151

149:                                              ; preds = %127
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %151

151:                                              ; preds = %149, %147
  %.pn114 = phi { ptr, i32 } [ %150, %149 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #7
  br label %527

152:                                              ; preds = %129
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %156

154:                                              ; preds = %131
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  br label %156

156:                                              ; preds = %154, %152
  %.pn116 = phi { ptr, i32 } [ %155, %154 ], [ %153, %152 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  br label %527

157:                                              ; preds = %133
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %161

159:                                              ; preds = %135
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  br label %161

161:                                              ; preds = %159, %157
  %.pn118 = phi { ptr, i32 } [ %160, %159 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  br label %527

162:                                              ; preds = %137, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #7
  %163 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %39, ptr noundef nonnull align 8 dereferenceable(265) %163, i32 noundef 1)
          to label %164 unwind label %189

164:                                              ; preds = %162
  %165 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_n_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %38, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %30, double noundef %4, ptr noundef nonnull align 8 dereferenceable(205) %165)
          to label %166 unwind label %191

166:                                              ; preds = %164
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #7
  %167 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %41, ptr noundef nonnull align 8 dereferenceable(265) %167, i32 noundef 2)
          to label %168 unwind label %194

168:                                              ; preds = %166
  %169 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_p_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %40, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %31, double noundef %4, ptr noundef nonnull align 8 dereferenceable(205) %169)
          to label %170 unwind label %196

170:                                              ; preds = %168
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #7
  %171 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %43, ptr noundef nonnull align 8 dereferenceable(265) %171, i32 noundef 3)
          to label %172 unwind label %199

172:                                              ; preds = %170
  %173 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_n_d_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %42, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %4, ptr noundef nonnull align 8 dereferenceable(205) %173)
          to label %174 unwind label %201

174:                                              ; preds = %172
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #7
  %175 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %45, ptr noundef nonnull align 8 dereferenceable(265) %175, i32 noundef 4)
          to label %176 unwind label %204

176:                                              ; preds = %174
  %177 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_p_d_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %44, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %33, double noundef %4, ptr noundef nonnull align 8 dereferenceable(205) %177)
          to label %178 unwind label %206

178:                                              ; preds = %176
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #7
  %179 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %46, ptr noundef nonnull align 8 dereferenceable(129) %179, i32 noundef 0, i32 noundef 3)
          to label %180 unwind label %209

180:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #7
  %181 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %47, ptr noundef nonnull align 8 dereferenceable(129) %181, i32 noundef 0, i32 noundef 4)
          to label %182 unwind label %211

182:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %50) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %51) #7
  %183 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
  invoke void @_ZNK10SimTKIpopt17CompoundSymMatrix7GetCompEii(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %51, ptr noundef nonnull align 8 dereferenceable(137) %183, i32 noundef 0, i32 noundef 0)
          to label %184 unwind label %213

184:                                              ; preds = %182
  %185 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %51)
  %186 = icmp eq ptr %185, null
  br i1 %186, label %217, label %187

187:                                              ; preds = %184
  %188 = call ptr @__dynamic_cast(ptr nonnull %185, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt12SumSymMatrixE, i64 0) #7
  br label %217

189:                                              ; preds = %162
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %193

191:                                              ; preds = %164
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  br label %193

193:                                              ; preds = %191, %189
  %.pn120 = phi { ptr, i32 } [ %192, %191 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #7
  br label %526

194:                                              ; preds = %166
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %198

196:                                              ; preds = %168
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #7
  br label %198

198:                                              ; preds = %196, %194
  %.pn122 = phi { ptr, i32 } [ %197, %196 ], [ %195, %194 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #7
  br label %525

199:                                              ; preds = %170
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %172
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #7
  br label %203

203:                                              ; preds = %201, %199
  %.pn124 = phi { ptr, i32 } [ %202, %201 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #7
  br label %524

204:                                              ; preds = %174
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %208

206:                                              ; preds = %176
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  br label %208

208:                                              ; preds = %206, %204
  %.pn126 = phi { ptr, i32 } [ %207, %206 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #7
  br label %523

209:                                              ; preds = %178
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %522

211:                                              ; preds = %180
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %521

213:                                              ; preds = %182
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %232

215:                                              ; preds = %217
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #7
  br label %232

217:                                              ; preds = %184, %187
  %218 = phi ptr [ %188, %187 ], [ null, %184 ]
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef %218)
          to label %219 unwind label %215

219:                                              ; preds = %217
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #7
  %220 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_12SumSymMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %221 unwind label %233

221:                                              ; preds = %219
  br i1 %220, label %222, label %282

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #7
  %223 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  invoke void @_ZNK10SimTKIpopt12SumSymMatrix7GetTermEiRdRNS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(136) %223, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %224 unwind label %235

224:                                              ; preds = %222
  %225 = load double, ptr %52, align 8, !tbaa !5
  %226 = fmul double %225, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %53) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %54) #7
  %227 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  invoke void @_ZNK10SimTKIpopt12SumSymMatrix7GetTermEiRdRNS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(136) %227, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %228 unwind label %237

228:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %55) #7
  %229 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_9SymMatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %53)
  %230 = icmp ne ptr %229, null
  call void @llvm.assume(i1 %230)
  %231 = call ptr @__dynamic_cast(ptr nonnull %229, ptr nonnull @_ZTIN10SimTKIpopt9SymMatrixE, ptr nonnull @_ZTIN10SimTKIpopt10DiagMatrixE, i64 0) #7
  invoke void @_ZNK10SimTKIpopt10DiagMatrix7GetDiagEv(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %55, ptr noundef nonnull align 8 dereferenceable(88) %231)
          to label %241 unwind label %239

232:                                              ; preds = %215, %213
  %.pn128 = phi { ptr, i32 } [ %216, %215 ], [ %214, %213 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #7
  br label %520

233:                                              ; preds = %219
  %234 = landingpad { ptr, i32 }
          cleanup
  br label %519

235:                                              ; preds = %222
  %236 = landingpad { ptr, i32 }
          cleanup
  br label %281

237:                                              ; preds = %224
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %280

239:                                              ; preds = %228
  %240 = landingpad { ptr, i32 }
          cleanup
  br label %279

241:                                              ; preds = %228
  %242 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_14CompoundVectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %243 unwind label %252

243:                                              ; preds = %241
  br i1 %242, label %244, label %262

244:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %56) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %57) #7
  %245 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %57, ptr noundef nonnull align 8 dereferenceable(265) %245, i32 noundef 0)
          to label %246 unwind label %254

246:                                              ; preds = %244
  %247 = load double, ptr %54, align 8, !tbaa !5
  %248 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver13D_x_plus_wr_dERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %56, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %247, ptr noundef nonnull align 8 dereferenceable(205) %248)
          to label %249 unwind label %256

249:                                              ; preds = %246
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %251 unwind label %258

251:                                              ; preds = %249
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %56) #7
  br label %277

252:                                              ; preds = %241
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %278

254:                                              ; preds = %244
  %255 = landingpad { ptr, i32 }
          cleanup
  br label %261

256:                                              ; preds = %246
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %260

258:                                              ; preds = %249
  %259 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #7
  br label %260

260:                                              ; preds = %258, %256
  %.pn136 = phi { ptr, i32 } [ %259, %258 ], [ %257, %256 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #7
  br label %261

261:                                              ; preds = %260, %254
  %.pn136.pn = phi { ptr, i32 } [ %.pn136, %260 ], [ %255, %254 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %56) #7
  br label %278

262:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %58) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #7
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef null)
          to label %263 unwind label %269

263:                                              ; preds = %262
  %264 = load double, ptr %54, align 8, !tbaa !5
  %265 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver13D_x_plus_wr_dERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %58, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %59, double noundef %264, ptr noundef nonnull align 8 dereferenceable(205) %265)
          to label %266 unwind label %271

266:                                              ; preds = %263
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %58)
          to label %268 unwind label %273

268:                                              ; preds = %266
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %58) #7
  br label %277

269:                                              ; preds = %262
  %270 = landingpad { ptr, i32 }
          cleanup
  br label %276

271:                                              ; preds = %263
  %272 = landingpad { ptr, i32 }
          cleanup
  br label %275

273:                                              ; preds = %266
  %274 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #7
  br label %275

275:                                              ; preds = %273, %271
  %.pn133 = phi { ptr, i32 } [ %274, %273 ], [ %272, %271 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #7
  br label %276

276:                                              ; preds = %275, %269
  %.pn133.pn = phi { ptr, i32 } [ %.pn133, %275 ], [ %270, %269 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %58) #7
  br label %278

277:                                              ; preds = %268, %251
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #7
  br label %311

278:                                              ; preds = %276, %261, %252
  %.pn136.pn.pn = phi { ptr, i32 } [ %.pn136.pn, %261 ], [ %.pn133.pn, %276 ], [ %253, %252 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #7
  br label %279

279:                                              ; preds = %278, %239
  %.pn136.pn.pn.pn = phi { ptr, i32 } [ %.pn136.pn.pn, %278 ], [ %240, %239 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #7
  br label %280

280:                                              ; preds = %279, %237
  %.pn136.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn136.pn.pn.pn, %279 ], [ %238, %237 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %53) #7
  br label %281

281:                                              ; preds = %280, %235
  %.pn136.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn136.pn.pn.pn.pn, %280 ], [ %236, %235 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #7
  br label %519

282:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %60) #7
  %283 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
  invoke void @_ZNK10SimTKIpopt17CompoundSymMatrix7GetCompEii(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %60, ptr noundef nonnull align 8 dereferenceable(137) %283, i32 noundef 0, i32 noundef 0)
          to label %284 unwind label %289

284:                                              ; preds = %282
  %285 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %60)
  %286 = icmp eq ptr %285, null
  br i1 %286, label %291, label %287

287:                                              ; preds = %284
  %288 = call ptr @__dynamic_cast(ptr nonnull %285, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt22LowRankUpdateSymMatrixE, i64 0) #7
  br label %291

289:                                              ; preds = %282
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #7
  br label %519

291:                                              ; preds = %284, %287
  %292 = phi ptr [ %288, %287 ], [ null, %284 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %60) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #7
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef %292)
          to label %294 unwind label %302

294:                                              ; preds = %291
  %295 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_14CompoundVectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %296 unwind label %302

296:                                              ; preds = %294
  br i1 %295, label %297, label %309

297:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %61) #7
  %298 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %61, ptr noundef nonnull align 8 dereferenceable(265) %298, i32 noundef 0)
          to label %299 unwind label %304

299:                                              ; preds = %297
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %301 unwind label %306

301:                                              ; preds = %299
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #7
  br label %311

302:                                              ; preds = %309, %294, %291
  %303 = landingpad { ptr, i32 }
          cleanup
  br label %519

304:                                              ; preds = %297
  %305 = landingpad { ptr, i32 }
          cleanup
  br label %308

306:                                              ; preds = %299
  %307 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #7
  br label %308

308:                                              ; preds = %306, %304
  %.pn130 = phi { ptr, i32 } [ %307, %306 ], [ %305, %304 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #7
  br label %519

309:                                              ; preds = %296
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef null)
          to label %311 unwind label %302

311:                                              ; preds = %301, %309, %277
  %.0106 = phi double [ %226, %277 ], [ %2, %309 ], [ %2, %301 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %62) #7
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef %5)
          to label %312 unwind label %377

312:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %63) #7
  %313 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %63, ptr noundef nonnull align 8 dereferenceable(129) %313, i32 noundef 0, i32 noundef 0)
          to label %314 unwind label %379

314:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %64) #7
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver20Neg_Omega_c_plus_D_cERKNS_8SmartPtrIKNS_6VectorEEES6_PS3_RS3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %64, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef %8, ptr noundef nonnull align 8 dereferenceable(205) %15)
          to label %315 unwind label %381

315:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #7
  %316 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
  invoke void @_ZNK10SimTKIpopt14CompoundMatrix7GetCompEii(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.48") align 8 %65, ptr noundef nonnull align 8 dereferenceable(129) %316, i32 noundef 0, i32 noundef 0)
          to label %317 unwind label %383

317:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %66) #7
  %318 = call noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
  %319 = call noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver20Neg_Omega_d_plus_D_dERKNS_6MatrixERKNS_8SmartPtrIKNS_6VectorEEES3_S9_PS6_RS6_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %66, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(69) %318, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(69) %319, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(205) %16)
          to label %320 unwind label %385

320:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %67) #7
  %321 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %67, ptr noundef nonnull align 8 dereferenceable(265) %321, i32 noundef 0)
          to label %322 unwind label %387

322:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %68) #7
  invoke void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull %14)
          to label %323 unwind label %389

323:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %69) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %70) #7
  %324 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %70, ptr noundef nonnull align 8 dereferenceable(265) %324, i32 noundef 1)
          to label %325 unwind label %391

325:                                              ; preds = %323
  %326 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %70)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %71) #7
  %327 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %71, ptr noundef nonnull align 8 dereferenceable(265) %327, i32 noundef 2)
          to label %328 unwind label %393

328:                                              ; preds = %325
  %329 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver6Rhs_cRERKNS_6VectorERKNS_8SmartPtrIS2_EES3_S7_S3_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %69, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(205) %326, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(205) %329)
          to label %330 unwind label %395

330:                                              ; preds = %328
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %71) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %70) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %70) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %72) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %73) #7
  %331 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %73, ptr noundef nonnull align 8 dereferenceable(265) %331, i32 noundef 3)
          to label %332 unwind label %399

332:                                              ; preds = %330
  %333 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
  %334 = call noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %74) #7
  %335 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %74, ptr noundef nonnull align 8 dereferenceable(265) %335, i32 noundef 4)
          to label %336 unwind label %401

336:                                              ; preds = %332
  %337 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %74)
  %338 = call noundef nonnull align 8 dereferenceable(69) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  invoke void @_ZN10SimTKIpopt20AugRestoSystemSolver6Rhs_dRERKNS_6VectorERKNS_8SmartPtrIS2_EES3_RKNS_6MatrixES7_S3_SA_(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %72, ptr noundef nonnull align 8 dereferenceable(281) %0, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(205) %333, ptr noundef nonnull align 8 dereferenceable(69) %334, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(205) %337, ptr noundef nonnull align 8 dereferenceable(69) %338)
          to label %339 unwind label %403

339:                                              ; preds = %336
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %74) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %73) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %75) #7
  %340 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %75, ptr noundef nonnull align 8 dereferenceable(265) %340, i32 noundef 0)
          to label %341 unwind label %407

341:                                              ; preds = %339
  %342 = getelementptr inbounds i8, ptr %0, i64 272
  %343 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15AugSystemSolverEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %342)
  %344 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_9SymMatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %48)
  %345 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %49)
  %346 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %62)
  %347 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %63)
  %348 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %64)
  %349 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6MatrixEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %65)
  %350 = call noundef ptr @_ZN10SimTKIpopt9GetRawPtrIKNS_6VectorEEEPT_RKNS_8SmartPtrIS3_EE(ptr noundef nonnull align 8 dereferenceable(8) %66)
  %351 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %67)
  %352 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %353 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
  %354 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
  %355 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %75)
  %356 = load ptr, ptr %343, align 8, !tbaa !9
  %357 = getelementptr inbounds i8, ptr %356, i64 24
  %358 = load ptr, ptr %357, align 8
  %359 = invoke noundef i32 %358(ptr noundef nonnull align 8 dereferenceable(49) %343, ptr noundef %344, double noundef %.0106, ptr noundef %345, double noundef %4, ptr noundef %346, double noundef %6, ptr noundef %347, ptr noundef %348, double noundef %9, ptr noundef %349, ptr noundef %350, double noundef %12, ptr noundef nonnull align 8 dereferenceable(205) %351, ptr noundef nonnull align 8 dereferenceable(205) %352, ptr noundef nonnull align 8 dereferenceable(205) %353, ptr noundef nonnull align 8 dereferenceable(205) %354, ptr noundef nonnull align 8 dereferenceable(205) %355, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, i1 noundef zeroext %21, i32 noundef %22)
          to label %360 unwind label %409

360:                                              ; preds = %341
  %361 = icmp eq i32 %359, 0
  br i1 %361, label %362, label %507

362:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %76) #7
  %363 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %76, ptr noundef nonnull align 8 dereferenceable(265) %363, i32 noundef 1)
          to label %364 unwind label %411

364:                                              ; preds = %362
  %365 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %76)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %365, double noundef 0.000000e+00)
          to label %366 unwind label %413

366:                                              ; preds = %364
  %367 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %368 unwind label %413

368:                                              ; preds = %366
  br i1 %367, label %369, label %420

369:                                              ; preds = %368
  %370 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %76)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %77) #7
  %371 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %77, ptr noundef nonnull align 8 dereferenceable(265) %371, i32 noundef 1)
          to label %372 unwind label %415

372:                                              ; preds = %369
  %373 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %77)
  invoke void @_ZN10SimTKIpopt6Vector13AddTwoVectorsEdRKS0_dS2_d(ptr noundef nonnull align 8 dereferenceable(205) %370, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %373, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %19, double noundef 0.000000e+00)
          to label %374 unwind label %417

374:                                              ; preds = %372
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %77) #7
  %375 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %76)
  %376 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %375, ptr noundef nonnull align 8 dereferenceable(205) %376)
          to label %420 unwind label %413

377:                                              ; preds = %311
  %378 = landingpad { ptr, i32 }
          cleanup
  br label %518

379:                                              ; preds = %312
  %380 = landingpad { ptr, i32 }
          cleanup
  br label %517

381:                                              ; preds = %314
  %382 = landingpad { ptr, i32 }
          cleanup
  br label %516

383:                                              ; preds = %315
  %384 = landingpad { ptr, i32 }
          cleanup
  br label %515

385:                                              ; preds = %317
  %386 = landingpad { ptr, i32 }
          cleanup
  br label %514

387:                                              ; preds = %320
  %388 = landingpad { ptr, i32 }
          cleanup
  br label %513

389:                                              ; preds = %322
  %390 = landingpad { ptr, i32 }
          cleanup
  br label %512

391:                                              ; preds = %323
  %392 = landingpad { ptr, i32 }
          cleanup
  br label %398

393:                                              ; preds = %325
  %394 = landingpad { ptr, i32 }
          cleanup
  br label %397

395:                                              ; preds = %328
  %396 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #7
  br label %397

397:                                              ; preds = %395, %393
  %.pn143 = phi { ptr, i32 } [ %396, %395 ], [ %394, %393 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %71) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %70) #7
  br label %398

398:                                              ; preds = %397, %391
  %.pn143.pn = phi { ptr, i32 } [ %.pn143, %397 ], [ %392, %391 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %70) #7
  br label %511

399:                                              ; preds = %330
  %400 = landingpad { ptr, i32 }
          cleanup
  br label %406

401:                                              ; preds = %332
  %402 = landingpad { ptr, i32 }
          cleanup
  br label %405

403:                                              ; preds = %336
  %404 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #7
  br label %405

405:                                              ; preds = %403, %401
  %.pn146 = phi { ptr, i32 } [ %404, %403 ], [ %402, %401 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %74) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #7
  br label %406

406:                                              ; preds = %405, %399
  %.pn146.pn = phi { ptr, i32 } [ %.pn146, %405 ], [ %400, %399 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %73) #7
  br label %510

407:                                              ; preds = %339
  %408 = landingpad { ptr, i32 }
          cleanup
  br label %509

409:                                              ; preds = %341
  %410 = landingpad { ptr, i32 }
          cleanup
  br label %508

411:                                              ; preds = %362
  %412 = landingpad { ptr, i32 }
          cleanup
  br label %506

413:                                              ; preds = %374, %366, %364
  %414 = landingpad { ptr, i32 }
          cleanup
  br label %505

415:                                              ; preds = %369
  %416 = landingpad { ptr, i32 }
          cleanup
  br label %419

417:                                              ; preds = %372
  %418 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #7
  br label %419

419:                                              ; preds = %417, %415
  %.pn149 = phi { ptr, i32 } [ %418, %417 ], [ %416, %415 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %77) #7
  br label %505

420:                                              ; preds = %374, %368
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %78) #7
  %421 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %78, ptr noundef nonnull align 8 dereferenceable(265) %421, i32 noundef 2)
          to label %422 unwind label %435

422:                                              ; preds = %420
  %423 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %78)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %423, double noundef 0.000000e+00)
          to label %424 unwind label %437

424:                                              ; preds = %422
  %425 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %426 unwind label %437

426:                                              ; preds = %424
  br i1 %425, label %427, label %444

427:                                              ; preds = %426
  %428 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %79) #7
  %429 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %79, ptr noundef nonnull align 8 dereferenceable(265) %429, i32 noundef 2)
          to label %430 unwind label %439

430:                                              ; preds = %427
  %431 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %79)
  invoke void @_ZN10SimTKIpopt6Vector13AddTwoVectorsEdRKS0_dS2_d(ptr noundef nonnull align 8 dereferenceable(205) %428, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %431, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %19, double noundef 0.000000e+00)
          to label %432 unwind label %441

432:                                              ; preds = %430
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %79) #7
  %433 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %78)
  %434 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %433, ptr noundef nonnull align 8 dereferenceable(205) %434)
          to label %444 unwind label %437

435:                                              ; preds = %420
  %436 = landingpad { ptr, i32 }
          cleanup
  br label %504

437:                                              ; preds = %432, %424, %422
  %438 = landingpad { ptr, i32 }
          cleanup
  br label %503

439:                                              ; preds = %427
  %440 = landingpad { ptr, i32 }
          cleanup
  br label %443

441:                                              ; preds = %430
  %442 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %79) #7
  br label %443

443:                                              ; preds = %441, %439
  %.pn151 = phi { ptr, i32 } [ %442, %441 ], [ %440, %439 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %79) #7
  br label %503

444:                                              ; preds = %432, %426
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %80) #7
  %445 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %80, ptr noundef nonnull align 8 dereferenceable(265) %445, i32 noundef 3)
          to label %446 unwind label %462

446:                                              ; preds = %444
  %447 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %447, double noundef 0.000000e+00)
          to label %448 unwind label %464

448:                                              ; preds = %446
  %449 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %450 unwind label %464

450:                                              ; preds = %448
  br i1 %449, label %451, label %471

451:                                              ; preds = %450
  %452 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
  %453 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
  invoke void @_ZNK10SimTKIpopt6Matrix15TransMultVectorEdRKNS_6VectorEdRS1_(ptr noundef nonnull align 8 dereferenceable(69) %452, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %20, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %453)
          to label %454 unwind label %464

454:                                              ; preds = %451
  %455 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %81) #7
  %456 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %81, ptr noundef nonnull align 8 dereferenceable(265) %456, i32 noundef 3)
          to label %457 unwind label %466

457:                                              ; preds = %454
  %458 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %455, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %458)
          to label %459 unwind label %468

459:                                              ; preds = %457
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %81) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %81) #7
  %460 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
  %461 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %460, ptr noundef nonnull align 8 dereferenceable(205) %461)
          to label %471 unwind label %464

462:                                              ; preds = %444
  %463 = landingpad { ptr, i32 }
          cleanup
  br label %502

464:                                              ; preds = %459, %451, %448, %446
  %465 = landingpad { ptr, i32 }
          cleanup
  br label %501

466:                                              ; preds = %454
  %467 = landingpad { ptr, i32 }
          cleanup
  br label %470

468:                                              ; preds = %457
  %469 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %81) #7
  br label %470

470:                                              ; preds = %468, %466
  %.pn153 = phi { ptr, i32 } [ %469, %468 ], [ %467, %466 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %81) #7
  br label %501

471:                                              ; preds = %459, %450
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %82) #7
  %472 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
  invoke void @_ZN10SimTKIpopt14CompoundVector15GetCompNonConstEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.37") align 8 %82, ptr noundef nonnull align 8 dereferenceable(265) %472, i32 noundef 4)
          to label %473 unwind label %489

473:                                              ; preds = %471
  %474 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %82)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %474, double noundef 0.000000e+00)
          to label %475 unwind label %491

475:                                              ; preds = %473
  %476 = invoke noundef zeroext i1 @_ZN10SimTKIpopt7IsValidIKNS_6VectorEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %477 unwind label %491

477:                                              ; preds = %475
  br i1 %476, label %478, label %498

478:                                              ; preds = %477
  %479 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6MatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %480 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %82)
  invoke void @_ZNK10SimTKIpopt6Matrix15TransMultVectorEdRKNS_6VectorEdRS1_(ptr noundef nonnull align 8 dereferenceable(69) %479, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %20, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %480)
          to label %481 unwind label %491

481:                                              ; preds = %478
  %482 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %82)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %83) #7
  %483 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  invoke void @_ZNK10SimTKIpopt14CompoundVector7GetCompEi(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8 %83, ptr noundef nonnull align 8 dereferenceable(265) %483, i32 noundef 4)
          to label %484 unwind label %493

484:                                              ; preds = %481
  %485 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %83)
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %482, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %485)
          to label %486 unwind label %495

486:                                              ; preds = %484
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %83) #7
  %487 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %82)
  %488 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %487, ptr noundef nonnull align 8 dereferenceable(205) %488)
          to label %498 unwind label %491

489:                                              ; preds = %471
  %490 = landingpad { ptr, i32 }
          cleanup
  br label %500

491:                                              ; preds = %486, %478, %475, %473
  %492 = landingpad { ptr, i32 }
          cleanup
  br label %499

493:                                              ; preds = %481
  %494 = landingpad { ptr, i32 }
          cleanup
  br label %497

495:                                              ; preds = %484
  %496 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #7
  br label %497

497:                                              ; preds = %495, %493
  %.pn155 = phi { ptr, i32 } [ %496, %495 ], [ %494, %493 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %83) #7
  br label %499

498:                                              ; preds = %486, %477
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %82) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %80) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %80) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %78) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %78) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %76) #7
  br label %507

499:                                              ; preds = %497, %491
  %.pn157 = phi { ptr, i32 } [ %492, %491 ], [ %.pn155, %497 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %82) #7
  br label %500

500:                                              ; preds = %499, %489
  %.pn157.pn = phi { ptr, i32 } [ %.pn157, %499 ], [ %490, %489 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %82) #7
  br label %501

501:                                              ; preds = %500, %470, %464
  %.pn157.pn.pn = phi { ptr, i32 } [ %.pn157.pn, %500 ], [ %465, %464 ], [ %.pn153, %470 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %80) #7
  br label %502

502:                                              ; preds = %501, %462
  %.pn157.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn, %501 ], [ %463, %462 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %80) #7
  br label %503

503:                                              ; preds = %502, %443, %437
  %.pn157.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn, %502 ], [ %438, %437 ], [ %.pn151, %443 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %78) #7
  br label %504

504:                                              ; preds = %503, %435
  %.pn157.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn, %503 ], [ %436, %435 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %78) #7
  br label %505

505:                                              ; preds = %504, %419, %413
  %.pn157.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn, %504 ], [ %414, %413 ], [ %.pn149, %419 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %76) #7
  br label %506

506:                                              ; preds = %505, %411
  %.pn157.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn, %505 ], [ %412, %411 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %76) #7
  br label %508

507:                                              ; preds = %498, %360
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %75) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %72) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %69) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %68) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %65) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %64) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  ret i32 %359

508:                                              ; preds = %506, %409
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn, %506 ], [ %410, %409 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  br label %509

509:                                              ; preds = %508, %407
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn, %508 ], [ %408, %407 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %75) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #7
  br label %510

510:                                              ; preds = %509, %406
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn, %509 ], [ %.pn146.pn, %406 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %72) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #7
  br label %511

511:                                              ; preds = %510, %398
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %510 ], [ %.pn143.pn, %398 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %69) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #7
  br label %512

512:                                              ; preds = %511, %389
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %511 ], [ %390, %389 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %68) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #7
  br label %513

513:                                              ; preds = %512, %387
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %512 ], [ %388, %387 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #7
  br label %514

514:                                              ; preds = %513, %385
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %513 ], [ %386, %385 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %65) #7
  br label %515

515:                                              ; preds = %514, %383
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %514 ], [ %384, %383 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %64) #7
  br label %516

516:                                              ; preds = %515, %381
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %515 ], [ %382, %381 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #7
  br label %517

517:                                              ; preds = %516, %379
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %516 ], [ %380, %379 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #7
  br label %518

518:                                              ; preds = %517, %377
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %517 ], [ %378, %377 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #7
  br label %519

519:                                              ; preds = %289, %302, %308, %518, %281, %233
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %518 ], [ %.pn136.pn.pn.pn.pn.pn, %281 ], [ %234, %233 ], [ %.pn130, %308 ], [ %303, %302 ], [ %290, %289 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #7
  br label %520

520:                                              ; preds = %519, %232
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %519 ], [ %.pn128, %232 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_9SymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  br label %521

521:                                              ; preds = %520, %211
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %520 ], [ %212, %211 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6MatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br label %522

522:                                              ; preds = %521, %209
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %521 ], [ %210, %209 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  br label %523

523:                                              ; preds = %522, %208
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %522 ], [ %.pn126, %208 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  br label %524

524:                                              ; preds = %523, %203
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %523 ], [ %.pn124, %203 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #7
  br label %525

525:                                              ; preds = %524, %198
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %524 ], [ %.pn122, %198 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  br label %526

526:                                              ; preds = %525, %193
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %525 ], [ %.pn120, %193 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  br label %527

527:                                              ; preds = %526, %161, %156, %151, %146, %140
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %526 ], [ %.pn118, %161 ], [ %.pn116, %156 ], [ %.pn114, %151 ], [ %.pn, %146 ], [ %141, %140 ]
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @_ZN10SimTKIpopt8SmartPtrINS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br label %528

528:                                              ; preds = %527, %138
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %527 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %529

529:                                              ; preds = %528, %116
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %528 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br label %530

530:                                              ; preds = %529, %112
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %529 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %531

531:                                              ; preds = %530, %106
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %530 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_14CompoundVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %532

532:                                              ; preds = %531, %98
  %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %531 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  resume { ptr, i32 } %.pn157.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_n_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8, ptr noundef nonnull align 8 dereferenceable(281), ptr noundef nonnull align 8 dereferenceable(8), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #2 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 uwtable
declare dso_local void @_ZN10SimTKIpopt20AugRestoSystemSolver19Sigma_tilde_p_c_invERKNS_8SmartPtrIKNS_6VectorEEEdRS3_(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr.47") align 8, ptr noundef nonnull align 8 dereferenceable(281), ptr noundef nonnull align 8 dereferenceable(8), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZNK10SimTKIpopt12SumSymMatrix7GetTermEiRdRNS_8SmartPtrIKNS_9SymMatrixEEE(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZNK10SimTKIpopt6Matrix15TransMultVectorEdRKNS_6VectorEdRS1_(ptr noundef nonnull align 8 dereferenceable(69), double noundef, ptr noundef nonnull align 8 dereferenceable(205), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205), double noundef, ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #5 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 nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrIKNS_12SumSymMatrixEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10SimTKIpopt8SmartPtrIKNS_17CompoundSymMatrixEED2Ev(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


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