; 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

; 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: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter14update_local_xERKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(205)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter19update_local_lambdaERKNS_6VectorES3_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205)) #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt11TNLPAdapter16FinalizeSolutionENS_12SolverReturnERKNS_6VectorES4_S4_S4_S4_S4_S4_d(ptr noundef nonnull align 8 dereferenceable(400) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(205) %2, ptr noundef nonnull align 8 dereferenceable(205) %3, ptr noundef nonnull align 8 dereferenceable(205) %4, ptr noundef nonnull align 8 dereferenceable(205) %5, ptr noundef nonnull align 8 dereferenceable(205) %6, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, double noundef %9) unnamed_addr #7 align 2 {
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %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 double, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store double %9, ptr %20, align 8, !tbaa !11
  %29 = load ptr, ptr %11, align 8
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter14update_local_xERKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(205) %30)
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  %33 = load ptr, ptr %19, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter19update_local_lambdaERKNS_6VectorES3_(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(205) %32, ptr noundef nonnull align 8 dereferenceable(205) %33)
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 36
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  call void @_ZN10SimTKIpopt11TNLPAdapter7ResortXERKNS_6VectorEPd(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(205) %35, ptr noundef %37)
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  %39 = load ptr, ptr %19, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 37
  %41 = load ptr, ptr %40, align 8, !tbaa !30
  call void @_ZN10SimTKIpopt11TNLPAdapter7ResortGERKNS_6VectorES3_Pd(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(205) %38, ptr noundef nonnull align 8 dereferenceable(205) %39, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %42 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 13
  %43 = load i32, ptr %42, align 4, !tbaa !31
  %44 = sext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 8)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #10
  store ptr %49, ptr %21, align 8, !tbaa !5
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = load ptr, ptr %17, align 8, !tbaa !5
  %52 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN10SimTKIpopt11TNLPAdapter7ResortGERKNS_6VectorES3_Pd(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(205) %50, ptr noundef nonnull align 8 dereferenceable(205) %51, ptr noundef %52)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %53 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 12
  %54 = load i32, ptr %53, align 8, !tbaa !32
  %55 = sext i32 %54 to i64
  %56 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %55, i64 8)
  %57 = extractvalue { i64, i1 } %56, 1
  %58 = extractvalue { i64, i1 } %56, 0
  %59 = select i1 %57, i64 -1, i64 %58
  %60 = call noalias noundef nonnull ptr @_Znam(i64 noundef %59) #10
  store ptr %60, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %61 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 12
  %62 = load i32, ptr %61, align 8, !tbaa !32
  %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) #10
  store ptr %68, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !33
  br label %69

69:                                               ; preds = %88, %10
  %70 = load i32, ptr %24, align 4, !tbaa !33
  %71 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 12
  %72 = load i32, ptr %71, align 8, !tbaa !32
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %91

75:                                               ; preds = %69
  %76 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 3
  %77 = load double, ptr %76, align 8, !tbaa !34
  %78 = load ptr, ptr %22, align 8, !tbaa !5
  %79 = load i32, ptr %24, align 4, !tbaa !33
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  store double %77, ptr %81, align 8, !tbaa !11
  %82 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 4
  %83 = load double, ptr %82, align 8, !tbaa !35
  %84 = load ptr, ptr %23, align 8, !tbaa !5
  %85 = load i32, ptr %24, align 4, !tbaa !33
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %84, i64 %86
  store double %83, ptr %87, align 8, !tbaa !11
  br label %88

88:                                               ; preds = %75
  %89 = load i32, ptr %24, align 4, !tbaa !33
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %24, align 4, !tbaa !33
  br label %69, !llvm.loop !36

91:                                               ; preds = %74
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load ptr, ptr %22, align 8, !tbaa !5
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN10SimTKIpopt11TNLPAdapter10ResortBndsERKNS_6VectorEPdS3_S4_(ptr noundef nonnull align 8 dereferenceable(400) %29, ptr noundef nonnull align 8 dereferenceable(205) %92, ptr noundef %93, ptr noundef nonnull align 8 dereferenceable(205) %94, ptr noundef %95)
  %96 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 5
  %97 = load i32, ptr %96, align 8, !tbaa !38
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %164

99:                                               ; preds = %91
  %100 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 20
  %101 = load i32, ptr %100, align 8, !tbaa !39
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %103, label %164

103:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %108, label %106

106:                                              ; preds = %103
  %107 = call ptr @__dynamic_cast(ptr %104, ptr @_ZTIN10SimTKIpopt6VectorE, ptr @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #9
  br label %109

108:                                              ; preds = %103
  br label %109

109:                                              ; preds = %108, %106
  %110 = phi ptr [ %107, %106 ], [ null, %108 ]
  store ptr %110, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %111 = load ptr, ptr %25, align 8, !tbaa !5
  %112 = call noundef ptr @_ZNK10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %111)
  store ptr %112, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %113)
  %115 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 20
  %116 = load i32, ptr %115, align 8, !tbaa !39
  %117 = sub nsw i32 %114, %116
  store i32 %117, ptr %27, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !33
  br label %118

118:                                              ; preds = %160, %109
  %119 = load i32, ptr %28, align 4, !tbaa !33
  %120 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 20
  %121 = load i32, ptr %120, align 8, !tbaa !39
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %163

124:                                              ; preds = %118
  %125 = load ptr, ptr %26, align 8, !tbaa !5
  %126 = load i32, ptr %27, align 4, !tbaa !33
  %127 = load i32, ptr %28, align 4, !tbaa !33
  %128 = add nsw i32 %126, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %125, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !11
  %132 = fneg double %131
  %133 = call noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef 0.000000e+00, double noundef %132)
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 58
  %136 = load ptr, ptr %135, align 8, !tbaa !40
  %137 = load i32, ptr %28, align 4, !tbaa !33
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !33
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %134, i64 %141
  store double %133, ptr %142, align 8, !tbaa !11
  %143 = load ptr, ptr %26, align 8, !tbaa !5
  %144 = load i32, ptr %27, align 4, !tbaa !33
  %145 = load i32, ptr %28, align 4, !tbaa !33
  %146 = add nsw i32 %144, %145
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %143, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = call noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef 0.000000e+00, double noundef %149)
  %151 = load ptr, ptr %23, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 58
  %153 = load ptr, ptr %152, align 8, !tbaa !40
  %154 = load i32, ptr %28, align 4, !tbaa !33
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %153, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !33
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %151, i64 %158
  store double %150, ptr %159, align 8, !tbaa !11
  br label %160

160:                                              ; preds = %124
  %161 = load i32, ptr %28, align 4, !tbaa !33
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %28, align 4, !tbaa !33
  br label %118, !llvm.loop !41

163:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %164

164:                                              ; preds = %163, %99, %91
  %165 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 1
  %166 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_4TNLPEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %165)
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 12
  %169 = load i32, ptr %168, align 8, !tbaa !32
  %170 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 36
  %171 = load ptr, ptr %170, align 8, !tbaa !13
  %172 = load ptr, ptr %22, align 8, !tbaa !5
  %173 = load ptr, ptr %23, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 13
  %175 = load i32, ptr %174, align 4, !tbaa !31
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  %177 = getelementptr inbounds %"class.SimTKIpopt::TNLPAdapter", ptr %29, i32 0, i32 37
  %178 = load ptr, ptr %177, align 8, !tbaa !30
  %179 = load double, ptr %20, align 8, !tbaa !11
  %180 = load ptr, ptr %166, align 8, !tbaa !42
  %181 = getelementptr inbounds ptr, ptr %180, i64 12
  %182 = load ptr, ptr %181, align 8
  call void %182(ptr noundef nonnull align 8 dereferenceable(12) %166, i32 noundef %167, i32 noundef %169, ptr noundef %171, ptr noundef %172, ptr noundef %173, i32 noundef %175, ptr noundef %176, ptr noundef %178, double noundef %179)
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = icmp eq ptr %183, null
  br i1 %184, label %186, label %185

185:                                              ; preds = %164
  call void @_ZdaPv(ptr noundef %183) #11
  br label %186

186:                                              ; preds = %185, %164
  store ptr null, ptr %22, align 8, !tbaa !5
  %187 = load ptr, ptr %23, align 8, !tbaa !5
  %188 = icmp eq ptr %187, null
  br i1 %188, label %190, label %189

189:                                              ; preds = %186
  call void @_ZdaPv(ptr noundef %187) #11
  br label %190

190:                                              ; preds = %189, %186
  store ptr null, ptr %23, align 8, !tbaa !5
  %191 = load ptr, ptr %21, align 8, !tbaa !5
  %192 = icmp eq ptr %191, null
  br i1 %192, label %194, label %193

193:                                              ; preds = %190
  call void @_ZdaPv(ptr noundef %191) #11
  br label %194

194:                                              ; preds = %193, %190
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  ret void
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef, double noundef) #8

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

@_ZTIN10SimTKIpopt6VectorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN10SimTKIpopt11DenseVectorE = 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 nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter14update_local_xERKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter19update_local_lambdaERKNS_6VectorES3_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(205), ptr noundef nonnull align 8 dereferenceable(205)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10SimTKIpopt11TNLPAdapter16FinalizeSolutionENS_12SolverReturnERKNS_6VectorES4_S4_S4_S4_S4_S4_d(ptr noundef nonnull align 8 dereferenceable(400) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(205) %2, ptr noundef nonnull align 8 dereferenceable(205) %3, ptr noundef nonnull align 8 dereferenceable(205) %4, ptr noundef nonnull align 8 dereferenceable(205) %5, ptr noundef nonnull align 8 dereferenceable(205) %6, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, double noundef %9) unnamed_addr #5 align 2 {
  %11 = tail call noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter14update_local_xERKNS_6VectorE(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(205) %2)
  %12 = tail call noundef zeroext i1 @_ZN10SimTKIpopt11TNLPAdapter19update_local_lambdaERKNS_6VectorES3_(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8)
  %13 = getelementptr inbounds i8, ptr %0, i64 232
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  tail call void @_ZN10SimTKIpopt11TNLPAdapter7ResortXERKNS_6VectorEPd(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(205) %2, ptr noundef %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 240
  %16 = load ptr, ptr %15, align 8, !tbaa !26
  tail call void @_ZN10SimTKIpopt11TNLPAdapter7ResortGERKNS_6VectorES3_Pd(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 84
  %18 = load i32, ptr %17, align 4, !tbaa !27
  %19 = sext i32 %18 to i64
  %20 = icmp slt i32 %18, 0
  %21 = shl nsw i64 %19, 3
  %22 = select i1 %20, i64 -1, i64 %21
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #7
  tail call void @_ZN10SimTKIpopt11TNLPAdapter7ResortGERKNS_6VectorES3_Pd(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(205) %5, ptr noundef nonnull align 8 dereferenceable(205) %6, ptr noundef nonnull %23)
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  %25 = load i32, ptr %24, align 8, !tbaa !28
  %26 = sext i32 %25 to i64
  %27 = icmp slt i32 %25, 0
  %28 = shl nsw i64 %26, 3
  %29 = select i1 %27, i64 -1, i64 %28
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #7
  %31 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #7
  %32 = icmp sgt i32 %25, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %10
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  %34 = load double, ptr %33, align 8, !tbaa !29
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  %36 = load double, ptr %35, align 8, !tbaa !30
  %wide.trip.count = zext nneg i32 %25 to i64
  %min.iters.check = icmp ult i32 %25, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %34, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert51 = insertelement <2 x double> poison, double %36, i64 0
  %broadcast.splat52 = shufflevector <2 x double> %broadcast.splatinsert51, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %37 = getelementptr inbounds double, ptr %30, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <2 x double> %broadcast.splat, ptr %37, align 8, !tbaa !31
  store <2 x double> %broadcast.splat, ptr %38, align 8, !tbaa !31
  %39 = getelementptr inbounds double, ptr %31, i64 %index
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store <2 x double> %broadcast.splat52, ptr %39, align 8, !tbaa !31
  store <2 x double> %broadcast.splat52, ptr %40, align 8, !tbaa !31
  %index.next = add nuw i64 %index, 4
  %41 = icmp eq i64 %index.next, %n.vec
  br i1 %41, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %10
  tail call void @_ZN10SimTKIpopt11TNLPAdapter10ResortBndsERKNS_6VectorEPdS3_S4_(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(205) %3, ptr noundef nonnull %30, ptr noundef nonnull align 8 dereferenceable(205) %4, ptr noundef nonnull %31)
  %42 = getelementptr inbounds i8, ptr %0, i64 48
  %43 = load i32, ptr %42, align 8, !tbaa !36
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %47, label %.loopexit

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %45 = getelementptr inbounds double, ptr %30, i64 %indvars.iv
  store double %34, ptr %45, align 8, !tbaa !31
  %46 = getelementptr inbounds double, ptr %31, i64 %indvars.iv
  store double %36, ptr %46, align 8, !tbaa !31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !37

47:                                               ; preds = %._crit_edge
  %48 = getelementptr inbounds i8, ptr %0, i64 112
  %49 = load i32, ptr %48, align 8, !tbaa !38
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %51, label %.loopexit

51:                                               ; preds = %47
  %52 = tail call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN10SimTKIpopt6VectorE, ptr nonnull @_ZTIN10SimTKIpopt11DenseVectorE, i64 0) #8
  %53 = tail call noundef ptr @_ZNK10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %52)
  %54 = tail call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %7)
  %55 = load i32, ptr %48, align 8, !tbaa !38
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph46, label %.loopexit

.lr.ph46:                                         ; preds = %51
  %57 = sub i32 %54, %55
  %58 = getelementptr inbounds i8, ptr %0, i64 392
  %59 = sext i32 %57 to i64
  %invariant.gep = getelementptr double, ptr %53, i64 %59
  br label %60

60:                                               ; preds = %.lr.ph46, %60
  %indvars.iv48 = phi i64 [ 0, %.lr.ph46 ], [ %indvars.iv.next49, %60 ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv48
  %61 = load double, ptr %gep, align 8, !tbaa !31
  %62 = fneg double %61
  %63 = tail call noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef 0.000000e+00, double noundef %62)
  %64 = load ptr, ptr %58, align 8, !tbaa !39
  %65 = getelementptr inbounds i32, ptr %64, i64 %indvars.iv48
  %66 = load i32, ptr %65, align 4, !tbaa !40
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %30, i64 %67
  store double %63, ptr %68, align 8, !tbaa !31
  %69 = load double, ptr %gep, align 8, !tbaa !31
  %70 = tail call noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef 0.000000e+00, double noundef %69)
  %71 = load ptr, ptr %58, align 8, !tbaa !39
  %72 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv48
  %73 = load i32, ptr %72, align 4, !tbaa !40
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %31, i64 %74
  store double %70, ptr %75, align 8, !tbaa !31
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %76 = load i32, ptr %48, align 8, !tbaa !38
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %indvars.iv.next49, %77
  br i1 %78, label %60, label %.loopexit, !llvm.loop !41

.loopexit:                                        ; preds = %60, %51, %47, %._crit_edge
  %79 = getelementptr inbounds i8, ptr %0, i64 16
  %80 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_4TNLPEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79)
  %81 = load i32, ptr %24, align 8, !tbaa !28
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load i32, ptr %17, align 4, !tbaa !27
  %84 = load ptr, ptr %15, align 8, !tbaa !26
  %85 = load ptr, ptr %80, align 8, !tbaa !42
  %86 = getelementptr inbounds i8, ptr %85, i64 96
  %87 = load ptr, ptr %86, align 8
  tail call void %87(ptr noundef nonnull align 8 dereferenceable(12) %80, i32 noundef %1, i32 noundef %81, ptr noundef %82, ptr noundef nonnull %30, ptr noundef nonnull %31, i32 noundef %83, ptr noundef nonnull %23, ptr noundef %84, double noundef %9)
  tail call void @_ZdaPv(ptr noundef nonnull %30) #9
  tail call void @_ZdaPv(ptr noundef nonnull %31) #9
  tail call void @_ZdaPv(ptr noundef nonnull %23) #9
  ret void
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef, double noundef) local_unnamed_addr #6

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 nofree nounwind willreturn memory(read) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { 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, !13, i64 232}
!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, !13, i64 240}
!27 = !{!6, !9, i64 84}
!28 = !{!6, !9, i64 80}
!29 = !{!6, !15, i64 32}
!30 = !{!6, !15, i64 40}
!31 = !{!15, !15, i64 0}
!32 = distinct !{!32, !33, !34, !35}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = !{!6, !16, i64 48}
!37 = distinct !{!37, !33, !35, !34}
!38 = !{!6, !9, i64 112}
!39 = !{!6, !13, i64 392}
!40 = !{!9, !9, i64 0}
!41 = distinct !{!41, !33}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !11, i64 0}


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