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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.SimTKIpopt::SmartPtr.22" = type { ptr }
%"class.SimTKIpopt::IpoptCalculatedQuantities" = type <{ %"class.SimTKIpopt::ReferencedObject.base", [4 x i8], %"class.SimTKIpopt::SmartPtr.16", %"class.SimTKIpopt::SmartPtr.17", double, double, double, i32, i8, [3 x i8], %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", %"class.SimTKIpopt::CachedResults.18", i32, i32, i32, i32, %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.20", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults.21", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults.19", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::CachedResults", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", %"class.SimTKIpopt::SmartPtr.22", i8, [7 x i8] }>
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::SmartPtr.16" = type { ptr }
%"class.SimTKIpopt::SmartPtr.17" = type { ptr }
%"class.SimTKIpopt::CachedResults.18" = type { ptr, i32, ptr }
%"class.SimTKIpopt::CachedResults.20" = type { ptr, i32, ptr }
%"class.SimTKIpopt::CachedResults.21" = type { ptr, i32, ptr }
%"class.SimTKIpopt::CachedResults.19" = type { ptr, i32, ptr }
%"class.SimTKIpopt::CachedResults" = type { ptr, i32, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt25IpoptCalculatedQuantities18CalculateSafeSlackERNS_8SmartPtrINS_6VectorEEERKNS1_IKS2_EES8_S8_(ptr noundef nonnull align 8 dereferenceable(2025) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %19 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %20 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %21 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %22 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %26)
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %236

29:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
  %32 = call noundef double @_ZNK10SimTKIpopt6Vector3MinEv(ptr noundef nonnull align 8 dereferenceable(205) %31)
  store double %32, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %33 = call noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() #6
  %34 = getelementptr inbounds %"class.SimTKIpopt::IpoptCalculatedQuantities", ptr %24, i32 0, i32 3
  %35 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_9IpoptDataEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
  %36 = call noundef double @_ZNK10SimTKIpopt9IpoptData7curr_muEv(ptr noundef nonnull align 8 dereferenceable(864) %35)
  %37 = call noundef double @_ZN10SimTKIpopt3MinEdd(double noundef 1.000000e+00, double noundef %36)
  %38 = fmul double %33, %37
  store double %38, ptr %14, align 8, !tbaa !11
  %39 = load double, ptr %13, align 8, !tbaa !11
  %40 = load double, ptr %14, align 8, !tbaa !11
  %41 = fcmp olt double %39, %40
  br i1 %41, label %42, label %232

42:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
  %45 = call noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %44)
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %45)
  %46 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %47 unwind label %178

47:                                               ; preds = %42
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %50 unwind label %178

50:                                               ; preds = %47
  invoke void @_ZN10SimTKIpopt6Vector4CopyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %46, ptr noundef nonnull align 8 dereferenceable(205) %49)
          to label %51 unwind label %178

51:                                               ; preds = %50
  %52 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %53 unwind label %178

53:                                               ; preds = %51
  %54 = load double, ptr %14, align 8, !tbaa !11
  %55 = fneg double %54
  invoke void @_ZN10SimTKIpopt6Vector9AddScalarEd(ptr noundef nonnull align 8 dereferenceable(205) %52, double noundef %55)
          to label %56 unwind label %178

56:                                               ; preds = %53
  %57 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %58 unwind label %178

58:                                               ; preds = %56
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseSgnEv(ptr noundef nonnull align 8 dereferenceable(205) %57)
          to label %59 unwind label %178

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %60 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %61 unwind label %182

61:                                               ; preds = %59
  %62 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %60)
          to label %63 unwind label %182

63:                                               ; preds = %61
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %62)
          to label %64 unwind label %182

64:                                               ; preds = %63
  %65 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %66 unwind label %186

66:                                               ; preds = %64
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %65, double noundef 0.000000e+00)
          to label %67 unwind label %186

67:                                               ; preds = %66
  %68 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %69 unwind label %186

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %71 unwind label %186

71:                                               ; preds = %69
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMinERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %68, ptr noundef nonnull align 8 dereferenceable(205) %70)
          to label %72 unwind label %186

72:                                               ; preds = %71
  %73 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %74 unwind label %186

74:                                               ; preds = %72
  invoke void @_ZN10SimTKIpopt6Vector4ScalEd(ptr noundef nonnull align 8 dereferenceable(205) %73, double noundef -1.000000e+00)
          to label %75 unwind label %186

75:                                               ; preds = %74
  %76 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %77 unwind label %186

77:                                               ; preds = %75
  %78 = invoke noundef double @_ZNK10SimTKIpopt6Vector4AsumEv(ptr noundef nonnull align 8 dereferenceable(205) %76)
          to label %79 unwind label %186

79:                                               ; preds = %77
  %80 = fptosi double %78 to i32
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
          to label %83 unwind label %186

83:                                               ; preds = %79
  %84 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %85 unwind label %186

85:                                               ; preds = %83
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMaxERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %82, ptr noundef nonnull align 8 dereferenceable(205) %84)
          to label %86 unwind label %186

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %87 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %88 unwind label %190

88:                                               ; preds = %86
  %89 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %87)
          to label %90 unwind label %190

90:                                               ; preds = %88
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %89)
          to label %91 unwind label %190

91:                                               ; preds = %90
  %92 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %93 unwind label %194

93:                                               ; preds = %91
  %94 = getelementptr inbounds %"class.SimTKIpopt::IpoptCalculatedQuantities", ptr %24, i32 0, i32 3
  %95 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_9IpoptDataEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %96 unwind label %194

96:                                               ; preds = %93
  %97 = invoke noundef double @_ZNK10SimTKIpopt9IpoptData7curr_muEv(ptr noundef nonnull align 8 dereferenceable(864) %95)
          to label %98 unwind label %194

98:                                               ; preds = %96
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %92, double noundef %97)
          to label %99 unwind label %194

99:                                               ; preds = %98
  %100 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %101 unwind label %194

101:                                              ; preds = %99
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %104 unwind label %194

104:                                              ; preds = %101
  invoke void @_ZN10SimTKIpopt6Vector17ElementWiseDivideERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %100, ptr noundef nonnull align 8 dereferenceable(205) %103)
          to label %105 unwind label %194

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %106 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %107 unwind label %198

107:                                              ; preds = %105
  %108 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %106)
          to label %109 unwind label %198

109:                                              ; preds = %107
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %108)
          to label %110 unwind label %198

110:                                              ; preds = %109
  %111 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %112 unwind label %202

112:                                              ; preds = %110
  %113 = load double, ptr %14, align 8, !tbaa !11
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %111, double noundef %113)
          to label %114 unwind label %202

114:                                              ; preds = %112
  %115 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %116 unwind label %202

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %118 unwind label %202

118:                                              ; preds = %116
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMaxERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %115, ptr noundef nonnull align 8 dereferenceable(205) %117)
          to label %119 unwind label %202

119:                                              ; preds = %118
  %120 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %121 unwind label %202

121:                                              ; preds = %119
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %122)
          to label %124 unwind label %202

124:                                              ; preds = %121
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %120, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %123)
          to label %125 unwind label %202

125:                                              ; preds = %124
  %126 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %127 unwind label %202

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %129 unwind label %202

129:                                              ; preds = %127
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %126, ptr noundef nonnull align 8 dereferenceable(205) %128)
          to label %130 unwind label %202

130:                                              ; preds = %129
  %131 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %132 unwind label %202

132:                                              ; preds = %130
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %133)
          to label %135 unwind label %202

135:                                              ; preds = %132
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %131, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %134)
          to label %136 unwind label %202

136:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %137 unwind label %206

137:                                              ; preds = %136
  %138 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %139 unwind label %210

139:                                              ; preds = %137
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %138, double noundef 1.000000e+00)
          to label %140 unwind label %210

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %143 unwind label %214

143:                                              ; preds = %140
  %144 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %142)
          to label %145 unwind label %214

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

146:                                              ; preds = %145
  %147 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %148 unwind label %218

148:                                              ; preds = %146
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %149)
          to label %151 unwind label %218

151:                                              ; preds = %148
  invoke void @_ZN10SimTKIpopt6Vector4CopyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %147, ptr noundef nonnull align 8 dereferenceable(205) %150)
          to label %152 unwind label %218

152:                                              ; preds = %151
  %153 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %154 unwind label %218

154:                                              ; preds = %152
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseAbsEv(ptr noundef nonnull align 8 dereferenceable(205) %153)
          to label %155 unwind label %218

155:                                              ; preds = %154
  %156 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %157 unwind label %218

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %159 unwind label %218

159:                                              ; preds = %157
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMaxERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %156, ptr noundef nonnull align 8 dereferenceable(205) %158)
          to label %160 unwind label %218

160:                                              ; preds = %159
  %161 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %162 unwind label %218

162:                                              ; preds = %160
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %163)
          to label %165 unwind label %218

165:                                              ; preds = %162
  %166 = getelementptr inbounds %"class.SimTKIpopt::IpoptCalculatedQuantities", ptr %24, i32 0, i32 6
  %167 = load double, ptr %166, align 8, !tbaa !13
  invoke void @_ZN10SimTKIpopt6Vector12AddOneVectorEdRKS0_d(ptr noundef nonnull align 8 dereferenceable(205) %161, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %164, double noundef %167)
          to label %168 unwind label %218

168:                                              ; preds = %165
  %169 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %170 unwind label %218

170:                                              ; preds = %168
  %171 = invoke noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %172 unwind label %218

172:                                              ; preds = %170
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMinERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %169, ptr noundef nonnull align 8 dereferenceable(205) %171)
          to label %173 unwind label %218

173:                                              ; preds = %172
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %176 unwind label %218

176:                                              ; preds = %173
  %177 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %177, ptr %6, align 4
  store i32 1, ptr %23, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %233

178:                                              ; preds = %58, %56, %53, %51, %50, %47, %42
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %16, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %17, align 4
  br label %231

182:                                              ; preds = %63, %61, %59
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %16, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %17, align 4
  br label %230

186:                                              ; preds = %85, %83, %79, %77, %75, %74, %72, %71, %69, %67, %66, %64
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %16, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %17, align 4
  br label %229

190:                                              ; preds = %90, %88, %86
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %16, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %17, align 4
  br label %228

194:                                              ; preds = %104, %101, %99, %98, %96, %93, %91
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %16, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %17, align 4
  br label %227

198:                                              ; preds = %109, %107, %105
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %16, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %17, align 4
  br label %226

202:                                              ; preds = %135, %132, %130, %129, %127, %125, %124, %121, %119, %118, %116, %114, %112, %110
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %16, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %17, align 4
  br label %225

206:                                              ; preds = %136
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %16, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %17, align 4
  br label %224

210:                                              ; preds = %139, %137
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %16, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %17, align 4
  br label %223

214:                                              ; preds = %145, %143, %140
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %16, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %17, align 4
  br label %222

218:                                              ; preds = %173, %172, %170, %168, %165, %162, %160, %159, %157, %155, %154, %152, %151, %148, %146
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %16, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %17, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %222

222:                                              ; preds = %218, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %223

223:                                              ; preds = %222, %210
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %224

224:                                              ; preds = %223, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %225

225:                                              ; preds = %224, %202
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %226

226:                                              ; preds = %225, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %227

227:                                              ; preds = %226, %194
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %228

228:                                              ; preds = %227, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %229

229:                                              ; preds = %228, %186
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %230

230:                                              ; preds = %229, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %231

231:                                              ; preds = %230, %178
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %240

232:                                              ; preds = %29
  store i32 0, ptr %23, align 4
  br label %233

233:                                              ; preds = %232, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %234 = load i32, ptr %23, align 4
  switch i32 %234, label %238 [
    i32 0, label %235
  ]

235:                                              ; preds = %233
  br label %236

236:                                              ; preds = %235, %5
  %237 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %237, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %238

238:                                              ; preds = %236, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %239 = load i32, ptr %6, align 4
  ret i32 %239

240:                                              ; preds = %231
  %241 = load ptr, ptr %16, align 8
  %242 = load i32, ptr %17, align 4
  %243 = insertvalue { ptr, i32 } poison, ptr %241, 0
  %244 = insertvalue { ptr, i32 } %243, i32 %242, 1
  resume { ptr, i32 } %244
}

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

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

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

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

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

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

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

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

declare void @_ZN10SimTKIpopt6Vector4ScalEd(ptr noundef nonnull align 8 dereferenceable(205), double noundef) #5

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 48}
!14 = !{!"_ZTSN10SimTKIpopt25IpoptCalculatedQuantitiesE", !15, i64 0, !16, i64 16, !17, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !18, i64 56, !19, i64 60, !20, i64 64, !20, i64 88, !20, i64 112, !20, i64 136, !20, i64 160, !20, i64 184, !20, i64 208, !20, i64 232, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !21, i64 272, !21, i64 296, !22, i64 320, !22, i64 344, !21, i64 368, !21, i64 392, !22, i64 416, !22, i64 440, !22, i64 464, !22, i64 488, !22, i64 512, !22, i64 536, !22, i64 560, !22, i64 584, !22, i64 608, !22, i64 632, !23, i64 656, !23, i64 680, !23, i64 704, !23, i64 728, !22, i64 752, !22, i64 776, !22, i64 800, !22, i64 824, !22, i64 848, !22, i64 872, !21, i64 896, !21, i64 920, !21, i64 944, !21, i64 968, !24, i64 992, !22, i64 1016, !22, i64 1040, !22, i64 1064, !22, i64 1088, !22, i64 1112, !22, i64 1136, !22, i64 1160, !22, i64 1184, !22, i64 1208, !22, i64 1232, !22, i64 1256, !22, i64 1280, !22, i64 1304, !22, i64 1328, !22, i64 1352, !22, i64 1376, !22, i64 1400, !22, i64 1424, !21, i64 1448, !21, i64 1472, !21, i64 1496, !21, i64 1520, !21, i64 1544, !21, i64 1568, !21, i64 1592, !21, i64 1616, !21, i64 1640, !21, i64 1664, !21, i64 1688, !21, i64 1712, !21, i64 1736, !21, i64 1760, !21, i64 1784, !22, i64 1808, !22, i64 1832, !21, i64 1856, !21, i64 1880, !21, i64 1904, !25, i64 1928, !25, i64 1936, !25, i64 1944, !25, i64 1952, !25, i64 1960, !25, i64 1968, !25, i64 1976, !25, i64 1984, !25, i64 1992, !25, i64 2000, !25, i64 2008, !25, i64 2016, !19, i64 2024}
!15 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !10, i64 8}
!16 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !6, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !6, i64 0}
!18 = !{!"_ZTSN10SimTKIpopt9ENormTypeE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrINS_6VectorEEEEE", !10, i64 8, !6, i64 16}
!21 = !{!"_ZTSN10SimTKIpopt13CachedResultsIdEE", !10, i64 8, !6, i64 16}
!22 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrIKNS_6VectorEEEEE", !10, i64 8, !6, i64 16}
!23 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrIKNS_6MatrixEEEEE", !10, i64 8, !6, i64 16}
!24 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrIKNS_9SymMatrixEEEEE", !10, i64 8, !6, i64 16}
!25 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_6VectorEEE", !6, i64 0}


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

%"class.SimTKIpopt::SmartPtr.22" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10SimTKIpopt25IpoptCalculatedQuantities18CalculateSafeSlackERNS_8SmartPtrINS_6VectorEEERKNS1_IKS2_EES8_S8_(ptr noundef nonnull align 8 dereferenceable(2025) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %7 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %8 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %9 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %10 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %11 = alloca %"class.SimTKIpopt::SmartPtr.22", align 8
  %12 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %13 = tail call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %12)
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %15, label %135

15:                                               ; preds = %5
  %16 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %17 = tail call noundef double @_ZNK10SimTKIpopt6Vector3MinEv(ptr noundef nonnull align 8 dereferenceable(205) %16)
  %18 = tail call noundef double @_ZNSt14numeric_limitsIdE7epsilonEv() #6
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_9IpoptDataEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %21 = tail call noundef double @_ZNK10SimTKIpopt9IpoptData7curr_muEv(ptr noundef nonnull align 8 dereferenceable(864) %20)
  %22 = tail call noundef double @_ZN10SimTKIpopt3MinEdd(double noundef 1.000000e+00, double noundef %21)
  %23 = fmul double %18, %22
  %24 = fcmp uge double %17, %23
  br i1 %24, label %135, label %25

25:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %26 = tail call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %27 = tail call noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %26)
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %27)
  %28 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %29 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  invoke void @_ZN10SimTKIpopt6Vector4CopyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %28, ptr noundef nonnull align 8 dereferenceable(205) %29)
          to label %30 unwind label %101

30:                                               ; preds = %25
  %31 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %32 = fneg double %23
  invoke void @_ZN10SimTKIpopt6Vector9AddScalarEd(ptr noundef nonnull align 8 dereferenceable(205) %31, double noundef %32)
          to label %33 unwind label %101

33:                                               ; preds = %30
  %34 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseSgnEv(ptr noundef nonnull align 8 dereferenceable(205) %34)
          to label %35 unwind label %101

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %36 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %37 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %36)
          to label %38 unwind label %103

38:                                               ; preds = %35
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %37)
  %39 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %39, double noundef 0.000000e+00)
          to label %40 unwind label %105

40:                                               ; preds = %38
  %41 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %42 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMinERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %41, ptr noundef nonnull align 8 dereferenceable(205) %42)
          to label %43 unwind label %105

43:                                               ; preds = %40
  %44 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt6Vector4ScalEd(ptr noundef nonnull align 8 dereferenceable(205) %44, double noundef -1.000000e+00)
          to label %45 unwind label %105

45:                                               ; preds = %43
  %46 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %47 = invoke noundef double @_ZNK10SimTKIpopt6Vector4AsumEv(ptr noundef nonnull align 8 dereferenceable(205) %46)
          to label %48 unwind label %105

48:                                               ; preds = %45
  %49 = fptosi double %47 to i32
  %50 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %51 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMaxERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %50, ptr noundef nonnull align 8 dereferenceable(205) %51)
          to label %52 unwind label %105

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %53 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %54 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %53)
          to label %55 unwind label %107

55:                                               ; preds = %52
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %54)
  %56 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %57 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_9IpoptDataEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %58 = call noundef double @_ZNK10SimTKIpopt9IpoptData7curr_muEv(ptr noundef nonnull align 8 dereferenceable(864) %57)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %56, double noundef %58)
          to label %59 unwind label %109

59:                                               ; preds = %55
  %60 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %61 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN10SimTKIpopt6Vector17ElementWiseDivideERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %60, ptr noundef nonnull align 8 dereferenceable(205) %61)
          to label %62 unwind label %109

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %63 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %64 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %63)
          to label %65 unwind label %111

65:                                               ; preds = %62
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %64)
  %66 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %66, double noundef %23)
          to label %67 unwind label %113

67:                                               ; preds = %65
  %68 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %69 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMaxERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %68, ptr noundef nonnull align 8 dereferenceable(205) %69)
          to label %70 unwind label %113

70:                                               ; preds = %67
  %71 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %72 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %71, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %72)
          to label %73 unwind label %113

73:                                               ; preds = %70
  %74 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %75 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @_ZN10SimTKIpopt6Vector19ElementWiseMultiplyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %74, ptr noundef nonnull align 8 dereferenceable(205) %75)
          to label %76 unwind label %113

76:                                               ; preds = %73
  %77 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %78 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  invoke void @_ZN10SimTKIpopt6Vector4AxpyEdRKS0_(ptr noundef nonnull align 8 dereferenceable(205) %77, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %78)
          to label %79 unwind label %113

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %80 unwind label %115

80:                                               ; preds = %79
  %81 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN10SimTKIpopt6Vector3SetEd(ptr noundef nonnull align 8 dereferenceable(205) %81, double noundef 1.000000e+00)
          to label %82 unwind label %117

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %83 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %84 = invoke noundef ptr @_ZNK10SimTKIpopt6Vector7MakeNewEv(ptr noundef nonnull align 8 dereferenceable(205) %83)
          to label %85 unwind label %119

85:                                               ; preds = %82
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %84)
  %86 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %87 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrIKNS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN10SimTKIpopt6Vector4CopyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %86, ptr noundef nonnull align 8 dereferenceable(205) %87)
          to label %88 unwind label %121

88:                                               ; preds = %85
  %89 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseAbsEv(ptr noundef nonnull align 8 dereferenceable(205) %89)
          to label %90 unwind label %121

90:                                               ; preds = %88
  %91 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %92 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMaxERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %91, ptr noundef nonnull align 8 dereferenceable(205) %92)
          to label %93 unwind label %121

93:                                               ; preds = %90
  %94 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %95 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %96 = getelementptr inbounds i8, ptr %0, i64 48
  %97 = load double, ptr %96, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt6Vector12AddOneVectorEdRKS0_d(ptr noundef nonnull align 8 dereferenceable(205) %94, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %95, double noundef %97)
          to label %98 unwind label %121

98:                                               ; preds = %93
  %99 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %100 = call noundef nonnull align 8 dereferenceable(205) ptr @_ZNK10SimTKIpopt8SmartPtrINS_6VectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN10SimTKIpopt6Vector14ElementWiseMinERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %99, ptr noundef nonnull align 8 dereferenceable(205) %100)
          to label %133 unwind label %121

101:                                              ; preds = %33, %30, %25
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %132

103:                                              ; preds = %35
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %131

105:                                              ; preds = %48, %45, %43, %40, %38
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %130

107:                                              ; preds = %52
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %129

109:                                              ; preds = %59, %55
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %128

111:                                              ; preds = %62
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %127

113:                                              ; preds = %76, %73, %70, %67, %65
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %126

115:                                              ; preds = %79
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %125

117:                                              ; preds = %80
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %124

119:                                              ; preds = %82
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %98, %93, %90, %88, %85
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %123

123:                                              ; preds = %121, %119
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %124

124:                                              ; preds = %123, %117
  %.pn.pn = phi { ptr, i32 } [ %.pn, %123 ], [ %118, %117 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %125

125:                                              ; preds = %124, %115
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %124 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %126

126:                                              ; preds = %125, %113
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %125 ], [ %114, %113 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %127

127:                                              ; preds = %126, %111
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %126 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %128

128:                                              ; preds = %127, %109
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %127 ], [ %110, %109 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %129

129:                                              ; preds = %128, %107
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %128 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %130

130:                                              ; preds = %129, %105
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %129 ], [ %106, %105 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %131

131:                                              ; preds = %130, %103
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %130 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %132

132:                                              ; preds = %131, %101
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %131 ], [ %102, %101 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn

133:                                              ; preds = %98
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_6VectorEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN10SimTKIpopt8SmartPtrINS_6VectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %135

135:                                              ; preds = %15, %133, %5
  %.134 = phi i32 [ %49, %133 ], [ 0, %5 ], [ 0, %15 ]
  ret i32 %.134
}

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

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

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

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

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

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

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

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

declare void @_ZN10SimTKIpopt6Vector4ScalEd(ptr noundef nonnull align 8 dereferenceable(205), double noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !14, i64 48}
!6 = !{!"_ZTSN10SimTKIpopt25IpoptCalculatedQuantitiesE", !7, i64 0, !11, i64 16, !13, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !16, i64 60, !17, i64 64, !17, i64 88, !17, i64 112, !17, i64 136, !17, i64 160, !17, i64 184, !17, i64 208, !17, i64 232, !8, i64 256, !8, i64 260, !8, i64 264, !8, i64 268, !18, i64 272, !18, i64 296, !19, i64 320, !19, i64 344, !18, i64 368, !18, i64 392, !19, i64 416, !19, i64 440, !19, i64 464, !19, i64 488, !19, i64 512, !19, i64 536, !19, i64 560, !19, i64 584, !19, i64 608, !19, i64 632, !20, i64 656, !20, i64 680, !20, i64 704, !20, i64 728, !19, i64 752, !19, i64 776, !19, i64 800, !19, i64 824, !19, i64 848, !19, i64 872, !18, i64 896, !18, i64 920, !18, i64 944, !18, i64 968, !21, i64 992, !19, i64 1016, !19, i64 1040, !19, i64 1064, !19, i64 1088, !19, i64 1112, !19, i64 1136, !19, i64 1160, !19, i64 1184, !19, i64 1208, !19, i64 1232, !19, i64 1256, !19, i64 1280, !19, i64 1304, !19, i64 1328, !19, i64 1352, !19, i64 1376, !19, i64 1400, !19, i64 1424, !18, i64 1448, !18, i64 1472, !18, i64 1496, !18, i64 1520, !18, i64 1544, !18, i64 1568, !18, i64 1592, !18, i64 1616, !18, i64 1640, !18, i64 1664, !18, i64 1688, !18, i64 1712, !18, i64 1736, !18, i64 1760, !18, i64 1784, !19, i64 1808, !19, i64 1832, !18, i64 1856, !18, i64 1880, !18, i64 1904, !22, i64 1928, !22, i64 1936, !22, i64 1944, !22, i64 1952, !22, i64 1960, !22, i64 1968, !22, i64 1976, !22, i64 1984, !22, i64 1992, !22, i64 2000, !22, i64 2008, !22, i64 2016, !16, i64 2024}
!7 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !12, i64 0}
!14 = !{!"double", !9, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt9ENormTypeE", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrINS_6VectorEEEEE", !8, i64 8, !12, i64 16}
!18 = !{!"_ZTSN10SimTKIpopt13CachedResultsIdEE", !8, i64 8, !12, i64 16}
!19 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrIKNS_6VectorEEEEE", !8, i64 8, !12, i64 16}
!20 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrIKNS_6MatrixEEEEE", !8, i64 8, !12, i64 16}
!21 = !{!"_ZTSN10SimTKIpopt13CachedResultsINS_8SmartPtrIKNS_9SymMatrixEEEEE", !8, i64 8, !12, i64 16}
!22 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_6VectorEEE", !12, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass