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

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

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

@.str.47 = external hidden unnamed_addr constant [53 x i8], align 1

; 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

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

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

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

declare void @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef, ...) #4

; 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) #5 align 2

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

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK10SimTKIpopt11DenseVector18MakeNewDenseVectorEv(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr.23") align 8, ptr noundef nonnull align 8 dereferenceable(240)) #5 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)) #5 align 2

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

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

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

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

declare void @_ZN10SimTKIpopt14DenseGenMatrix12ScaleColumnsERKNS_11DenseVectorE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(240)) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #9

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10SimTKIpopt24LimMemQuasiNewtonUpdater16SplitEigenvaluesERNS_14DenseGenMatrixERKNS_11DenseVectorERNS_8SmartPtrIS1_EES8_(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(89) %1, ptr noundef nonnull align 8 dereferenceable(240) %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 i1, align 1
  %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 ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %"class.SimTKIpopt::SmartPtr.23", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.SimTKIpopt::SmartPtr.23", align 8
  %26 = alloca %"class.SimTKIpopt::SmartPtr.88", align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.SimTKIpopt::SmartPtr.88", align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = 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
  %36 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %37)
  store i32 %38, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = call noundef ptr @_ZNK10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %39)
  store ptr %40, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89) %41)
  store ptr %42, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %59, %5
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %62

48:                                               ; preds = %43
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds double, ptr %49, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = fcmp olt double %53, 0.000000e+00
  br i1 %54, label %55, label %58

55:                                               ; preds = %48
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %15, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %55, %48
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %16, align 4, !tbaa !9
  br label %43, !llvm.loop !13

62:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 0
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = call double @llvm.fabs.f64(double %65)
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = sub nsw i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %67, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = call double @llvm.fabs.f64(double %72)
  %74 = call noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef %66, double noundef %73)
  store double %74, ptr %17, align 8, !tbaa !11
  %75 = load double, ptr %17, align 8, !tbaa !11
  %76 = fcmp oeq double %75, 0.000000e+00
  br i1 %76, label %77, label %78

77:                                               ; preds = %62
  store i1 true, ptr %6, align 1
  store i32 1, ptr %18, align 4
  br label %355

78:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %78
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 0
  %84 = load double, ptr %83, align 8, !tbaa !11
  store double %84, ptr %19, align 8, !tbaa !11
  br label %112

85:                                               ; preds = %78
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = icmp eq i32 %86, %87
  br i1 %88, label %89, label %97

89:                                               ; preds = %85
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %90, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = fneg double %95
  store double %96, ptr %19, align 8, !tbaa !11
  br label %111

97:                                               ; preds = %85
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = sub nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %98, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = fneg double %103
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !11
  %110 = call noundef double @_ZN10SimTKIpopt3MinEdd(double noundef %104, double noundef %109)
  store double %110, ptr %19, align 8, !tbaa !11
  br label %111

111:                                              ; preds = %97, %89
  br label %112

112:                                              ; preds = %111, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %113 = load double, ptr %19, align 8, !tbaa !11
  %114 = load double, ptr %17, align 8, !tbaa !11
  %115 = fdiv double %113, %114
  store double %115, ptr %20, align 8, !tbaa !11
  %116 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %36)
  %117 = load double, ptr %19, align 8, !tbaa !11
  %118 = load double, ptr %17, align 8, !tbaa !11
  %119 = load double, ptr %20, align 8, !tbaa !11
  call void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %116, i32 noundef 5, i32 noundef 9, ptr noundef @.str.47, double noundef %117, double noundef %118, double noundef %119)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  store double 0x3D719799812DEA11, ptr %21, align 8, !tbaa !11
  %120 = load double, ptr %20, align 8, !tbaa !11
  %121 = fcmp olt double %120, 0x3D719799812DEA11
  br i1 %121, label %122, label %123

122:                                              ; preds = %112
  store i1 true, ptr %6, align 1
  store i32 1, ptr %18, align 4
  br label %353

123:                                              ; preds = %112
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %153

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK10SimTKIpopt11DenseVector18MakeNewDenseVectorEv(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.23") align 8 %22, ptr noundef nonnull align 8 dereferenceable(240) %127)
  %128 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %129 unwind label %149

129:                                              ; preds = %126
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt6Vector4CopyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %128, ptr noundef nonnull align 8 dereferenceable(205) %130)
          to label %131 unwind label %149

131:                                              ; preds = %129
  %132 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %133 unwind label %149

133:                                              ; preds = %131
  invoke void @_ZN10SimTKIpopt6Vector15ElementWiseSqrtEv(ptr noundef nonnull align 8 dereferenceable(205) %132)
          to label %134 unwind label %149

134:                                              ; preds = %133
  %135 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %136 unwind label %149

136:                                              ; preds = %134
  invoke void @_ZN10SimTKIpopt6Vector21ElementWiseReciprocalEv(ptr noundef nonnull align 8 dereferenceable(205) %135)
          to label %137 unwind label %149

137:                                              ; preds = %136
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = invoke noundef nonnull align 8 dereferenceable(240) ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %140 unwind label %149

140:                                              ; preds = %137
  invoke void @_ZN10SimTKIpopt14DenseGenMatrix12ScaleColumnsERKNS_11DenseVectorE(ptr noundef nonnull align 8 dereferenceable(89) %138, ptr noundef nonnull align 8 dereferenceable(240) %139)
          to label %141 unwind label %149

141:                                              ; preds = %140
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef %142)
          to label %145 unwind label %149

145:                                              ; preds = %141
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef null)
          to label %148 unwind label %149

148:                                              ; preds = %145
  store i1 false, ptr %6, align 1
  store i32 1, ptr %18, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %353

149:                                              ; preds = %145, %141, %140, %137, %136, %134, %133, %131, %129, %126
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %23, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %24, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %354

153:                                              ; preds = %123
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %155)
  %157 = icmp eq i32 %154, %156
  br i1 %157, label %158, label %185

158:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK10SimTKIpopt11DenseVector18MakeNewDenseVectorEv(ptr dead_on_unwind writable sret(%"class.SimTKIpopt::SmartPtr.23") align 8 %25, ptr noundef nonnull align 8 dereferenceable(240) %159)
  %160 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %161 unwind label %181

161:                                              ; preds = %158
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN10SimTKIpopt6Vector12AddOneVectorEdRKS0_d(ptr noundef nonnull align 8 dereferenceable(205) %160, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %162, double noundef 0.000000e+00)
          to label %163 unwind label %181

163:                                              ; preds = %161
  %164 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %165 unwind label %181

165:                                              ; preds = %163
  invoke void @_ZN10SimTKIpopt6Vector15ElementWiseSqrtEv(ptr noundef nonnull align 8 dereferenceable(205) %164)
          to label %166 unwind label %181

166:                                              ; preds = %165
  %167 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %168 unwind label %181

168:                                              ; preds = %166
  invoke void @_ZN10SimTKIpopt6Vector21ElementWiseReciprocalEv(ptr noundef nonnull align 8 dereferenceable(205) %167)
          to label %169 unwind label %181

169:                                              ; preds = %168
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = invoke noundef nonnull align 8 dereferenceable(240) ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %172 unwind label %181

172:                                              ; preds = %169
  invoke void @_ZN10SimTKIpopt14DenseGenMatrix12ScaleColumnsERKNS_11DenseVectorE(ptr noundef nonnull align 8 dereferenceable(89) %170, ptr noundef nonnull align 8 dereferenceable(240) %171)
          to label %173 unwind label %181

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

177:                                              ; preds = %173
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef null)
          to label %180 unwind label %181

180:                                              ; preds = %177
  store i1 false, ptr %6, align 1
  store i32 1, ptr %18, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %353

181:                                              ; preds = %177, %173, %172, %169, %168, %166, %165, %163, %161, %158
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %23, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %24, align 4
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %354

185:                                              ; preds = %153
  br label %186

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %187 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %15, align 4, !tbaa !9
  invoke void @_ZN10SimTKIpopt19DenseGenMatrixSpaceC1Eii(ptr noundef nonnull align 8 dereferenceable(20) %187, i32 noundef %188, i32 noundef %189)
          to label %190 unwind label %208

190:                                              ; preds = %186
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %187)
  %191 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %192 unwind label %212

192:                                              ; preds = %190
  %193 = invoke noundef ptr @_ZNK10SimTKIpopt19DenseGenMatrixSpace21MakeNewDenseGenMatrixEv(ptr noundef nonnull align 8 dereferenceable(20) %191)
          to label %194 unwind label %212

194:                                              ; preds = %192
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef %193)
          to label %197 unwind label %212

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %198)
          to label %200 unwind label %216

200:                                              ; preds = %197
  %201 = invoke noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89) %199)
          to label %202 unwind label %216

202:                                              ; preds = %200
  store ptr %201, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %257, %202
  %204 = load i32, ptr %28, align 4, !tbaa !9
  %205 = load i32, ptr %15, align 4, !tbaa !9
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %220, label %207

207:                                              ; preds = %203
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %260

208:                                              ; preds = %186
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %23, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %24, align 4
  call void @_ZdlPvm(ptr noundef %187, i64 noundef 24) #12
  br label %352

212:                                              ; preds = %194, %192, %190
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %23, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %24, align 4
  br label %351

216:                                              ; preds = %200, %197
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %23, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %24, align 4
  br label %350

220:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = load i32, ptr %28, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = fneg double %225
  %227 = call double @sqrt(double noundef %226) #10
  store double %227, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %253, %220
  %229 = load i32, ptr %30, align 4, !tbaa !9
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %256

233:                                              ; preds = %228
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = load i32, ptr %30, align 4, !tbaa !9
  %236 = load i32, ptr %28, align 4, !tbaa !9
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = mul nsw i32 %236, %237
  %239 = add nsw i32 %235, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %234, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !11
  %243 = load double, ptr %29, align 8, !tbaa !11
  %244 = fdiv double %242, %243
  %245 = load ptr, ptr %27, align 8, !tbaa !5
  %246 = load i32, ptr %30, align 4, !tbaa !9
  %247 = load i32, ptr %28, align 4, !tbaa !9
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = mul nsw i32 %247, %248
  %250 = add nsw i32 %246, %249
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds double, ptr %245, i64 %251
  store double %244, ptr %252, align 8, !tbaa !11
  br label %253

253:                                              ; preds = %233
  %254 = load i32, ptr %30, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %30, align 4, !tbaa !9
  br label %228, !llvm.loop !15

256:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %28, align 4, !tbaa !9
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %28, align 4, !tbaa !9
  br label %203, !llvm.loop !16

260:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %261 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
          to label %262 unwind label %288

262:                                              ; preds = %260
  %263 = load i32, ptr %12, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = sub nsw i32 %264, %265
  invoke void @_ZN10SimTKIpopt19DenseGenMatrixSpaceC1Eii(ptr noundef nonnull align 8 dereferenceable(20) %261, i32 noundef %263, i32 noundef %266)
          to label %267 unwind label %292

267:                                              ; preds = %262
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %261)
          to label %268 unwind label %288

268:                                              ; preds = %267
  %269 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %270 unwind label %296

270:                                              ; preds = %268
  %271 = invoke noundef ptr @_ZNK10SimTKIpopt19DenseGenMatrixSpace21MakeNewDenseGenMatrixEv(ptr noundef nonnull align 8 dereferenceable(20) %269)
          to label %272 unwind label %296

272:                                              ; preds = %270
  %273 = load ptr, ptr %11, align 8, !tbaa !5
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %273, ptr noundef %271)
          to label %275 unwind label %296

275:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = invoke noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %276)
          to label %278 unwind label %300

278:                                              ; preds = %275
  %279 = invoke noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89) %277)
          to label %280 unwind label %300

280:                                              ; preds = %278
  store ptr %279, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %344, %280
  %282 = load i32, ptr %33, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  %284 = load i32, ptr %15, align 4, !tbaa !9
  %285 = sub nsw i32 %283, %284
  %286 = icmp slt i32 %282, %285
  br i1 %286, label %304, label %287

287:                                              ; preds = %281
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %347

288:                                              ; preds = %267, %260
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %23, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %24, align 4
  br label %349

292:                                              ; preds = %262
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %23, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %24, align 4
  call void @_ZdlPvm(ptr noundef %261, i64 noundef 24) #12
  br label %349

296:                                              ; preds = %272, %270, %268
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %23, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %24, align 4
  br label %348

300:                                              ; preds = %278, %275
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %23, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %348

304:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = load i32, ptr %33, align 4, !tbaa !9
  %307 = load i32, ptr %15, align 4, !tbaa !9
  %308 = add nsw i32 %306, %307
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds double, ptr %305, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !11
  %312 = call double @sqrt(double noundef %311) #10
  store double %312, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %340, %304
  %314 = load i32, ptr %35, align 4, !tbaa !9
  %315 = load i32, ptr %12, align 4, !tbaa !9
  %316 = icmp slt i32 %314, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %313
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %343

318:                                              ; preds = %313
  %319 = load ptr, ptr %14, align 8, !tbaa !5
  %320 = load i32, ptr %35, align 4, !tbaa !9
  %321 = load i32, ptr %33, align 4, !tbaa !9
  %322 = load i32, ptr %15, align 4, !tbaa !9
  %323 = add nsw i32 %321, %322
  %324 = load i32, ptr %12, align 4, !tbaa !9
  %325 = mul nsw i32 %323, %324
  %326 = add nsw i32 %320, %325
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds double, ptr %319, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !11
  %330 = load double, ptr %34, align 8, !tbaa !11
  %331 = fdiv double %329, %330
  %332 = load ptr, ptr %32, align 8, !tbaa !5
  %333 = load i32, ptr %35, align 4, !tbaa !9
  %334 = load i32, ptr %33, align 4, !tbaa !9
  %335 = load i32, ptr %12, align 4, !tbaa !9
  %336 = mul nsw i32 %334, %335
  %337 = add nsw i32 %333, %336
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds double, ptr %332, i64 %338
  store double %331, ptr %339, align 8, !tbaa !11
  br label %340

340:                                              ; preds = %318
  %341 = load i32, ptr %35, align 4, !tbaa !9
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %35, align 4, !tbaa !9
  br label %313, !llvm.loop !17

343:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  br label %344

344:                                              ; preds = %343
  %345 = load i32, ptr %33, align 4, !tbaa !9
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %33, align 4, !tbaa !9
  br label %281, !llvm.loop !18

347:                                              ; preds = %287
  store i1 false, ptr %6, align 1
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %353

348:                                              ; preds = %300, %296
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  br label %349

349:                                              ; preds = %348, %292, %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  br label %350

350:                                              ; preds = %349, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %351

351:                                              ; preds = %350, %212
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  br label %352

352:                                              ; preds = %351, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %354

353:                                              ; preds = %347, %180, %148, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  br label %355

354:                                              ; preds = %352, %181, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %357

355:                                              ; preds = %353, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  %356 = load i1, ptr %6, align 1
  ret i1 %356

357:                                              ; preds = %354
  %358 = load ptr, ptr %23, align 8
  %359 = load i32, ptr %24, align 4
  %360 = insertvalue { ptr, i32 } poison, ptr %358, 0
  %361 = insertvalue { ptr, i32 } %360, i32 %359, 1
  resume { ptr, i32 } %361
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89)) #3 align 2

declare void @_ZN10SimTKIpopt19DenseGenMatrixSpaceC1Eii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK10SimTKIpopt19DenseGenMatrixSpace21MakeNewDenseGenMatrixEv(ptr noundef nonnull align 8 dereferenceable(20)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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.23" = type { ptr }
%"class.SimTKIpopt::SmartPtr.88" = type { ptr }

@.str.47 = external hidden unnamed_addr constant [53 x i8], align 1

; 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

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

declare void @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #4

; 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 #5 align 2

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK10SimTKIpopt11DenseVector18MakeNewDenseVectorEv(ptr dead_on_unwind noalias writable sret(%"class.SimTKIpopt::SmartPtr.23") align 8, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #5 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 #5 align 2

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

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

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

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

declare void @_ZN10SimTKIpopt14DenseGenMatrix12ScaleColumnsERKNS_11DenseVectorE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #9

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10SimTKIpopt24LimMemQuasiNewtonUpdater16SplitEigenvaluesERNS_14DenseGenMatrixERKNS_11DenseVectorERNS_8SmartPtrIS1_EES8_(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(89) %1, ptr noundef nonnull align 8 dereferenceable(240) %2, ptr noundef nonnull 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.23", align 8
  %7 = alloca %"class.SimTKIpopt::SmartPtr.23", align 8
  %8 = alloca %"class.SimTKIpopt::SmartPtr.88", align 8
  %9 = alloca %"class.SimTKIpopt::SmartPtr.88", align 8
  %10 = tail call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %2)
  %11 = tail call noundef ptr @_ZNK10SimTKIpopt11DenseVector6ValuesEv(ptr noundef nonnull align 8 dereferenceable(240) %2)
  %12 = tail call noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89) %1)
  %13 = ptrtoint ptr %12 to i64
  %14 = icmp sgt i32 %10, 0
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %wide.trip.count = zext nneg i32 %10 to i64
  %min.iters.check = icmp ult i32 %10, 4
  br i1 %min.iters.check, label %.lr.ph.preheader209, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %21, %vector.body ]
  %vec.phi176 = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %22, %vector.body ]
  %15 = getelementptr inbounds double, ptr %11, i64 %index
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load = load <2 x double>, ptr %15, align 8, !tbaa !5
  %wide.load177 = load <2 x double>, ptr %16, align 8, !tbaa !5
  %17 = fcmp olt <2 x double> %wide.load, zeroinitializer
  %18 = fcmp olt <2 x double> %wide.load177, zeroinitializer
  %19 = zext <2 x i1> %17 to <2 x i32>
  %20 = zext <2 x i1> %18 to <2 x i32>
  %21 = add <2 x i32> %vec.phi, %19
  %22 = add <2 x i32> %vec.phi176, %20
  %index.next = add nuw i64 %index, 4
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i32> %22, %21
  %24 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader209

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %5
  %.095.lcssa = phi i32 [ 0, %5 ], [ %24, %middle.block ], [ %.196, %.lr.ph ]
  %25 = load double, ptr %11, align 8, !tbaa !5
  %26 = tail call double @llvm.fabs.f64(double %25)
  %27 = sext i32 %10 to i64
  %28 = getelementptr double, ptr %11, i64 %27
  %29 = getelementptr i8, ptr %28, i64 -8
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = tail call double @llvm.fabs.f64(double %30)
  %32 = tail call noundef double @_ZN10SimTKIpopt3MaxEdd(double noundef %26, double noundef %31)
  %33 = fcmp oeq double %32, 0.000000e+00
  br i1 %33, label %246, label %38

.lr.ph:                                           ; preds = %.lr.ph.preheader209, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader209 ]
  %.095120 = phi i32 [ %.196, %.lr.ph ], [ %.095120.ph, %.lr.ph.preheader209 ]
  %34 = getelementptr inbounds double, ptr %11, i64 %indvars.iv
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = fcmp olt double %35, 0.000000e+00
  %37 = zext i1 %36 to i32
  %.196 = add nuw nsw i32 %.095120, %37
  %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 %.lr.ph, !llvm.loop !13

38:                                               ; preds = %._crit_edge
  %39 = icmp eq i32 %.095.lcssa, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %38
  %41 = load double, ptr %11, align 8, !tbaa !5
  br label %55

42:                                               ; preds = %38
  %43 = icmp eq i32 %.095.lcssa, %10
  br i1 %43, label %44, label %47

44:                                               ; preds = %42
  %45 = load double, ptr %29, align 8, !tbaa !5
  %46 = fneg double %45
  br label %55

47:                                               ; preds = %42
  %48 = sext i32 %.095.lcssa to i64
  %49 = getelementptr double, ptr %11, i64 %48
  %50 = getelementptr i8, ptr %49, i64 -8
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = fneg double %51
  %53 = load double, ptr %49, align 8, !tbaa !5
  %54 = tail call noundef double @_ZN10SimTKIpopt3MinEdd(double noundef %52, double noundef %53)
  br label %55

55:                                               ; preds = %44, %47, %40
  %.0108 = phi double [ %41, %40 ], [ %46, %44 ], [ %54, %47 ]
  %56 = fdiv double %.0108, %32
  %57 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject5JnlstEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  tail call void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %57, i32 noundef 5, i32 noundef 9, ptr noundef nonnull @.str.47, double noundef %.0108, double noundef %32, double noundef %56)
  %58 = fcmp olt double %56, 0x3D719799812DEA11
  br i1 %58, label %246, label %59

59:                                               ; preds = %55
  br i1 %39, label %60, label %75

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #11
  call void @_ZNK10SimTKIpopt11DenseVector18MakeNewDenseVectorEv(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.23") align 8 %6, ptr noundef nonnull align 8 dereferenceable(240) %2)
  %61 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt6Vector4CopyERKS0_(ptr noundef nonnull align 8 dereferenceable(205) %61, ptr noundef nonnull align 8 dereferenceable(205) %2)
          to label %62 unwind label %73

62:                                               ; preds = %60
  %63 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt6Vector15ElementWiseSqrtEv(ptr noundef nonnull align 8 dereferenceable(205) %63)
          to label %64 unwind label %73

64:                                               ; preds = %62
  %65 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt6Vector21ElementWiseReciprocalEv(ptr noundef nonnull align 8 dereferenceable(205) %65)
          to label %66 unwind label %73

66:                                               ; preds = %64
  %67 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZN10SimTKIpopt14DenseGenMatrix12ScaleColumnsERKNS_11DenseVectorE(ptr noundef nonnull align 8 dereferenceable(89) %1, ptr noundef nonnull align 8 dereferenceable(240) %67)
          to label %68 unwind label %73

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %1)
          to label %70 unwind label %73

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef null)
          to label %72 unwind label %73

72:                                               ; preds = %70
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #11
  br label %246

73:                                               ; preds = %70, %68, %66, %64, %62, %60
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #11
  br label %245

75:                                               ; preds = %59
  %76 = tail call noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205) %2)
  %77 = icmp eq i32 %.095.lcssa, %76
  br i1 %77, label %78, label %93

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  call void @_ZNK10SimTKIpopt11DenseVector18MakeNewDenseVectorEv(ptr dead_on_unwind nonnull writable sret(%"class.SimTKIpopt::SmartPtr.23") align 8 %7, ptr noundef nonnull align 8 dereferenceable(240) %2)
  %79 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt6Vector12AddOneVectorEdRKS0_d(ptr noundef nonnull align 8 dereferenceable(205) %79, double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(205) %2, double noundef 0.000000e+00)
          to label %80 unwind label %91

80:                                               ; preds = %78
  %81 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt6Vector15ElementWiseSqrtEv(ptr noundef nonnull align 8 dereferenceable(205) %81)
          to label %82 unwind label %91

82:                                               ; preds = %80
  %83 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt6Vector21ElementWiseReciprocalEv(ptr noundef nonnull align 8 dereferenceable(205) %83)
          to label %84 unwind label %91

84:                                               ; preds = %82
  %85 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNK10SimTKIpopt8SmartPtrINS_11DenseVectorEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN10SimTKIpopt14DenseGenMatrix12ScaleColumnsERKNS_11DenseVectorE(ptr noundef nonnull align 8 dereferenceable(89) %1, ptr noundef nonnull align 8 dereferenceable(240) %85)
          to label %86 unwind label %91

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %1)
          to label %88 unwind label %91

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null)
          to label %90 unwind label %91

90:                                               ; preds = %88
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  br label %246

91:                                               ; preds = %88, %86, %84, %82, %80, %78
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10SimTKIpopt8SmartPtrINS_11DenseVectorEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  br label %245

93:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #11
  %94 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #12
  invoke void @_ZN10SimTKIpopt19DenseGenMatrixSpaceC1Eii(ptr noundef nonnull align 8 dereferenceable(20) %94, i32 noundef %10, i32 noundef %.095.lcssa)
          to label %95 unwind label %151

95:                                               ; preds = %93
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %94)
  %96 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %97 = invoke noundef ptr @_ZNK10SimTKIpopt19DenseGenMatrixSpace21MakeNewDenseGenMatrixEv(ptr noundef nonnull align 8 dereferenceable(20) %96)
          to label %98 unwind label %153

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %97)
          to label %100 unwind label %153

100:                                              ; preds = %98
  %101 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %102 = invoke noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89) %101)
          to label %.preheader118 unwind label %155

.preheader118:                                    ; preds = %100
  %103 = ptrtoint ptr %102 to i64
  %104 = icmp sgt i32 %.095.lcssa, 0
  br i1 %104, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %.preheader118
  br i1 %14, label %.lr.ph123.us.preheader, label %.lr.ph126.split.preheader

.lr.ph126.split.preheader:                        ; preds = %.lr.ph126
  %wide.trip.count141 = zext nneg i32 %.095.lcssa to i64
  %xtraiter = and i64 %wide.trip.count141, 3
  %105 = icmp ult i32 %.095.lcssa, 4
  br i1 %105, label %._crit_edge127.loopexit208.unr-lcssa, label %.lr.ph126.split.preheader.new

.lr.ph126.split.preheader.new:                    ; preds = %.lr.ph126.split.preheader
  %unroll_iter = and i64 %wide.trip.count141, 2147483644
  br label %.lr.ph126.split

.lr.ph123.us.preheader:                           ; preds = %.lr.ph126
  %106 = zext nneg i32 %10 to i64
  %wide.trip.count151 = zext nneg i32 %.095.lcssa to i64
  %107 = sub i64 %103, %13
  %min.iters.check180 = icmp eq i32 %10, 1
  %diff.check = icmp ult i64 %107, 16
  %or.cond = or i1 %min.iters.check180, %diff.check
  %n.vec183 = and i64 %106, 2147483646
  %cmp.n189 = icmp eq i64 %n.vec183, %106
  br label %.lr.ph123.us

.lr.ph123.us:                                     ; preds = %.lr.ph123.us.preheader, %._crit_edge124.us
  %indvars.iv148 = phi i64 [ 0, %.lr.ph123.us.preheader ], [ %indvars.iv.next149, %._crit_edge124.us ]
  %108 = getelementptr inbounds double, ptr %11, i64 %indvars.iv148
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = fneg double %109
  %111 = call double @sqrt(double noundef %110) #11
  %112 = mul nuw nsw i64 %indvars.iv148, %106
  br i1 %or.cond, label %scalar.ph179.preheader, label %vector.ph181

vector.ph181:                                     ; preds = %.lr.ph123.us
  %broadcast.splatinsert = insertelement <2 x double> poison, double %111, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body185

vector.body185:                                   ; preds = %vector.body185, %vector.ph181
  %index186 = phi i64 [ 0, %vector.ph181 ], [ %index.next188, %vector.body185 ]
  %113 = add nuw nsw i64 %index186, %112
  %114 = getelementptr inbounds double, ptr %12, i64 %113
  %wide.load187 = load <2 x double>, ptr %114, align 8, !tbaa !5
  %115 = fdiv <2 x double> %wide.load187, %broadcast.splat
  %116 = getelementptr inbounds double, ptr %102, i64 %113
  store <2 x double> %115, ptr %116, align 8, !tbaa !5
  %index.next188 = add nuw i64 %index186, 2
  %117 = icmp eq i64 %index.next188, %n.vec183
  br i1 %117, label %middle.block178, label %vector.body185, !llvm.loop !14

middle.block178:                                  ; preds = %vector.body185
  br i1 %cmp.n189, label %._crit_edge124.us, label %scalar.ph179.preheader

scalar.ph179.preheader:                           ; preds = %middle.block178, %.lr.ph123.us
  %indvars.iv143.ph = phi i64 [ 0, %.lr.ph123.us ], [ %n.vec183, %middle.block178 ]
  %118 = sub nsw i64 %106, %indvars.iv143.ph
  %xtraiter211 = and i64 %118, 3
  %lcmp.mod212.not = icmp eq i64 %xtraiter211, 0
  br i1 %lcmp.mod212.not, label %scalar.ph179.prol.loopexit, label %scalar.ph179.prol

scalar.ph179.prol:                                ; preds = %scalar.ph179.preheader, %scalar.ph179.prol
  %indvars.iv143.prol = phi i64 [ %indvars.iv.next144.prol, %scalar.ph179.prol ], [ %indvars.iv143.ph, %scalar.ph179.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph179.prol ], [ 0, %scalar.ph179.preheader ]
  %119 = add nuw nsw i64 %indvars.iv143.prol, %112
  %120 = getelementptr inbounds double, ptr %12, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !5
  %122 = fdiv double %121, %111
  %123 = getelementptr inbounds double, ptr %102, i64 %119
  store double %122, ptr %123, align 8, !tbaa !5
  %indvars.iv.next144.prol = add nuw nsw i64 %indvars.iv143.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter211
  br i1 %prol.iter.cmp.not, label %scalar.ph179.prol.loopexit, label %scalar.ph179.prol, !llvm.loop !15

scalar.ph179.prol.loopexit:                       ; preds = %scalar.ph179.prol, %scalar.ph179.preheader
  %indvars.iv143.unr = phi i64 [ %indvars.iv143.ph, %scalar.ph179.preheader ], [ %indvars.iv.next144.prol, %scalar.ph179.prol ]
  %124 = sub nsw i64 %indvars.iv143.ph, %106
  %125 = icmp ugt i64 %124, -4
  br i1 %125, label %._crit_edge124.us, label %scalar.ph179

scalar.ph179:                                     ; preds = %scalar.ph179.prol.loopexit, %scalar.ph179
  %indvars.iv143 = phi i64 [ %indvars.iv.next144.3, %scalar.ph179 ], [ %indvars.iv143.unr, %scalar.ph179.prol.loopexit ]
  %126 = add nuw nsw i64 %indvars.iv143, %112
  %127 = getelementptr inbounds double, ptr %12, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !5
  %129 = fdiv double %128, %111
  %130 = getelementptr inbounds double, ptr %102, i64 %126
  store double %129, ptr %130, align 8, !tbaa !5
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %131 = add nuw nsw i64 %indvars.iv.next144, %112
  %132 = getelementptr inbounds double, ptr %12, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = fdiv double %133, %111
  %135 = getelementptr inbounds double, ptr %102, i64 %131
  store double %134, ptr %135, align 8, !tbaa !5
  %indvars.iv.next144.1 = add nuw nsw i64 %indvars.iv143, 2
  %136 = add nuw nsw i64 %indvars.iv.next144.1, %112
  %137 = getelementptr inbounds double, ptr %12, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = fdiv double %138, %111
  %140 = getelementptr inbounds double, ptr %102, i64 %136
  store double %139, ptr %140, align 8, !tbaa !5
  %indvars.iv.next144.2 = add nuw nsw i64 %indvars.iv143, 3
  %141 = add nuw nsw i64 %indvars.iv.next144.2, %112
  %142 = getelementptr inbounds double, ptr %12, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = fdiv double %143, %111
  %145 = getelementptr inbounds double, ptr %102, i64 %141
  store double %144, ptr %145, align 8, !tbaa !5
  %indvars.iv.next144.3 = add nuw nsw i64 %indvars.iv143, 4
  %exitcond147.not.3 = icmp eq i64 %indvars.iv.next144.3, %106
  br i1 %exitcond147.not.3, label %._crit_edge124.us, label %scalar.ph179, !llvm.loop !17

._crit_edge124.us:                                ; preds = %scalar.ph179.prol.loopexit, %scalar.ph179, %middle.block178
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %exitcond152.not = icmp eq i64 %indvars.iv.next149, %wide.trip.count151
  br i1 %exitcond152.not, label %._crit_edge127, label %.lr.ph123.us, !llvm.loop !18

._crit_edge127.loopexit208.unr-lcssa:             ; preds = %.lr.ph126.split, %.lr.ph126.split.preheader
  %indvars.iv138.unr = phi i64 [ 0, %.lr.ph126.split.preheader ], [ %indvars.iv.next139.3, %.lr.ph126.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge127, label %.lr.ph126.split.epil

.lr.ph126.split.epil:                             ; preds = %._crit_edge127.loopexit208.unr-lcssa, %.lr.ph126.split.epil
  %indvars.iv138.epil = phi i64 [ %indvars.iv.next139.epil, %.lr.ph126.split.epil ], [ %indvars.iv138.unr, %._crit_edge127.loopexit208.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph126.split.epil ], [ 0, %._crit_edge127.loopexit208.unr-lcssa ]
  %146 = getelementptr inbounds double, ptr %11, i64 %indvars.iv138.epil
  %147 = load double, ptr %146, align 8, !tbaa !5
  %148 = fneg double %147
  %149 = call double @sqrt(double noundef %148) #11
  %indvars.iv.next139.epil = add nuw nsw i64 %indvars.iv138.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge127, label %.lr.ph126.split.epil, !llvm.loop !19

._crit_edge127:                                   ; preds = %._crit_edge127.loopexit208.unr-lcssa, %.lr.ph126.split.epil, %._crit_edge124.us, %.preheader118
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  %150 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #12
          to label %173 unwind label %217

151:                                              ; preds = %93
  %152 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %94, i64 noundef 24) #13
  br label %244

153:                                              ; preds = %98, %95
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %243

155:                                              ; preds = %100
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %243

.lr.ph126.split:                                  ; preds = %.lr.ph126.split, %.lr.ph126.split.preheader.new
  %indvars.iv138 = phi i64 [ 0, %.lr.ph126.split.preheader.new ], [ %indvars.iv.next139.3, %.lr.ph126.split ]
  %niter = phi i64 [ 0, %.lr.ph126.split.preheader.new ], [ %niter.next.3, %.lr.ph126.split ]
  %157 = getelementptr inbounds double, ptr %11, i64 %indvars.iv138
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = fneg double %158
  %160 = call double @sqrt(double noundef %159) #11
  %indvars.iv.next139 = or disjoint i64 %indvars.iv138, 1
  %161 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next139
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = fneg double %162
  %164 = call double @sqrt(double noundef %163) #11
  %indvars.iv.next139.1 = or disjoint i64 %indvars.iv138, 2
  %165 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next139.1
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = fneg double %166
  %168 = call double @sqrt(double noundef %167) #11
  %indvars.iv.next139.2 = or disjoint i64 %indvars.iv138, 3
  %169 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next139.2
  %170 = load double, ptr %169, align 8, !tbaa !5
  %171 = fneg double %170
  %172 = call double @sqrt(double noundef %171) #11
  %indvars.iv.next139.3 = add nuw nsw i64 %indvars.iv138, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge127.loopexit208.unr-lcssa, label %.lr.ph126.split, !llvm.loop !18

173:                                              ; preds = %._crit_edge127
  %174 = sub nsw i32 %10, %.095.lcssa
  invoke void @_ZN10SimTKIpopt19DenseGenMatrixSpaceC1Eii(ptr noundef nonnull align 8 dereferenceable(20) %150, i32 noundef %10, i32 noundef %174)
          to label %175 unwind label %219

175:                                              ; preds = %173
  invoke void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %150)
          to label %176 unwind label %217

176:                                              ; preds = %175
  %177 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %178 = invoke noundef ptr @_ZNK10SimTKIpopt19DenseGenMatrixSpace21MakeNewDenseGenMatrixEv(ptr noundef nonnull align 8 dereferenceable(20) %177)
          to label %179 unwind label %221

179:                                              ; preds = %176
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %178)
          to label %181 unwind label %221

181:                                              ; preds = %179
  %182 = call noundef ptr @_ZNK10SimTKIpopt8SmartPtrINS_14DenseGenMatrixEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %183 = invoke noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89) %182)
          to label %.preheader unwind label %223

.preheader:                                       ; preds = %181
  %184 = ptrtoint ptr %183 to i64
  %185 = icmp sgt i32 %174, 0
  br i1 %185, label %.lr.ph133, label %._crit_edge134

.lr.ph133:                                        ; preds = %.preheader
  %186 = sext i32 %.095.lcssa to i64
  %wide.trip.count166 = zext nneg i32 %174 to i64
  br i1 %14, label %.lr.ph130.us.preheader, label %.lr.ph133.split.preheader

.lr.ph133.split.preheader:                        ; preds = %.lr.ph133
  %invariant.gep = getelementptr double, ptr %11, i64 %186
  %xtraiter213 = and i64 %wide.trip.count166, 7
  %187 = icmp ult i32 %174, 8
  br i1 %187, label %._crit_edge134.loopexit207.unr-lcssa, label %.lr.ph133.split.preheader.new

.lr.ph133.split.preheader.new:                    ; preds = %.lr.ph133.split.preheader
  %unroll_iter216 = and i64 %wide.trip.count166, 2147483640
  br label %.lr.ph133.split

.lr.ph130.us.preheader:                           ; preds = %.lr.ph133
  %wide.trip.count161 = zext nneg i32 %10 to i64
  %188 = mul nsw i64 %27, %186
  %189 = shl i64 %188, 3
  %190 = add i64 %189, %13
  %191 = sub i64 %184, %190
  %min.iters.check194 = icmp eq i32 %10, 1
  %diff.check191 = icmp ult i64 %191, 16
  %or.cond206 = select i1 %min.iters.check194, i1 true, i1 %diff.check191
  %n.vec197 = and i64 %wide.trip.count161, 2147483646
  %cmp.n205 = icmp eq i64 %n.vec197, %wide.trip.count161
  br label %.lr.ph130.us

.lr.ph130.us:                                     ; preds = %.lr.ph130.us.preheader, %._crit_edge131.us
  %indvars.iv163 = phi i64 [ 0, %.lr.ph130.us.preheader ], [ %indvars.iv.next164, %._crit_edge131.us ]
  %192 = add nuw nsw i64 %indvars.iv163, %186
  %193 = getelementptr inbounds double, ptr %11, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !5
  %195 = call double @sqrt(double noundef %194) #11
  %196 = mul nsw i64 %192, %27
  %197 = mul nuw nsw i64 %indvars.iv163, %27
  %invariant.gep170 = getelementptr double, ptr %12, i64 %196
  %invariant.gep172 = getelementptr double, ptr %183, i64 %197
  br i1 %or.cond206, label %scalar.ph193.preheader, label %vector.ph195

vector.ph195:                                     ; preds = %.lr.ph130.us
  %broadcast.splatinsert202 = insertelement <2 x double> poison, double %195, i64 0
  %broadcast.splat203 = shufflevector <2 x double> %broadcast.splatinsert202, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body199

vector.body199:                                   ; preds = %vector.body199, %vector.ph195
  %index200 = phi i64 [ 0, %vector.ph195 ], [ %index.next204, %vector.body199 ]
  %198 = getelementptr double, ptr %invariant.gep170, i64 %index200
  %wide.load201 = load <2 x double>, ptr %198, align 8, !tbaa !5
  %199 = fdiv <2 x double> %wide.load201, %broadcast.splat203
  %200 = getelementptr double, ptr %invariant.gep172, i64 %index200
  store <2 x double> %199, ptr %200, align 8, !tbaa !5
  %index.next204 = add nuw i64 %index200, 2
  %201 = icmp eq i64 %index.next204, %n.vec197
  br i1 %201, label %middle.block192, label %vector.body199, !llvm.loop !20

middle.block192:                                  ; preds = %vector.body199
  br i1 %cmp.n205, label %._crit_edge131.us, label %scalar.ph193.preheader

scalar.ph193.preheader:                           ; preds = %middle.block192, %.lr.ph130.us
  %indvars.iv158.ph = phi i64 [ 0, %.lr.ph130.us ], [ %n.vec197, %middle.block192 ]
  %202 = sub nsw i64 %wide.trip.count161, %indvars.iv158.ph
  %xtraiter218 = and i64 %202, 3
  %lcmp.mod219.not = icmp eq i64 %xtraiter218, 0
  br i1 %lcmp.mod219.not, label %scalar.ph193.prol.loopexit, label %scalar.ph193.prol

scalar.ph193.prol:                                ; preds = %scalar.ph193.preheader, %scalar.ph193.prol
  %indvars.iv158.prol = phi i64 [ %indvars.iv.next159.prol, %scalar.ph193.prol ], [ %indvars.iv158.ph, %scalar.ph193.preheader ]
  %prol.iter220 = phi i64 [ %prol.iter220.next, %scalar.ph193.prol ], [ 0, %scalar.ph193.preheader ]
  %gep171.prol = getelementptr double, ptr %invariant.gep170, i64 %indvars.iv158.prol
  %203 = load double, ptr %gep171.prol, align 8, !tbaa !5
  %204 = fdiv double %203, %195
  %gep173.prol = getelementptr double, ptr %invariant.gep172, i64 %indvars.iv158.prol
  store double %204, ptr %gep173.prol, align 8, !tbaa !5
  %indvars.iv.next159.prol = add nuw nsw i64 %indvars.iv158.prol, 1
  %prol.iter220.next = add i64 %prol.iter220, 1
  %prol.iter220.cmp.not = icmp eq i64 %prol.iter220.next, %xtraiter218
  br i1 %prol.iter220.cmp.not, label %scalar.ph193.prol.loopexit, label %scalar.ph193.prol, !llvm.loop !21

scalar.ph193.prol.loopexit:                       ; preds = %scalar.ph193.prol, %scalar.ph193.preheader
  %indvars.iv158.unr = phi i64 [ %indvars.iv158.ph, %scalar.ph193.preheader ], [ %indvars.iv.next159.prol, %scalar.ph193.prol ]
  %205 = sub nsw i64 %indvars.iv158.ph, %wide.trip.count161
  %206 = icmp ugt i64 %205, -4
  br i1 %206, label %._crit_edge131.us, label %scalar.ph193

scalar.ph193:                                     ; preds = %scalar.ph193.prol.loopexit, %scalar.ph193
  %indvars.iv158 = phi i64 [ %indvars.iv.next159.3, %scalar.ph193 ], [ %indvars.iv158.unr, %scalar.ph193.prol.loopexit ]
  %gep171 = getelementptr double, ptr %invariant.gep170, i64 %indvars.iv158
  %207 = load double, ptr %gep171, align 8, !tbaa !5
  %208 = fdiv double %207, %195
  %gep173 = getelementptr double, ptr %invariant.gep172, i64 %indvars.iv158
  store double %208, ptr %gep173, align 8, !tbaa !5
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %gep171.1 = getelementptr double, ptr %invariant.gep170, i64 %indvars.iv.next159
  %209 = load double, ptr %gep171.1, align 8, !tbaa !5
  %210 = fdiv double %209, %195
  %gep173.1 = getelementptr double, ptr %invariant.gep172, i64 %indvars.iv.next159
  store double %210, ptr %gep173.1, align 8, !tbaa !5
  %indvars.iv.next159.1 = add nuw nsw i64 %indvars.iv158, 2
  %gep171.2 = getelementptr double, ptr %invariant.gep170, i64 %indvars.iv.next159.1
  %211 = load double, ptr %gep171.2, align 8, !tbaa !5
  %212 = fdiv double %211, %195
  %gep173.2 = getelementptr double, ptr %invariant.gep172, i64 %indvars.iv.next159.1
  store double %212, ptr %gep173.2, align 8, !tbaa !5
  %indvars.iv.next159.2 = add nuw nsw i64 %indvars.iv158, 3
  %gep171.3 = getelementptr double, ptr %invariant.gep170, i64 %indvars.iv.next159.2
  %213 = load double, ptr %gep171.3, align 8, !tbaa !5
  %214 = fdiv double %213, %195
  %gep173.3 = getelementptr double, ptr %invariant.gep172, i64 %indvars.iv.next159.2
  store double %214, ptr %gep173.3, align 8, !tbaa !5
  %indvars.iv.next159.3 = add nuw nsw i64 %indvars.iv158, 4
  %exitcond162.not.3 = icmp eq i64 %indvars.iv.next159.3, %wide.trip.count161
  br i1 %exitcond162.not.3, label %._crit_edge131.us, label %scalar.ph193, !llvm.loop !22

._crit_edge131.us:                                ; preds = %scalar.ph193.prol.loopexit, %scalar.ph193, %middle.block192
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next164, %wide.trip.count166
  br i1 %exitcond167.not, label %._crit_edge134, label %.lr.ph130.us, !llvm.loop !23

._crit_edge134.loopexit207.unr-lcssa:             ; preds = %.lr.ph133.split, %.lr.ph133.split.preheader
  %indvars.iv153.unr = phi i64 [ 0, %.lr.ph133.split.preheader ], [ %indvars.iv.next154.7, %.lr.ph133.split ]
  %lcmp.mod215.not = icmp eq i64 %xtraiter213, 0
  br i1 %lcmp.mod215.not, label %._crit_edge134, label %.lr.ph133.split.epil

.lr.ph133.split.epil:                             ; preds = %._crit_edge134.loopexit207.unr-lcssa, %.lr.ph133.split.epil
  %indvars.iv153.epil = phi i64 [ %indvars.iv.next154.epil, %.lr.ph133.split.epil ], [ %indvars.iv153.unr, %._crit_edge134.loopexit207.unr-lcssa ]
  %epil.iter214 = phi i64 [ %epil.iter214.next, %.lr.ph133.split.epil ], [ 0, %._crit_edge134.loopexit207.unr-lcssa ]
  %gep.epil = getelementptr double, ptr %invariant.gep, i64 %indvars.iv153.epil
  %215 = load double, ptr %gep.epil, align 8, !tbaa !5
  %216 = call double @sqrt(double noundef %215) #11
  %indvars.iv.next154.epil = add nuw nsw i64 %indvars.iv153.epil, 1
  %epil.iter214.next = add i64 %epil.iter214, 1
  %epil.iter214.cmp.not = icmp eq i64 %epil.iter214.next, %xtraiter213
  br i1 %epil.iter214.cmp.not, label %._crit_edge134, label %.lr.ph133.split.epil, !llvm.loop !24

._crit_edge134:                                   ; preds = %._crit_edge134.loopexit207.unr-lcssa, %.lr.ph133.split.epil, %._crit_edge131.us, %.preheader
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  br label %246

217:                                              ; preds = %175, %._crit_edge127
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %242

219:                                              ; preds = %173
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %150, i64 noundef 24) #13
  br label %242

221:                                              ; preds = %179, %176
  %222 = landingpad { ptr, i32 }
          cleanup
  br label %241

223:                                              ; preds = %181
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %241

.lr.ph133.split:                                  ; preds = %.lr.ph133.split, %.lr.ph133.split.preheader.new
  %indvars.iv153 = phi i64 [ 0, %.lr.ph133.split.preheader.new ], [ %indvars.iv.next154.7, %.lr.ph133.split ]
  %niter217 = phi i64 [ 0, %.lr.ph133.split.preheader.new ], [ %niter217.next.7, %.lr.ph133.split ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv153
  %225 = load double, ptr %gep, align 8, !tbaa !5
  %226 = call double @sqrt(double noundef %225) #11
  %indvars.iv.next154 = or disjoint i64 %indvars.iv153, 1
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154
  %227 = load double, ptr %gep.1, align 8, !tbaa !5
  %228 = call double @sqrt(double noundef %227) #11
  %indvars.iv.next154.1 = or disjoint i64 %indvars.iv153, 2
  %gep.2 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154.1
  %229 = load double, ptr %gep.2, align 8, !tbaa !5
  %230 = call double @sqrt(double noundef %229) #11
  %indvars.iv.next154.2 = or disjoint i64 %indvars.iv153, 3
  %gep.3 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154.2
  %231 = load double, ptr %gep.3, align 8, !tbaa !5
  %232 = call double @sqrt(double noundef %231) #11
  %indvars.iv.next154.3 = or disjoint i64 %indvars.iv153, 4
  %gep.4 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154.3
  %233 = load double, ptr %gep.4, align 8, !tbaa !5
  %234 = call double @sqrt(double noundef %233) #11
  %indvars.iv.next154.4 = or disjoint i64 %indvars.iv153, 5
  %gep.5 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154.4
  %235 = load double, ptr %gep.5, align 8, !tbaa !5
  %236 = call double @sqrt(double noundef %235) #11
  %indvars.iv.next154.5 = or disjoint i64 %indvars.iv153, 6
  %gep.6 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154.5
  %237 = load double, ptr %gep.6, align 8, !tbaa !5
  %238 = call double @sqrt(double noundef %237) #11
  %indvars.iv.next154.6 = or disjoint i64 %indvars.iv153, 7
  %gep.7 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next154.6
  %239 = load double, ptr %gep.7, align 8, !tbaa !5
  %240 = call double @sqrt(double noundef %239) #11
  %indvars.iv.next154.7 = add nuw nsw i64 %indvars.iv153, 8
  %niter217.next.7 = add i64 %niter217, 8
  %niter217.ncmp.7 = icmp eq i64 %niter217.next.7, %unroll_iter216
  br i1 %niter217.ncmp.7, label %._crit_edge134.loopexit207.unr-lcssa, label %.lr.ph133.split, !llvm.loop !23

241:                                              ; preds = %223, %221
  %.pn = phi { ptr, i32 } [ %224, %223 ], [ %222, %221 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  br label %242

242:                                              ; preds = %241, %219, %217
  %.pn.pn = phi { ptr, i32 } [ %.pn, %241 ], [ %218, %217 ], [ %220, %219 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  br label %243

243:                                              ; preds = %155, %242, %153
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %154, %153 ], [ %.pn.pn, %242 ], [ %156, %155 ]
  call void @_ZN10SimTKIpopt8SmartPtrINS_19DenseGenMatrixSpaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  br label %244

244:                                              ; preds = %243, %151
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %243 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  br label %245

245:                                              ; preds = %244, %91, %73
  %.pn116 = phi { ptr, i32 } [ %74, %73 ], [ %92, %91 ], [ %.pn.pn.pn.pn.pn, %244 ]
  resume { ptr, i32 } %.pn116

246:                                              ; preds = %72, %90, %._crit_edge134, %55, %._crit_edge
  %.1 = phi i1 [ true, %._crit_edge ], [ true, %55 ], [ false, %._crit_edge134 ], [ false, %90 ], [ false, %72 ]
  ret i1 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK10SimTKIpopt6Vector3DimEv(ptr noundef nonnull align 8 dereferenceable(205)) 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN10SimTKIpopt14DenseGenMatrix6ValuesEv(ptr noundef nonnull align 8 dereferenceable(89)) local_unnamed_addr #3 align 2

declare void @_ZN10SimTKIpopt19DenseGenMatrixSpaceC1Eii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) unnamed_addr #4

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #10

attributes #0 = { mustprogress 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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !10, !11}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !10, !11, !12}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !10, !11}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !16}


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