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

; 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::TNLPAdapter" = type { %"class.SimTKIpopt::NLP.base", %"class.SimTKIpopt::SmartPtr.6", %"class.SimTKIpopt::SmartPtr.7", double, double, i32, i32, double, double, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr.5", %"class.SimTKIpopt::SmartPtr.8", ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", %"class.SimTKIpopt::SmartPtr.10", %"class.SimTKIpopt::SmartPtr.9", ptr, ptr, ptr }
%"class.SimTKIpopt::NLP.base" = type { %"class.SimTKIpopt::ReferencedObject.base" }
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::SmartPtr.6" = type { ptr }
%"class.SimTKIpopt::SmartPtr.7" = type { ptr }
%"class.SimTKIpopt::SmartPtr" = type { ptr }
%"class.SimTKIpopt::SmartPtr.5" = type { ptr }
%"class.SimTKIpopt::SmartPtr.8" = type { ptr }
%"class.SimTKIpopt::SmartPtr.10" = type { ptr }
%"class.SimTKIpopt::SmartPtr.9" = type { ptr }

@_ZTIN10SimTKIpopt6VectorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt11DenseVectorE = external constant ptr
@_ZTIN10SimTKIpopt6MatrixE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt15ExpansionMatrixE = external constant ptr

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter20GetBoundsInformationERKNS_6MatrixERNS_6VectorES3_S5_S3_S5_S3_S5_(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(69) %1, ptr noundef nonnull align 8 dereferenceable(205) %2, ptr noundef nonnull align 8 dereferenceable(69) %3, ptr noundef nonnull align 8 dereferenceable(205) %4, ptr noundef nonnull align 8 dereferenceable(69) %5, ptr noundef nonnull align 8 dereferenceable(205) %6, ptr noundef nonnull align 8 dereferenceable(69) %7, ptr noundef nonnull align 8 dereferenceable(205) %8) unnamed_addr #5 align 2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca double, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca double, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca double, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca double, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %61 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 12
  %62 = load i32, ptr %61, align 8, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %63, i64 8)
  %65 = extractvalue { i64, i1 } %64, 1
  %66 = extractvalue { i64, i1 } %64, 0
  %67 = select i1 %65, i64 -1, i64 %66
  %68 = call noalias noundef nonnull ptr @_Znam(i64 noundef %67) #9
  store ptr %68, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %69 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 12
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %71, i64 8)
  %73 = extractvalue { i64, i1 } %72, 1
  %74 = extractvalue { i64, i1 } %72, 0
  %75 = select i1 %73, i64 -1, i64 %74
  %76 = call noalias noundef nonnull ptr @_Znam(i64 noundef %75) #9
  store ptr %76, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %77 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 13
  %78 = load i32, ptr %77, align 4, !tbaa !27
  %79 = sext i32 %78 to i64
  %80 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %79, i64 8)
  %81 = extractvalue { i64, i1 } %80, 1
  %82 = extractvalue { i64, i1 } %80, 0
  %83 = select i1 %81, i64 -1, i64 %82
  %84 = call noalias noundef nonnull ptr @_Znam(i64 noundef %83) #9
  store ptr %84, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %85 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 13
  %86 = load i32, ptr %85, align 4, !tbaa !27
  %87 = sext i32 %86 to i64
  %88 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %87, i64 8)
  %89 = extractvalue { i64, i1 } %88, 1
  %90 = extractvalue { i64, i1 } %88, 0
  %91 = select i1 %89, i64 -1, i64 %90
  %92 = call noalias noundef nonnull ptr @_Znam(i64 noundef %91) #9
  store ptr %92, ptr %22, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 1
  %94 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_4TNLPEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %93)
  %95 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 12
  %96 = load i32, ptr %95, align 8, !tbaa !9
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 13
  %100 = load i32, ptr %99, align 4, !tbaa !27
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  %103 = load ptr, ptr %94, align 8, !tbaa !28
  %104 = getelementptr inbounds ptr, ptr %103, i64 3
  %105 = load ptr, ptr %104, align 8
  %106 = call noundef zeroext i1 %105(ptr noundef nonnull align 8 dereferenceable(12) %94, i32 noundef %96, ptr noundef %97, ptr noundef %98, i32 noundef %100, ptr noundef %101, ptr noundef %102)
  %107 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 5
  %108 = load i32, ptr %107, align 8, !tbaa !30
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %142

110:                                              ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !31
  br label %111

111:                                              ; preds = %138, %110
  %112 = load i32, ptr %23, align 4, !tbaa !31
  %113 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 20
  %114 = load i32, ptr %113, align 8, !tbaa !32
  %115 = icmp slt i32 %112, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %141

117:                                              ; preds = %111
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 58
  %120 = load ptr, ptr %119, align 8, !tbaa !33
  %121 = load i32, ptr %23, align 4, !tbaa !31
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !31
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %118, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !34
  %128 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 36
  %129 = load ptr, ptr %128, align 8, !tbaa !35
  %130 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 58
  %131 = load ptr, ptr %130, align 8, !tbaa !33
  %132 = load i32, ptr %23, align 4, !tbaa !31
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !31
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %129, i64 %136
  store double %127, ptr %137, align 8, !tbaa !34
  br label %138

138:                                              ; preds = %117
  %139 = load i32, ptr %23, align 4, !tbaa !31
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %23, align 4, !tbaa !31
  br label %111, !llvm.loop !36

141:                                              ; preds = %116
  br label %142

142:                                              ; preds = %141, %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = icmp eq ptr %143, null
  br i1 %144, label %147, label %145

145:                                              ; preds = %142
  %146 = call ptr @__dynamic_cast(ptr %143, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #8
  br label %148

147:                                              ; preds = %142
  br label %148

148:                                              ; preds = %147, %145
  %149 = phi ptr [ %146, %145 ], [ null, %147 ]
  store ptr %149, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %150 = load ptr, ptr %24, align 8, !tbaa !5
  %151 = call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %150)
  store ptr %151, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = icmp eq ptr %152, null
  br i1 %153, label %156, label %154

154:                                              ; preds = %148
  %155 = call ptr @__dynamic_cast(ptr %152, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #8
  br label %157

156:                                              ; preds = %148
  br label %157

157:                                              ; preds = %156, %154
  %158 = phi ptr [ %155, %154 ], [ null, %156 ]
  store ptr %158, ptr %26, align 8, !tbaa !5
  %159 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 46
  %160 = call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_15ExpansionMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %159)
  br i1 %160, label %161, label %196

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !31
  br label %162

162:                                              ; preds = %192, %161
  %163 = load i32, ptr %27, align 4, !tbaa !31
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %164)
  %166 = icmp slt i32 %163, %165
  br i1 %166, label %168, label %167

167:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %195

168:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %169 = load ptr, ptr %26, align 8, !tbaa !5
  %170 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %169)
  %171 = load i32, ptr %27, align 4, !tbaa !31
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i32, ptr %170, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !31
  store i32 %174, ptr %28, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %175 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 46
  %176 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %175)
  %177 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %176)
  %178 = load i32, ptr %28, align 4, !tbaa !31
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !31
  store i32 %181, ptr %29, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = load i32, ptr %29, align 4, !tbaa !31
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds double, ptr %182, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !34
  store double %186, ptr %30, align 8, !tbaa !34
  %187 = load double, ptr %30, align 8, !tbaa !34
  %188 = load ptr, ptr %25, align 8, !tbaa !5
  %189 = load i32, ptr %27, align 4, !tbaa !31
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds double, ptr %188, i64 %190
  store double %187, ptr %191, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %192

192:                                              ; preds = %168
  %193 = load i32, ptr %27, align 4, !tbaa !31
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %27, align 4, !tbaa !31
  br label %162, !llvm.loop !38

195:                                              ; preds = %167
  br label %224

196:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !31
  br label %197

197:                                              ; preds = %220, %196
  %198 = load i32, ptr %31, align 4, !tbaa !31
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %199)
  %201 = icmp slt i32 %198, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %223

203:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %204 = load ptr, ptr %26, align 8, !tbaa !5
  %205 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %204)
  %206 = load i32, ptr %31, align 4, !tbaa !31
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds i32, ptr %205, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !31
  store i32 %209, ptr %32, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %210 = load ptr, ptr %19, align 8, !tbaa !5
  %211 = load i32, ptr %32, align 4, !tbaa !31
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds double, ptr %210, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !34
  store double %214, ptr %33, align 8, !tbaa !34
  %215 = load double, ptr %33, align 8, !tbaa !34
  %216 = load ptr, ptr %25, align 8, !tbaa !5
  %217 = load i32, ptr %31, align 4, !tbaa !31
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  store double %215, ptr %219, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %220

220:                                              ; preds = %203
  %221 = load i32, ptr %31, align 4, !tbaa !31
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %31, align 4, !tbaa !31
  br label %197, !llvm.loop !39

223:                                              ; preds = %202
  br label %224

224:                                              ; preds = %223, %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = icmp eq ptr %225, null
  br i1 %226, label %229, label %227

227:                                              ; preds = %224
  %228 = call ptr @__dynamic_cast(ptr %225, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #8
  br label %230

229:                                              ; preds = %224
  br label %230

230:                                              ; preds = %229, %227
  %231 = phi ptr [ %228, %227 ], [ null, %229 ]
  store ptr %231, ptr %34, align 8, !tbaa !5
  %232 = load ptr, ptr %34, align 8, !tbaa !5
  %233 = call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %232)
  store ptr %233, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = icmp eq ptr %234, null
  br i1 %235, label %238, label %236

236:                                              ; preds = %230
  %237 = call ptr @__dynamic_cast(ptr %234, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #8
  br label %239

238:                                              ; preds = %230
  br label %239

239:                                              ; preds = %238, %236
  %240 = phi ptr [ %237, %236 ], [ null, %238 ]
  store ptr %240, ptr %35, align 8, !tbaa !5
  %241 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 46
  %242 = call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_15ExpansionMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %241)
  br i1 %242, label %243, label %278

243:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !31
  br label %244

244:                                              ; preds = %274, %243
  %245 = load i32, ptr %36, align 4, !tbaa !31
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  %247 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %246)
  %248 = icmp slt i32 %245, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %277

250:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %251 = load ptr, ptr %35, align 8, !tbaa !5
  %252 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %251)
  %253 = load i32, ptr %36, align 4, !tbaa !31
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i32, ptr %252, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !31
  store i32 %256, ptr %37, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %257 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 46
  %258 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %257)
  %259 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %258)
  %260 = load i32, ptr %37, align 4, !tbaa !31
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds i32, ptr %259, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !31
  store i32 %263, ptr %38, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %264 = load ptr, ptr %20, align 8, !tbaa !5
  %265 = load i32, ptr %38, align 4, !tbaa !31
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !34
  store double %268, ptr %39, align 8, !tbaa !34
  %269 = load double, ptr %39, align 8, !tbaa !34
  %270 = load ptr, ptr %25, align 8, !tbaa !5
  %271 = load i32, ptr %36, align 4, !tbaa !31
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds double, ptr %270, i64 %272
  store double %269, ptr %273, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %274

274:                                              ; preds = %250
  %275 = load i32, ptr %36, align 4, !tbaa !31
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %36, align 4, !tbaa !31
  br label %244, !llvm.loop !40

277:                                              ; preds = %249
  br label %306

278:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !31
  br label %279

279:                                              ; preds = %302, %278
  %280 = load i32, ptr %40, align 4, !tbaa !31
  %281 = load ptr, ptr %13, align 8, !tbaa !5
  %282 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %281)
  %283 = icmp slt i32 %280, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %305

285:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %286 = load ptr, ptr %35, align 8, !tbaa !5
  %287 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %286)
  %288 = load i32, ptr %40, align 4, !tbaa !31
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds i32, ptr %287, i64 %289
  %291 = load i32, ptr %290, align 4, !tbaa !31
  store i32 %291, ptr %41, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %292 = load ptr, ptr %20, align 8, !tbaa !5
  %293 = load i32, ptr %41, align 4, !tbaa !31
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds double, ptr %292, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !34
  store double %296, ptr %42, align 8, !tbaa !34
  %297 = load double, ptr %42, align 8, !tbaa !34
  %298 = load ptr, ptr %25, align 8, !tbaa !5
  %299 = load i32, ptr %40, align 4, !tbaa !31
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds double, ptr %298, i64 %300
  store double %297, ptr %301, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %302

302:                                              ; preds = %285
  %303 = load i32, ptr %40, align 4, !tbaa !31
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %40, align 4, !tbaa !31
  br label %279, !llvm.loop !41

305:                                              ; preds = %284
  br label %306

306:                                              ; preds = %305, %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  store i32 0, ptr %43, align 4, !tbaa !31
  br label %307

307:                                              ; preds = %333, %306
  %308 = load i32, ptr %43, align 4, !tbaa !31
  %309 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 53
  %310 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %309)
  %311 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %310)
  %312 = icmp slt i32 %308, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %336

314:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %315 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 53
  %316 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %315)
  %317 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %316)
  %318 = load i32, ptr %43, align 4, !tbaa !31
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds i32, ptr %317, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !31
  store i32 %321, ptr %44, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %322 = load ptr, ptr %21, align 8, !tbaa !5
  %323 = load i32, ptr %44, align 4, !tbaa !31
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds double, ptr %322, i64 %324
  %326 = load double, ptr %325, align 8, !tbaa !34
  store double %326, ptr %45, align 8, !tbaa !34
  %327 = load double, ptr %45, align 8, !tbaa !34
  %328 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 40
  %329 = load ptr, ptr %328, align 8, !tbaa !42
  %330 = load i32, ptr %43, align 4, !tbaa !31
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds double, ptr %329, i64 %331
  store double %327, ptr %332, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %333

333:                                              ; preds = %314
  %334 = load i32, ptr %43, align 4, !tbaa !31
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %43, align 4, !tbaa !31
  br label %307, !llvm.loop !43

336:                                              ; preds = %313
  %337 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 5
  %338 = load i32, ptr %337, align 8, !tbaa !30
  %339 = icmp eq i32 %338, 1
  br i1 %339, label %340, label %372

340:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %341 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 53
  %342 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %341)
  %343 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %342)
  store i32 %343, ptr %46, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  store i32 0, ptr %47, align 4, !tbaa !31
  br label %344

344:                                              ; preds = %368, %340
  %345 = load i32, ptr %47, align 4, !tbaa !31
  %346 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 20
  %347 = load i32, ptr %346, align 8, !tbaa !32
  %348 = icmp slt i32 %345, %347
  br i1 %348, label %350, label %349

349:                                              ; preds = %344
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %371

350:                                              ; preds = %344
  %351 = load ptr, ptr %19, align 8, !tbaa !5
  %352 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 58
  %353 = load ptr, ptr %352, align 8, !tbaa !33
  %354 = load i32, ptr %47, align 4, !tbaa !31
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds i32, ptr %353, i64 %355
  %357 = load i32, ptr %356, align 4, !tbaa !31
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds double, ptr %351, i64 %358
  %360 = load double, ptr %359, align 8, !tbaa !34
  %361 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 40
  %362 = load ptr, ptr %361, align 8, !tbaa !42
  %363 = load i32, ptr %46, align 4, !tbaa !31
  %364 = load i32, ptr %47, align 4, !tbaa !31
  %365 = add nsw i32 %363, %364
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds double, ptr %362, i64 %366
  store double %360, ptr %367, align 8, !tbaa !34
  br label %368

368:                                              ; preds = %350
  %369 = load i32, ptr %47, align 4, !tbaa !31
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %47, align 4, !tbaa !31
  br label %344, !llvm.loop !44

371:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %372

372:                                              ; preds = %371, %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %373 = load ptr, ptr %16, align 8, !tbaa !5
  %374 = icmp eq ptr %373, null
  br i1 %374, label %377, label %375

375:                                              ; preds = %372
  %376 = call ptr @__dynamic_cast(ptr %373, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #8
  br label %378

377:                                              ; preds = %372
  br label %378

378:                                              ; preds = %377, %375
  %379 = phi ptr [ %376, %375 ], [ null, %377 ]
  store ptr %379, ptr %48, align 8, !tbaa !5
  %380 = load ptr, ptr %48, align 8, !tbaa !5
  %381 = call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %380)
  store ptr %381, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %382 = load ptr, ptr %15, align 8, !tbaa !5
  %383 = icmp eq ptr %382, null
  br i1 %383, label %386, label %384

384:                                              ; preds = %378
  %385 = call ptr @__dynamic_cast(ptr %382, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #8
  br label %387

386:                                              ; preds = %378
  br label %387

387:                                              ; preds = %386, %384
  %388 = phi ptr [ %385, %384 ], [ null, %386 ]
  store ptr %388, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  store i32 0, ptr %50, align 4, !tbaa !31
  br label %389

389:                                              ; preds = %419, %387
  %390 = load i32, ptr %50, align 4, !tbaa !31
  %391 = load ptr, ptr %15, align 8, !tbaa !5
  %392 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %391)
  %393 = icmp slt i32 %390, %392
  br i1 %393, label %395, label %394

394:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %422

395:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %396 = load ptr, ptr %49, align 8, !tbaa !5
  %397 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %396)
  %398 = load i32, ptr %50, align 4, !tbaa !31
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds i32, ptr %397, i64 %399
  %401 = load i32, ptr %400, align 4, !tbaa !31
  store i32 %401, ptr %51, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %402 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 55
  %403 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %402)
  %404 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %403)
  %405 = load i32, ptr %51, align 4, !tbaa !31
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds i32, ptr %404, i64 %406
  %408 = load i32, ptr %407, align 4, !tbaa !31
  store i32 %408, ptr %52, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %409 = load ptr, ptr %21, align 8, !tbaa !5
  %410 = load i32, ptr %52, align 4, !tbaa !31
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds double, ptr %409, i64 %411
  %413 = load double, ptr %412, align 8, !tbaa !34
  store double %413, ptr %53, align 8, !tbaa !34
  %414 = load double, ptr %53, align 8, !tbaa !34
  %415 = load ptr, ptr %25, align 8, !tbaa !5
  %416 = load i32, ptr %50, align 4, !tbaa !31
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds double, ptr %415, i64 %417
  store double %414, ptr %418, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %419

419:                                              ; preds = %395
  %420 = load i32, ptr %50, align 4, !tbaa !31
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %50, align 4, !tbaa !31
  br label %389, !llvm.loop !45

422:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %423 = load ptr, ptr %18, align 8, !tbaa !5
  %424 = icmp eq ptr %423, null
  br i1 %424, label %427, label %425

425:                                              ; preds = %422
  %426 = call ptr @__dynamic_cast(ptr %423, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #8
  br label %428

427:                                              ; preds = %422
  br label %428

428:                                              ; preds = %427, %425
  %429 = phi ptr [ %426, %425 ], [ null, %427 ]
  store ptr %429, ptr %54, align 8, !tbaa !5
  %430 = load ptr, ptr %54, align 8, !tbaa !5
  %431 = call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %430)
  store ptr %431, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %432 = load ptr, ptr %17, align 8, !tbaa !5
  %433 = icmp eq ptr %432, null
  br i1 %433, label %436, label %434

434:                                              ; preds = %428
  %435 = call ptr @__dynamic_cast(ptr %432, ptr @_ZTIN10SimTKIpopt6MatrixE, ptr @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #8
  br label %437

436:                                              ; preds = %428
  br label %437

437:                                              ; preds = %436, %434
  %438 = phi ptr [ %435, %434 ], [ null, %436 ]
  store ptr %438, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  store i32 0, ptr %56, align 4, !tbaa !31
  br label %439

439:                                              ; preds = %469, %437
  %440 = load i32, ptr %56, align 4, !tbaa !31
  %441 = load ptr, ptr %17, align 8, !tbaa !5
  %442 = call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %441)
  %443 = icmp slt i32 %440, %442
  br i1 %443, label %445, label %444

444:                                              ; preds = %439
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %472

445:                                              ; preds = %439
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  %446 = load ptr, ptr %55, align 8, !tbaa !5
  %447 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %446)
  %448 = load i32, ptr %56, align 4, !tbaa !31
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds i32, ptr %447, i64 %449
  %451 = load i32, ptr %450, align 4, !tbaa !31
  store i32 %451, ptr %57, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  %452 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %60, i32 0, i32 55
  %453 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %452)
  %454 = call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %453)
  %455 = load i32, ptr %57, align 4, !tbaa !31
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds i32, ptr %454, i64 %456
  %458 = load i32, ptr %457, align 4, !tbaa !31
  store i32 %458, ptr %58, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %459 = load ptr, ptr %22, align 8, !tbaa !5
  %460 = load i32, ptr %58, align 4, !tbaa !31
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds double, ptr %459, i64 %461
  %463 = load double, ptr %462, align 8, !tbaa !34
  store double %463, ptr %59, align 8, !tbaa !34
  %464 = load double, ptr %59, align 8, !tbaa !34
  %465 = load ptr, ptr %25, align 8, !tbaa !5
  %466 = load i32, ptr %56, align 4, !tbaa !31
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds double, ptr %465, i64 %467
  store double %464, ptr %468, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  br label %469

469:                                              ; preds = %445
  %470 = load i32, ptr %56, align 4, !tbaa !31
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %56, align 4, !tbaa !31
  br label %439, !llvm.loop !46

472:                                              ; preds = %444
  %473 = load ptr, ptr %19, align 8, !tbaa !5
  %474 = icmp eq ptr %473, null
  br i1 %474, label %476, label %475

475:                                              ; preds = %472
  call void @_ZdaPv(ptr noundef %473) #10
  br label %476

476:                                              ; preds = %475, %472
  store ptr null, ptr %19, align 8, !tbaa !5
  %477 = load ptr, ptr %20, align 8, !tbaa !5
  %478 = icmp eq ptr %477, null
  br i1 %478, label %480, label %479

479:                                              ; preds = %476
  call void @_ZdaPv(ptr noundef %477) #10
  br label %480

480:                                              ; preds = %479, %476
  store ptr null, ptr %20, align 8, !tbaa !5
  %481 = load ptr, ptr %21, align 8, !tbaa !5
  %482 = icmp eq ptr %481, null
  br i1 %482, label %484, label %483

483:                                              ; preds = %480
  call void @_ZdaPv(ptr noundef %481) #10
  br label %484

484:                                              ; preds = %483, %480
  store ptr null, ptr %21, align 8, !tbaa !5
  %485 = load ptr, ptr %22, align 8, !tbaa !5
  %486 = icmp eq ptr %485, null
  br i1 %486, label %488, label %487

487:                                              ; preds = %484
  call void @_ZdaPv(ptr noundef %485) #10
  br label %488

488:                                              ; preds = %487, %484
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  ret i1 true
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240)) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69)) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80)) #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 willreturn memory(read) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !13, i64 80}
!10 = !{!"_ZTSN10SimTKIpopt11TNLPAdapterE", !11, i64 0, !14, i64 16, !15, i64 24, !16, i64 32, !16, i64 40, !17, i64 48, !18, i64 52, !16, i64 56, !16, i64 64, !19, i64 72, !19, i64 73, !20, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !21, i64 116, !22, i64 120, !22, i64 128, !22, i64 136, !22, i64 144, !23, i64 152, !22, i64 160, !23, i64 168, !22, i64 176, !23, i64 184, !22, i64 192, !23, i64 200, !23, i64 208, !23, i64 216, !24, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !25, i64 296, !26, i64 304, !25, i64 312, !26, i64 320, !25, i64 328, !26, i64 336, !26, i64 344, !25, i64 352, !26, i64 360, !25, i64 368, !6, i64 376, !6, i64 384, !6, i64 392}
!11 = !{!"_ZTSN10SimTKIpopt3NLPE", !12, i64 0}
!12 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_4TNLPEEE", !6, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !6, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt11TNLPAdapter26FixedVariableTreatmentEnumE", !7, i64 0}
!18 = !{!"_ZTSN10SimTKIpopt11TNLPAdapter18DerivativeTestEnumE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt24HessianApproximationTypeE", !7, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt4TNLP14IndexStyleEnumE", !7, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEE", !6, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEE", !6, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEEE", !6, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEE", !6, i64 0}
!26 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEE", !6, i64 0}
!27 = !{!10, !13, i64 84}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, i64 0}
!30 = !{!10, !17, i64 48}
!31 = !{!13, !13, i64 0}
!32 = !{!10, !13, i64 112}
!33 = !{!10, !6, i64 392}
!34 = !{!16, !16, i64 0}
!35 = !{!10, !6, i64 232}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !37}
!41 = distinct !{!41, !37}
!42 = !{!10, !6, i64 264}
!43 = distinct !{!43, !37}
!44 = distinct !{!44, !37}
!45 = distinct !{!45, !37}
!46 = distinct !{!46, !37}


; 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"

@_ZTIN10SimTKIpopt6VectorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt11DenseVectorE = external constant ptr
@_ZTIN10SimTKIpopt6MatrixE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt15ExpansionMatrixE = external constant ptr

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter20GetBoundsInformationERKNS_6MatrixERNS_6VectorES3_S5_S3_S5_S3_S5_(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(69) %1, ptr noundef nonnull align 8 dereferenceable(205) %2, ptr noundef nonnull align 8 dereferenceable(69) %3, ptr noundef nonnull align 8 dereferenceable(205) %4, ptr noundef nonnull align 8 dereferenceable(69) %5, ptr noundef nonnull align 8 dereferenceable(205) %6, ptr noundef nonnull align 8 dereferenceable(69) %7, ptr noundef nonnull align 8 dereferenceable(205) %8) unnamed_addr #3 align 2 {
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = icmp slt i32 %11, 0
  %14 = shl nsw i64 %12, 3
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #6
  %17 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 84
  %19 = load i32, ptr %18, align 4, !tbaa !26
  %20 = sext i32 %19 to i64
  %21 = icmp slt i32 %19, 0
  %22 = shl nsw i64 %20, 3
  %23 = select i1 %21, i64 -1, i64 %22
  %24 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #6
  %25 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #6
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_4TNLPEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %28 = load i32, ptr %10, align 8, !tbaa !5
  %29 = load i32, ptr %18, align 4, !tbaa !26
  %30 = load ptr, ptr %27, align 8, !tbaa !27
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = load ptr, ptr %31, align 8
  %33 = tail call noundef zeroext i1 %32(ptr noundef nonnull align 8 dereferenceable(12) %27, i32 noundef %28, ptr noundef nonnull %16, ptr noundef nonnull %17, i32 noundef %29, ptr noundef nonnull %24, ptr noundef nonnull %25)
  %34 = getelementptr inbounds i8, ptr %0, i64 48
  %35 = load i32, ptr %34, align 8, !tbaa !29
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %.preheader117, label %.loopexit118

.preheader117:                                    ; preds = %9
  %37 = getelementptr inbounds i8, ptr %0, i64 112
  %38 = load i32, ptr %37, align 8, !tbaa !30
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %.loopexit118

.lr.ph:                                           ; preds = %.preheader117
  %40 = getelementptr inbounds i8, ptr %0, i64 392
  %41 = load ptr, ptr %40, align 8, !tbaa !31
  %42 = getelementptr inbounds i8, ptr %0, i64 232
  %43 = load ptr, ptr %42, align 8, !tbaa !32
  %wide.trip.count = zext nneg i32 %38 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %44 = icmp ult i32 %38, 4
  br i1 %44, label %.loopexit118.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %45

45:                                               ; preds = %45, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %45 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %45 ]
  %46 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv
  %47 = load i32, ptr %46, align 4, !tbaa !33
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %16, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !34
  %51 = getelementptr inbounds double, ptr %43, i64 %48
  store double %50, ptr %51, align 8, !tbaa !34
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %52 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv.next
  %53 = load i32, ptr %52, align 4, !tbaa !33
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %16, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !34
  %57 = getelementptr inbounds double, ptr %43, i64 %54
  store double %56, ptr %57, align 8, !tbaa !34
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %58 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv.next.1
  %59 = load i32, ptr %58, align 4, !tbaa !33
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %16, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !34
  %63 = getelementptr inbounds double, ptr %43, i64 %60
  store double %62, ptr %63, align 8, !tbaa !34
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %64 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv.next.2
  %65 = load i32, ptr %64, align 4, !tbaa !33
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %16, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !34
  %69 = getelementptr inbounds double, ptr %43, i64 %66
  store double %68, ptr %69, align 8, !tbaa !34
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit118.loopexit.unr-lcssa, label %45, !llvm.loop !35

.loopexit118.loopexit.unr-lcssa:                  ; preds = %45, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %45 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit118, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit118.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.loopexit118.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit118.loopexit.unr-lcssa ]
  %70 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv.epil
  %71 = load i32, ptr %70, align 4, !tbaa !33
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %16, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !34
  %75 = getelementptr inbounds double, ptr %43, i64 %72
  store double %74, ptr %75, align 8, !tbaa !34
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit118, label %.epil.preheader, !llvm.loop !37

.loopexit118:                                     ; preds = %.loopexit118.loopexit.unr-lcssa, %.epil.preheader, %.preheader117, %9
  %76 = tail call ptr @__dynamic_cast(ptr nonnull %2, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #7
  %77 = tail call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %76)
  %78 = tail call ptr @__dynamic_cast(ptr nonnull %1, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #7
  %79 = getelementptr inbounds i8, ptr %0, i64 296
  %80 = tail call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_15ExpansionMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %79)
  %81 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %1)
  %82 = icmp sgt i32 %81, 0
  br i1 %80, label %.preheader113, label %.preheader115

.preheader115:                                    ; preds = %.loopexit118
  br i1 %82, label %.lr.ph121, label %.loopexit114

.preheader113:                                    ; preds = %.loopexit118
  br i1 %82, label %.lr.ph123, label %.loopexit114

.lr.ph123:                                        ; preds = %.preheader113, %.lr.ph123
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %.lr.ph123 ], [ 0, %.preheader113 ]
  %83 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %78)
  %84 = getelementptr inbounds i32, ptr %83, i64 %indvars.iv147
  %85 = load i32, ptr %84, align 4, !tbaa !33
  %86 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79)
  %87 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %86)
  %88 = sext i32 %85 to i64
  %89 = getelementptr inbounds i32, ptr %87, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !33
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %16, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !34
  %94 = getelementptr inbounds double, ptr %77, i64 %indvars.iv147
  store double %93, ptr %94, align 8, !tbaa !34
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %95 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %1)
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next148, %96
  br i1 %97, label %.lr.ph123, label %.loopexit114, !llvm.loop !39

.lr.ph121:                                        ; preds = %.preheader115, %.lr.ph121
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %.lr.ph121 ], [ 0, %.preheader115 ]
  %98 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %78)
  %99 = getelementptr inbounds i32, ptr %98, i64 %indvars.iv144
  %100 = load i32, ptr %99, align 4, !tbaa !33
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %16, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !34
  %104 = getelementptr inbounds double, ptr %77, i64 %indvars.iv144
  store double %103, ptr %104, align 8, !tbaa !34
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %105 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %1)
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next145, %106
  br i1 %107, label %.lr.ph121, label %.loopexit114, !llvm.loop !40

.loopexit114:                                     ; preds = %.lr.ph121, %.lr.ph123, %.preheader115, %.preheader113
  %108 = tail call ptr @__dynamic_cast(ptr nonnull %4, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #7
  %109 = tail call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %108)
  %110 = tail call ptr @__dynamic_cast(ptr nonnull %3, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #7
  %111 = tail call noundef zeroext i1 @_ZN10SimTKIpopt7IsValidINS_15ExpansionMatrixEEEbRKNS_8SmartPtrIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %79)
  %112 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %3)
  %113 = icmp sgt i32 %112, 0
  br i1 %111, label %.preheader, label %.preheader111

.preheader111:                                    ; preds = %.loopexit114
  br i1 %113, label %.lr.ph125, label %.loopexit110

.preheader:                                       ; preds = %.loopexit114
  br i1 %113, label %.lr.ph127, label %.loopexit110

.lr.ph127:                                        ; preds = %.preheader, %.lr.ph127
  %indvars.iv153 = phi i64 [ %indvars.iv.next154, %.lr.ph127 ], [ 0, %.preheader ]
  %114 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %110)
  %115 = getelementptr inbounds i32, ptr %114, i64 %indvars.iv153
  %116 = load i32, ptr %115, align 4, !tbaa !33
  %117 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79)
  %118 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %117)
  %119 = sext i32 %116 to i64
  %120 = getelementptr inbounds i32, ptr %118, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !33
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %17, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !34
  %125 = getelementptr inbounds double, ptr %109, i64 %indvars.iv153
  store double %124, ptr %125, align 8, !tbaa !34
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %126 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %3)
  %127 = sext i32 %126 to i64
  %128 = icmp slt i64 %indvars.iv.next154, %127
  br i1 %128, label %.lr.ph127, label %.loopexit110, !llvm.loop !41

.lr.ph125:                                        ; preds = %.preheader111, %.lr.ph125
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.lr.ph125 ], [ 0, %.preheader111 ]
  %129 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %110)
  %130 = getelementptr inbounds i32, ptr %129, i64 %indvars.iv150
  %131 = load i32, ptr %130, align 4, !tbaa !33
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %17, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !34
  %135 = getelementptr inbounds double, ptr %109, i64 %indvars.iv150
  store double %134, ptr %135, align 8, !tbaa !34
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %136 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %3)
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv.next151, %137
  br i1 %138, label %.lr.ph125, label %.loopexit110, !llvm.loop !42

.loopexit110:                                     ; preds = %.lr.ph125, %.lr.ph127, %.preheader111, %.preheader
  %139 = getelementptr inbounds i8, ptr %0, i64 352
  %140 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %139)
  %141 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %140)
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph129, label %._crit_edge

.lr.ph129:                                        ; preds = %.loopexit110
  %143 = getelementptr inbounds i8, ptr %0, i64 264
  br label %146

._crit_edge:                                      ; preds = %146, %.loopexit110
  %144 = load i32, ptr %34, align 8, !tbaa !29
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %160, label %.loopexit

146:                                              ; preds = %.lr.ph129, %146
  %indvars.iv156 = phi i64 [ 0, %.lr.ph129 ], [ %indvars.iv.next157, %146 ]
  %147 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %139)
  %148 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %147)
  %149 = getelementptr inbounds i32, ptr %148, i64 %indvars.iv156
  %150 = load i32, ptr %149, align 4, !tbaa !33
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %24, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !34
  %154 = load ptr, ptr %143, align 8, !tbaa !43
  %155 = getelementptr inbounds double, ptr %154, i64 %indvars.iv156
  store double %153, ptr %155, align 8, !tbaa !34
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %156 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %139)
  %157 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %156)
  %158 = sext i32 %157 to i64
  %159 = icmp slt i64 %indvars.iv.next157, %158
  br i1 %159, label %146, label %._crit_edge, !llvm.loop !44

160:                                              ; preds = %._crit_edge
  %161 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %139)
  %162 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %161)
  %163 = getelementptr inbounds i8, ptr %0, i64 112
  %164 = load i32, ptr %163, align 8, !tbaa !30
  %165 = icmp sgt i32 %164, 0
  br i1 %165, label %.lr.ph132, label %.loopexit

.lr.ph132:                                        ; preds = %160
  %166 = getelementptr inbounds i8, ptr %0, i64 392
  %167 = load ptr, ptr %166, align 8, !tbaa !31
  %168 = getelementptr inbounds i8, ptr %0, i64 264
  %169 = load ptr, ptr %168, align 8, !tbaa !43
  %170 = sext i32 %162 to i64
  %wide.trip.count162 = zext nneg i32 %164 to i64
  %invariant.gep = getelementptr double, ptr %169, i64 %170
  %xtraiter177 = and i64 %wide.trip.count162, 3
  %171 = icmp ult i32 %164, 4
  br i1 %171, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph132.new

.lr.ph132.new:                                    ; preds = %.lr.ph132
  %unroll_iter180 = and i64 %wide.trip.count162, 2147483644
  br label %172

172:                                              ; preds = %172, %.lr.ph132.new
  %indvars.iv159 = phi i64 [ 0, %.lr.ph132.new ], [ %indvars.iv.next160.3, %172 ]
  %niter181 = phi i64 [ 0, %.lr.ph132.new ], [ %niter181.next.3, %172 ]
  %173 = getelementptr inbounds i32, ptr %167, i64 %indvars.iv159
  %174 = load i32, ptr %173, align 4, !tbaa !33
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %16, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !34
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv159
  store double %177, ptr %gep, align 8, !tbaa !34
  %indvars.iv.next160 = or disjoint i64 %indvars.iv159, 1
  %178 = getelementptr inbounds i32, ptr %167, i64 %indvars.iv.next160
  %179 = load i32, ptr %178, align 4, !tbaa !33
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %16, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !34
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next160
  store double %182, ptr %gep.1, align 8, !tbaa !34
  %indvars.iv.next160.1 = or disjoint i64 %indvars.iv159, 2
  %183 = getelementptr inbounds i32, ptr %167, i64 %indvars.iv.next160.1
  %184 = load i32, ptr %183, align 4, !tbaa !33
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %16, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !34
  %gep.2 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next160.1
  store double %187, ptr %gep.2, align 8, !tbaa !34
  %indvars.iv.next160.2 = or disjoint i64 %indvars.iv159, 3
  %188 = getelementptr inbounds i32, ptr %167, i64 %indvars.iv.next160.2
  %189 = load i32, ptr %188, align 4, !tbaa !33
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds double, ptr %16, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !34
  %gep.3 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next160.2
  store double %192, ptr %gep.3, align 8, !tbaa !34
  %indvars.iv.next160.3 = add nuw nsw i64 %indvars.iv159, 4
  %niter181.next.3 = add i64 %niter181, 4
  %niter181.ncmp.3 = icmp eq i64 %niter181.next.3, %unroll_iter180
  br i1 %niter181.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %172, !llvm.loop !45

.loopexit.loopexit.unr-lcssa:                     ; preds = %172, %.lr.ph132
  %indvars.iv159.unr = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next160.3, %172 ]
  %lcmp.mod179.not = icmp eq i64 %xtraiter177, 0
  br i1 %lcmp.mod179.not, label %.loopexit, label %.epil.preheader176

.epil.preheader176:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader176
  %indvars.iv159.epil = phi i64 [ %indvars.iv.next160.epil, %.epil.preheader176 ], [ %indvars.iv159.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter178 = phi i64 [ %epil.iter178.next, %.epil.preheader176 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %193 = getelementptr inbounds i32, ptr %167, i64 %indvars.iv159.epil
  %194 = load i32, ptr %193, align 4, !tbaa !33
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %16, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !34
  %gep.epil = getelementptr double, ptr %invariant.gep, i64 %indvars.iv159.epil
  store double %197, ptr %gep.epil, align 8, !tbaa !34
  %indvars.iv.next160.epil = add nuw nsw i64 %indvars.iv159.epil, 1
  %epil.iter178.next = add i64 %epil.iter178, 1
  %epil.iter178.cmp.not = icmp eq i64 %epil.iter178.next, %xtraiter177
  br i1 %epil.iter178.cmp.not, label %.loopexit, label %.epil.preheader176, !llvm.loop !46

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader176, %160, %._crit_edge
  %198 = tail call ptr @__dynamic_cast(ptr nonnull %6, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #7
  %199 = tail call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %198)
  %200 = tail call ptr @__dynamic_cast(ptr nonnull %5, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #7
  %201 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %5)
  %202 = icmp sgt i32 %201, 0
  br i1 %202, label %.lr.ph135, label %._crit_edge136

.lr.ph135:                                        ; preds = %.loopexit
  %203 = getelementptr inbounds i8, ptr %0, i64 368
  br label %204

204:                                              ; preds = %.lr.ph135, %204
  %indvars.iv164 = phi i64 [ 0, %.lr.ph135 ], [ %indvars.iv.next165, %204 ]
  %205 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %200)
  %206 = getelementptr inbounds i32, ptr %205, i64 %indvars.iv164
  %207 = load i32, ptr %206, align 4, !tbaa !33
  %208 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %203)
  %209 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %208)
  %210 = sext i32 %207 to i64
  %211 = getelementptr inbounds i32, ptr %209, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !33
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %24, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !34
  %216 = getelementptr inbounds double, ptr %199, i64 %indvars.iv164
  store double %215, ptr %216, align 8, !tbaa !34
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %217 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %5)
  %218 = sext i32 %217 to i64
  %219 = icmp slt i64 %indvars.iv.next165, %218
  br i1 %219, label %204, label %._crit_edge136, !llvm.loop !47

._crit_edge136:                                   ; preds = %204, %.loopexit
  %220 = tail call ptr @__dynamic_cast(ptr nonnull %8, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #7
  %221 = tail call noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %220)
  %222 = tail call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN10SimTKIpopt6MatrixE, ptr nonnull @_ZTIN10SimTKIpopt15ExpansionMatrixE, i64 0) #7
  %223 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %7)
  %224 = icmp sgt i32 %223, 0
  br i1 %224, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %._crit_edge136
  %225 = getelementptr inbounds i8, ptr %0, i64 368
  br label %226

226:                                              ; preds = %.lr.ph139, %226
  %indvars.iv167 = phi i64 [ 0, %.lr.ph139 ], [ %indvars.iv.next168, %226 ]
  %227 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %222)
  %228 = getelementptr inbounds i32, ptr %227, i64 %indvars.iv167
  %229 = load i32, ptr %228, align 4, !tbaa !33
  %230 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %225)
  %231 = tail call noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80) %230)
  %232 = sext i32 %229 to i64
  %233 = getelementptr inbounds i32, ptr %231, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !33
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %25, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !34
  %238 = getelementptr inbounds double, ptr %221, i64 %indvars.iv167
  store double %237, ptr %238, align 8, !tbaa !34
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %239 = tail call noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69) %7)
  %240 = sext i32 %239 to i64
  %241 = icmp slt i64 %indvars.iv.next168, %240
  br i1 %241, label %226, label %._crit_edge140, !llvm.loop !48

._crit_edge140:                                   ; preds = %226, %._crit_edge136
  tail call void @_ZdaPv(ptr noundef nonnull %16) #8
  tail call void @_ZdaPv(ptr noundef nonnull %17) #8
  tail call void @_ZdaPv(ptr noundef nonnull %24) #8
  tail call void @_ZdaPv(ptr noundef nonnull %25) #8
  ret i1 true
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK10SimTKIpopt6Matrix5NColsEv(ptr noundef nonnull align 8 dereferenceable(69)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK10SimTKIpopt15ExpansionMatrix18ExpandedPosIndicesEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5 align 2

attributes #0 = { nobuiltin nounwind "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 #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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(read) }
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 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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, !9, i64 80}
!6 = !{!"_ZTSN10SimTKIpopt11TNLPAdapterE", !7, i64 0, !12, i64 16, !14, i64 24, !15, i64 32, !15, i64 40, !16, i64 48, !17, i64 52, !15, i64 56, !15, i64 64, !18, i64 72, !18, i64 73, !19, i64 76, !9, i64 80, !9, i64 84, !9, i64 88, !9, i64 92, !9, i64 96, !9, i64 100, !9, i64 104, !9, i64 108, !9, i64 112, !20, i64 116, !21, i64 120, !21, i64 128, !21, i64 136, !21, i64 144, !22, i64 152, !21, i64 160, !22, i64 168, !21, i64 176, !22, i64 184, !21, i64 192, !22, i64 200, !22, i64 208, !22, i64 216, !23, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !9, i64 272, !9, i64 276, !9, i64 280, !9, i64 284, !9, i64 288, !24, i64 296, !25, i64 304, !24, i64 312, !25, i64 320, !24, i64 328, !25, i64 336, !25, i64 344, !24, i64 352, !25, i64 360, !24, i64 368, !13, i64 376, !13, i64 384, !13, i64 392}
!7 = !{!"_ZTSN10SimTKIpopt3NLPE", !8, i64 0}
!8 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !9, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_4TNLPEEE", !13, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !13, i64 0}
!15 = !{!"double", !10, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt11TNLPAdapter26FixedVariableTreatmentEnumE", !10, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt11TNLPAdapter18DerivativeTestEnumE", !10, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt24HessianApproximationTypeE", !10, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt4TNLP14IndexStyleEnumE", !10, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11VectorSpaceEEE", !13, i64 0}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_11MatrixSpaceEEE", !13, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_14SymMatrixSpaceEEE", !13, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_15ExpansionMatrixEEE", !13, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_20ExpansionMatrixSpaceEEE", !13, i64 0}
!26 = !{!6, !9, i64 84}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !11, i64 0}
!29 = !{!6, !16, i64 48}
!30 = !{!6, !9, i64 112}
!31 = !{!6, !13, i64 392}
!32 = !{!6, !13, i64 232}
!33 = !{!9, !9, i64 0}
!34 = !{!15, !15, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.unroll.disable"}
!39 = distinct !{!39, !36}
!40 = distinct !{!40, !36}
!41 = distinct !{!41, !36}
!42 = distinct !{!42, !36}
!43 = !{!6, !13, i64 264}
!44 = distinct !{!44, !36}
!45 = distinct !{!45, !36}
!46 = distinct !{!46, !38}
!47 = distinct !{!47, !36}
!48 = distinct !{!48, !36}


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