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

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.14" = type { i8 }
%"class.SimTKIpopt::QualityFunctionMuOracle" = type { %"class.SimTKIpopt::MuOracle.base", %"class.SimTKIpopt::SmartPtr.10", double, double, i32, i32, i32, double, double, i32, %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", %"class.SimTKIpopt::SmartPtr.11", i32, i8, i32, i32, i32, %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", %"class.SimTKIpopt::SmartPtr.12", double, double, double, double, double, double, double, double, double, double, double, double }
%"class.SimTKIpopt::MuOracle.base" = type { %"class.SimTKIpopt::AlgorithmStrategyObject.base" }
%"class.SimTKIpopt::AlgorithmStrategyObject.base" = type <{ %"class.SimTKIpopt::ReferencedObject.base", [4 x i8], %"class.SimTKIpopt::SmartPtr.6", %"class.SimTKIpopt::SmartPtr.7", %"class.SimTKIpopt::SmartPtr.8", %"class.SimTKIpopt::SmartPtr.9", i8 }>
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.SimTKIpopt::SmartPtr.6" = type { ptr }
%"class.SimTKIpopt::SmartPtr.7" = type { ptr }
%"class.SimTKIpopt::SmartPtr.8" = type { ptr }
%"class.SimTKIpopt::SmartPtr.9" = type { ptr }
%"class.SimTKIpopt::SmartPtr.10" = type { ptr }
%"class.SimTKIpopt::SmartPtr.11" = type { ptr }
%"class.SimTKIpopt::SmartPtr.12" = type { ptr }

@.str.50 = external hidden unnamed_addr constant [8 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle20PerformGoldenSectionEddddddRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26) #2 align 2 personality ptr @__gxx_personality_v0 {
  %28 = alloca ptr, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca double, align 8
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca double, align 8
  %63 = alloca i32, align 4
  %64 = alloca %"class.std::__cxx11::basic_string", align 8
  %65 = alloca %"class.std::allocator.14", align 1
  %66 = alloca ptr, align 8
  %67 = alloca i32, align 4
  %68 = alloca double, align 8
  %69 = alloca double, align 8
  %70 = alloca double, align 8
  %71 = alloca double, align 8
  store ptr %0, ptr %28, align 8, !tbaa !5
  store double %1, ptr %29, align 8, !tbaa !9
  store double %2, ptr %30, align 8, !tbaa !9
  store double %3, ptr %31, align 8, !tbaa !9
  store double %4, ptr %32, align 8, !tbaa !9
  store double %5, ptr %33, align 8, !tbaa !9
  store double %6, ptr %34, align 8, !tbaa !9
  store ptr %7, ptr %35, align 8, !tbaa !5
  store ptr %8, ptr %36, align 8, !tbaa !5
  store ptr %9, ptr %37, align 8, !tbaa !5
  store ptr %10, ptr %38, align 8, !tbaa !5
  store ptr %11, ptr %39, align 8, !tbaa !5
  store ptr %12, ptr %40, align 8, !tbaa !5
  store ptr %13, ptr %41, align 8, !tbaa !5
  store ptr %14, ptr %42, align 8, !tbaa !5
  store ptr %15, ptr %43, align 8, !tbaa !5
  store ptr %16, ptr %44, align 8, !tbaa !5
  store ptr %17, ptr %45, align 8, !tbaa !5
  store ptr %18, ptr %46, align 8, !tbaa !5
  store ptr %19, ptr %47, align 8, !tbaa !5
  store ptr %20, ptr %48, align 8, !tbaa !5
  store ptr %21, ptr %49, align 8, !tbaa !5
  store ptr %22, ptr %50, align 8, !tbaa !5
  store ptr %23, ptr %51, align 8, !tbaa !5
  store ptr %24, ptr %52, align 8, !tbaa !5
  store ptr %25, ptr %53, align 8, !tbaa !5
  store ptr %26, ptr %54, align 8, !tbaa !5
  %72 = load ptr, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  %73 = load double, ptr %29, align 8, !tbaa !9
  %74 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %73)
  store double %74, ptr %55, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  %75 = load double, ptr %31, align 8, !tbaa !9
  %76 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %75)
  store double %76, ptr %56, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  %77 = call double @sqrt(double noundef 5.000000e+00) #6
  %78 = fsub double 3.000000e+00, %77
  %79 = fdiv double %78, 2.000000e+00
  store double %79, ptr %58, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  %80 = load double, ptr %56, align 8, !tbaa !9
  %81 = load double, ptr %58, align 8, !tbaa !9
  %82 = load double, ptr %55, align 8, !tbaa !9
  %83 = load double, ptr %56, align 8, !tbaa !9
  %84 = fsub double %82, %83
  %85 = call double @llvm.fmuladd.f64(double %81, double %84, double %80)
  store double %85, ptr %59, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  %86 = load double, ptr %56, align 8, !tbaa !9
  %87 = load double, ptr %58, align 8, !tbaa !9
  %88 = fsub double 1.000000e+00, %87
  %89 = load double, ptr %55, align 8, !tbaa !9
  %90 = load double, ptr %56, align 8, !tbaa !9
  %91 = fsub double %89, %90
  %92 = call double @llvm.fmuladd.f64(double %88, double %91, double %86)
  store double %92, ptr %60, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  %93 = load double, ptr %59, align 8, !tbaa !9
  %94 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %93)
  %95 = load ptr, ptr %35, align 8, !tbaa !5
  %96 = load ptr, ptr %36, align 8, !tbaa !5
  %97 = load ptr, ptr %37, align 8, !tbaa !5
  %98 = load ptr, ptr %38, align 8, !tbaa !5
  %99 = load ptr, ptr %39, align 8, !tbaa !5
  %100 = load ptr, ptr %40, align 8, !tbaa !5
  %101 = load ptr, ptr %41, align 8, !tbaa !5
  %102 = load ptr, ptr %42, align 8, !tbaa !5
  %103 = load ptr, ptr %43, align 8, !tbaa !5
  %104 = load ptr, ptr %44, align 8, !tbaa !5
  %105 = load ptr, ptr %45, align 8, !tbaa !5
  %106 = load ptr, ptr %46, align 8, !tbaa !5
  %107 = load ptr, ptr %47, align 8, !tbaa !5
  %108 = load ptr, ptr %48, align 8, !tbaa !5
  %109 = load ptr, ptr %49, align 8, !tbaa !5
  %110 = load ptr, ptr %50, align 8, !tbaa !5
  %111 = load ptr, ptr %51, align 8, !tbaa !5
  %112 = load ptr, ptr %52, align 8, !tbaa !5
  %113 = load ptr, ptr %53, align 8, !tbaa !5
  %114 = load ptr, ptr %54, align 8, !tbaa !5
  %115 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %94, ptr noundef nonnull align 8 dereferenceable(205) %95, ptr noundef nonnull align 8 dereferenceable(205) %96, ptr noundef nonnull align 8 dereferenceable(205) %97, ptr noundef nonnull align 8 dereferenceable(205) %98, ptr noundef nonnull align 8 dereferenceable(205) %99, ptr noundef nonnull align 8 dereferenceable(205) %100, ptr noundef nonnull align 8 dereferenceable(205) %101, ptr noundef nonnull align 8 dereferenceable(205) %102, ptr noundef nonnull align 8 dereferenceable(205) %103, ptr noundef nonnull align 8 dereferenceable(205) %104, ptr noundef nonnull align 8 dereferenceable(205) %105, ptr noundef nonnull align 8 dereferenceable(205) %106, ptr noundef nonnull align 8 dereferenceable(205) %107, ptr noundef nonnull align 8 dereferenceable(205) %108, ptr noundef nonnull align 8 dereferenceable(205) %109, ptr noundef nonnull align 8 dereferenceable(205) %110, ptr noundef nonnull align 8 dereferenceable(205) %111, ptr noundef nonnull align 8 dereferenceable(205) %112, ptr noundef nonnull align 8 dereferenceable(205) %113, ptr noundef nonnull align 8 dereferenceable(205) %114)
  store double %115, ptr %61, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #6
  %116 = load double, ptr %60, align 8, !tbaa !9
  %117 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %116)
  %118 = load ptr, ptr %35, align 8, !tbaa !5
  %119 = load ptr, ptr %36, align 8, !tbaa !5
  %120 = load ptr, ptr %37, align 8, !tbaa !5
  %121 = load ptr, ptr %38, align 8, !tbaa !5
  %122 = load ptr, ptr %39, align 8, !tbaa !5
  %123 = load ptr, ptr %40, align 8, !tbaa !5
  %124 = load ptr, ptr %41, align 8, !tbaa !5
  %125 = load ptr, ptr %42, align 8, !tbaa !5
  %126 = load ptr, ptr %43, align 8, !tbaa !5
  %127 = load ptr, ptr %44, align 8, !tbaa !5
  %128 = load ptr, ptr %45, align 8, !tbaa !5
  %129 = load ptr, ptr %46, align 8, !tbaa !5
  %130 = load ptr, ptr %47, align 8, !tbaa !5
  %131 = load ptr, ptr %48, align 8, !tbaa !5
  %132 = load ptr, ptr %49, align 8, !tbaa !5
  %133 = load ptr, ptr %50, align 8, !tbaa !5
  %134 = load ptr, ptr %51, align 8, !tbaa !5
  %135 = load ptr, ptr %52, align 8, !tbaa !5
  %136 = load ptr, ptr %53, align 8, !tbaa !5
  %137 = load ptr, ptr %54, align 8, !tbaa !5
  %138 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %117, ptr noundef nonnull align 8 dereferenceable(205) %118, ptr noundef nonnull align 8 dereferenceable(205) %119, ptr noundef nonnull align 8 dereferenceable(205) %120, ptr noundef nonnull align 8 dereferenceable(205) %121, ptr noundef nonnull align 8 dereferenceable(205) %122, ptr noundef nonnull align 8 dereferenceable(205) %123, ptr noundef nonnull align 8 dereferenceable(205) %124, ptr noundef nonnull align 8 dereferenceable(205) %125, ptr noundef nonnull align 8 dereferenceable(205) %126, ptr noundef nonnull align 8 dereferenceable(205) %127, ptr noundef nonnull align 8 dereferenceable(205) %128, ptr noundef nonnull align 8 dereferenceable(205) %129, ptr noundef nonnull align 8 dereferenceable(205) %130, ptr noundef nonnull align 8 dereferenceable(205) %131, ptr noundef nonnull align 8 dereferenceable(205) %132, ptr noundef nonnull align 8 dereferenceable(205) %133, ptr noundef nonnull align 8 dereferenceable(205) %134, ptr noundef nonnull align 8 dereferenceable(205) %135, ptr noundef nonnull align 8 dereferenceable(205) %136, ptr noundef nonnull align 8 dereferenceable(205) %137)
  store double %138, ptr %62, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #6
  store i32 0, ptr %63, align 4, !tbaa !11
  br label %139

139:                                              ; preds = %244, %27
  %140 = load double, ptr %55, align 8, !tbaa !9
  %141 = load double, ptr %56, align 8, !tbaa !9
  %142 = fsub double %140, %141
  %143 = load double, ptr %33, align 8, !tbaa !9
  %144 = load double, ptr %55, align 8, !tbaa !9
  %145 = fmul double %143, %144
  %146 = fcmp oge double %142, %145
  br i1 %146, label %147, label %167

147:                                              ; preds = %139
  %148 = load double, ptr %32, align 8, !tbaa !9
  %149 = load double, ptr %30, align 8, !tbaa !9
  %150 = load double, ptr %61, align 8, !tbaa !9
  %151 = load double, ptr %62, align 8, !tbaa !9
  %152 = call noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef %148, double noundef %149, double noundef %150, double noundef %151)
  %153 = load double, ptr %32, align 8, !tbaa !9
  %154 = load double, ptr %30, align 8, !tbaa !9
  %155 = load double, ptr %61, align 8, !tbaa !9
  %156 = load double, ptr %62, align 8, !tbaa !9
  %157 = call noundef double @_ZN10SimTKIpopt3MaxEdddd(double noundef %153, double noundef %154, double noundef %155, double noundef %156)
  %158 = fdiv double %152, %157
  %159 = fsub double 1.000000e+00, %158
  %160 = load double, ptr %34, align 8, !tbaa !9
  %161 = fcmp oge double %159, %160
  br i1 %161, label %162, label %167

162:                                              ; preds = %147
  %163 = load i32, ptr %63, align 4, !tbaa !11
  %164 = getelementptr inbounds %"class.SimTKIpopt::QualityFunctionMuOracle", ptr %72, i32 0, i32 9
  %165 = load i32, ptr %164, align 8, !tbaa !13
  %166 = icmp slt i32 %163, %165
  br label %167

167:                                              ; preds = %162, %147, %139
  %168 = phi i1 [ false, %147 ], [ false, %139 ], [ %166, %162 ]
  br i1 %168, label %169, label %245

169:                                              ; preds = %167
  %170 = load i32, ptr %63, align 4, !tbaa !11
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %63, align 4, !tbaa !11
  %172 = load double, ptr %61, align 8, !tbaa !9
  %173 = load double, ptr %62, align 8, !tbaa !9
  %174 = fcmp ogt double %172, %173
  br i1 %174, label %175, label %210

175:                                              ; preds = %169
  %176 = load double, ptr %59, align 8, !tbaa !9
  store double %176, ptr %56, align 8, !tbaa !9
  %177 = load double, ptr %61, align 8, !tbaa !9
  store double %177, ptr %32, align 8, !tbaa !9
  %178 = load double, ptr %60, align 8, !tbaa !9
  store double %178, ptr %59, align 8, !tbaa !9
  %179 = load double, ptr %62, align 8, !tbaa !9
  store double %179, ptr %61, align 8, !tbaa !9
  %180 = load double, ptr %56, align 8, !tbaa !9
  %181 = load double, ptr %58, align 8, !tbaa !9
  %182 = fsub double 1.000000e+00, %181
  %183 = load double, ptr %55, align 8, !tbaa !9
  %184 = load double, ptr %56, align 8, !tbaa !9
  %185 = fsub double %183, %184
  %186 = call double @llvm.fmuladd.f64(double %182, double %185, double %180)
  store double %186, ptr %60, align 8, !tbaa !9
  %187 = load double, ptr %60, align 8, !tbaa !9
  %188 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %187)
  %189 = load ptr, ptr %35, align 8, !tbaa !5
  %190 = load ptr, ptr %36, align 8, !tbaa !5
  %191 = load ptr, ptr %37, align 8, !tbaa !5
  %192 = load ptr, ptr %38, align 8, !tbaa !5
  %193 = load ptr, ptr %39, align 8, !tbaa !5
  %194 = load ptr, ptr %40, align 8, !tbaa !5
  %195 = load ptr, ptr %41, align 8, !tbaa !5
  %196 = load ptr, ptr %42, align 8, !tbaa !5
  %197 = load ptr, ptr %43, align 8, !tbaa !5
  %198 = load ptr, ptr %44, align 8, !tbaa !5
  %199 = load ptr, ptr %45, align 8, !tbaa !5
  %200 = load ptr, ptr %46, align 8, !tbaa !5
  %201 = load ptr, ptr %47, align 8, !tbaa !5
  %202 = load ptr, ptr %48, align 8, !tbaa !5
  %203 = load ptr, ptr %49, align 8, !tbaa !5
  %204 = load ptr, ptr %50, align 8, !tbaa !5
  %205 = load ptr, ptr %51, align 8, !tbaa !5
  %206 = load ptr, ptr %52, align 8, !tbaa !5
  %207 = load ptr, ptr %53, align 8, !tbaa !5
  %208 = load ptr, ptr %54, align 8, !tbaa !5
  %209 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %188, ptr noundef nonnull align 8 dereferenceable(205) %189, ptr noundef nonnull align 8 dereferenceable(205) %190, ptr noundef nonnull align 8 dereferenceable(205) %191, ptr noundef nonnull align 8 dereferenceable(205) %192, ptr noundef nonnull align 8 dereferenceable(205) %193, ptr noundef nonnull align 8 dereferenceable(205) %194, ptr noundef nonnull align 8 dereferenceable(205) %195, ptr noundef nonnull align 8 dereferenceable(205) %196, ptr noundef nonnull align 8 dereferenceable(205) %197, ptr noundef nonnull align 8 dereferenceable(205) %198, ptr noundef nonnull align 8 dereferenceable(205) %199, ptr noundef nonnull align 8 dereferenceable(205) %200, ptr noundef nonnull align 8 dereferenceable(205) %201, ptr noundef nonnull align 8 dereferenceable(205) %202, ptr noundef nonnull align 8 dereferenceable(205) %203, ptr noundef nonnull align 8 dereferenceable(205) %204, ptr noundef nonnull align 8 dereferenceable(205) %205, ptr noundef nonnull align 8 dereferenceable(205) %206, ptr noundef nonnull align 8 dereferenceable(205) %207, ptr noundef nonnull align 8 dereferenceable(205) %208)
  store double %209, ptr %62, align 8, !tbaa !9
  br label %244

210:                                              ; preds = %169
  %211 = load double, ptr %60, align 8, !tbaa !9
  store double %211, ptr %55, align 8, !tbaa !9
  %212 = load double, ptr %62, align 8, !tbaa !9
  store double %212, ptr %30, align 8, !tbaa !9
  %213 = load double, ptr %59, align 8, !tbaa !9
  store double %213, ptr %60, align 8, !tbaa !9
  %214 = load double, ptr %61, align 8, !tbaa !9
  store double %214, ptr %62, align 8, !tbaa !9
  %215 = load double, ptr %56, align 8, !tbaa !9
  %216 = load double, ptr %58, align 8, !tbaa !9
  %217 = load double, ptr %55, align 8, !tbaa !9
  %218 = load double, ptr %56, align 8, !tbaa !9
  %219 = fsub double %217, %218
  %220 = call double @llvm.fmuladd.f64(double %216, double %219, double %215)
  store double %220, ptr %59, align 8, !tbaa !9
  %221 = load double, ptr %59, align 8, !tbaa !9
  %222 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %221)
  %223 = load ptr, ptr %35, align 8, !tbaa !5
  %224 = load ptr, ptr %36, align 8, !tbaa !5
  %225 = load ptr, ptr %37, align 8, !tbaa !5
  %226 = load ptr, ptr %38, align 8, !tbaa !5
  %227 = load ptr, ptr %39, align 8, !tbaa !5
  %228 = load ptr, ptr %40, align 8, !tbaa !5
  %229 = load ptr, ptr %41, align 8, !tbaa !5
  %230 = load ptr, ptr %42, align 8, !tbaa !5
  %231 = load ptr, ptr %43, align 8, !tbaa !5
  %232 = load ptr, ptr %44, align 8, !tbaa !5
  %233 = load ptr, ptr %45, align 8, !tbaa !5
  %234 = load ptr, ptr %46, align 8, !tbaa !5
  %235 = load ptr, ptr %47, align 8, !tbaa !5
  %236 = load ptr, ptr %48, align 8, !tbaa !5
  %237 = load ptr, ptr %49, align 8, !tbaa !5
  %238 = load ptr, ptr %50, align 8, !tbaa !5
  %239 = load ptr, ptr %51, align 8, !tbaa !5
  %240 = load ptr, ptr %52, align 8, !tbaa !5
  %241 = load ptr, ptr %53, align 8, !tbaa !5
  %242 = load ptr, ptr %54, align 8, !tbaa !5
  %243 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %222, ptr noundef nonnull align 8 dereferenceable(205) %223, ptr noundef nonnull align 8 dereferenceable(205) %224, ptr noundef nonnull align 8 dereferenceable(205) %225, ptr noundef nonnull align 8 dereferenceable(205) %226, ptr noundef nonnull align 8 dereferenceable(205) %227, ptr noundef nonnull align 8 dereferenceable(205) %228, ptr noundef nonnull align 8 dereferenceable(205) %229, ptr noundef nonnull align 8 dereferenceable(205) %230, ptr noundef nonnull align 8 dereferenceable(205) %231, ptr noundef nonnull align 8 dereferenceable(205) %232, ptr noundef nonnull align 8 dereferenceable(205) %233, ptr noundef nonnull align 8 dereferenceable(205) %234, ptr noundef nonnull align 8 dereferenceable(205) %235, ptr noundef nonnull align 8 dereferenceable(205) %236, ptr noundef nonnull align 8 dereferenceable(205) %237, ptr noundef nonnull align 8 dereferenceable(205) %238, ptr noundef nonnull align 8 dereferenceable(205) %239, ptr noundef nonnull align 8 dereferenceable(205) %240, ptr noundef nonnull align 8 dereferenceable(205) %241, ptr noundef nonnull align 8 dereferenceable(205) %242)
  store double %243, ptr %61, align 8, !tbaa !9
  br label %244

244:                                              ; preds = %210, %175
  br label %139, !llvm.loop !29

245:                                              ; preds = %167
  %246 = load double, ptr %55, align 8, !tbaa !9
  %247 = load double, ptr %56, align 8, !tbaa !9
  %248 = fsub double %246, %247
  %249 = load double, ptr %33, align 8, !tbaa !9
  %250 = load double, ptr %55, align 8, !tbaa !9
  %251 = fmul double %249, %250
  %252 = fcmp oge double %248, %251
  br i1 %252, label %253, label %308

253:                                              ; preds = %245
  %254 = load double, ptr %32, align 8, !tbaa !9
  %255 = load double, ptr %30, align 8, !tbaa !9
  %256 = load double, ptr %61, align 8, !tbaa !9
  %257 = load double, ptr %62, align 8, !tbaa !9
  %258 = call noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef %254, double noundef %255, double noundef %256, double noundef %257)
  %259 = load double, ptr %32, align 8, !tbaa !9
  %260 = load double, ptr %30, align 8, !tbaa !9
  %261 = load double, ptr %61, align 8, !tbaa !9
  %262 = load double, ptr %62, align 8, !tbaa !9
  %263 = call noundef double @_ZN10SimTKIpopt3MaxEdddd(double noundef %259, double noundef %260, double noundef %261, double noundef %262)
  %264 = fdiv double %258, %263
  %265 = fsub double 1.000000e+00, %264
  %266 = load double, ptr %34, align 8, !tbaa !9
  %267 = fcmp olt double %265, %266
  br i1 %267, label %268, label %308

268:                                              ; preds = %253
  %269 = call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %72)
  call void @llvm.lifetime.start.p0(i64 32, ptr %64) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %65) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef @.str.50, ptr noundef nonnull align 1 dereferenceable(1) %65)
          to label %270 unwind label %282

270:                                              ; preds = %268
  invoke void @_ZN10SimTKIpopt9IpoptData18Append_info_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(864) %269, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %271 unwind label %286

271:                                              ; preds = %270
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %64) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #6
  %272 = load double, ptr %32, align 8, !tbaa !9
  %273 = load double, ptr %30, align 8, !tbaa !9
  %274 = load double, ptr %61, align 8, !tbaa !9
  %275 = load double, ptr %62, align 8, !tbaa !9
  %276 = call noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef %272, double noundef %273, double noundef %274, double noundef %275)
  store double %276, ptr %68, align 8, !tbaa !9
  %277 = load double, ptr %68, align 8, !tbaa !9
  %278 = load double, ptr %32, align 8, !tbaa !9
  %279 = fcmp oeq double %277, %278
  br i1 %279, label %280, label %291

280:                                              ; preds = %271
  %281 = load double, ptr %56, align 8, !tbaa !9
  store double %281, ptr %57, align 8, !tbaa !9
  br label %307

282:                                              ; preds = %268
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %66, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %67, align 4
  br label %290

286:                                              ; preds = %270
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %66, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %67, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #6
  br label %290

290:                                              ; preds = %286, %282
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  br label %407

291:                                              ; preds = %271
  %292 = load double, ptr %68, align 8, !tbaa !9
  %293 = load double, ptr %61, align 8, !tbaa !9
  %294 = fcmp oeq double %292, %293
  br i1 %294, label %295, label %297

295:                                              ; preds = %291
  %296 = load double, ptr %59, align 8, !tbaa !9
  store double %296, ptr %57, align 8, !tbaa !9
  br label %306

297:                                              ; preds = %291
  %298 = load double, ptr %68, align 8, !tbaa !9
  %299 = load double, ptr %62, align 8, !tbaa !9
  %300 = fcmp oeq double %298, %299
  br i1 %300, label %301, label %303

301:                                              ; preds = %297
  %302 = load double, ptr %60, align 8, !tbaa !9
  store double %302, ptr %57, align 8, !tbaa !9
  br label %305

303:                                              ; preds = %297
  %304 = load double, ptr %55, align 8, !tbaa !9
  store double %304, ptr %57, align 8, !tbaa !9
  br label %305

305:                                              ; preds = %303, %301
  br label %306

306:                                              ; preds = %305, %295
  br label %307

307:                                              ; preds = %306, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  br label %404

308:                                              ; preds = %253, %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #6
  %309 = load double, ptr %61, align 8, !tbaa !9
  %310 = load double, ptr %62, align 8, !tbaa !9
  %311 = fcmp olt double %309, %310
  br i1 %311, label %312, label %315

312:                                              ; preds = %308
  %313 = load double, ptr %59, align 8, !tbaa !9
  store double %313, ptr %57, align 8, !tbaa !9
  %314 = load double, ptr %61, align 8, !tbaa !9
  store double %314, ptr %69, align 8, !tbaa !9
  br label %318

315:                                              ; preds = %308
  %316 = load double, ptr %60, align 8, !tbaa !9
  store double %316, ptr %57, align 8, !tbaa !9
  %317 = load double, ptr %62, align 8, !tbaa !9
  store double %317, ptr %69, align 8, !tbaa !9
  br label %318

318:                                              ; preds = %315, %312
  %319 = load double, ptr %55, align 8, !tbaa !9
  %320 = load double, ptr %29, align 8, !tbaa !9
  %321 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %320)
  %322 = fcmp oeq double %319, %321
  br i1 %322, label %323, label %360

323:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #6
  %324 = load double, ptr %30, align 8, !tbaa !9
  %325 = fcmp olt double %324, 0.000000e+00
  br i1 %325, label %326, label %350

326:                                              ; preds = %323
  %327 = load double, ptr %55, align 8, !tbaa !9
  %328 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %327)
  %329 = load ptr, ptr %35, align 8, !tbaa !5
  %330 = load ptr, ptr %36, align 8, !tbaa !5
  %331 = load ptr, ptr %37, align 8, !tbaa !5
  %332 = load ptr, ptr %38, align 8, !tbaa !5
  %333 = load ptr, ptr %39, align 8, !tbaa !5
  %334 = load ptr, ptr %40, align 8, !tbaa !5
  %335 = load ptr, ptr %41, align 8, !tbaa !5
  %336 = load ptr, ptr %42, align 8, !tbaa !5
  %337 = load ptr, ptr %43, align 8, !tbaa !5
  %338 = load ptr, ptr %44, align 8, !tbaa !5
  %339 = load ptr, ptr %45, align 8, !tbaa !5
  %340 = load ptr, ptr %46, align 8, !tbaa !5
  %341 = load ptr, ptr %47, align 8, !tbaa !5
  %342 = load ptr, ptr %48, align 8, !tbaa !5
  %343 = load ptr, ptr %49, align 8, !tbaa !5
  %344 = load ptr, ptr %50, align 8, !tbaa !5
  %345 = load ptr, ptr %51, align 8, !tbaa !5
  %346 = load ptr, ptr %52, align 8, !tbaa !5
  %347 = load ptr, ptr %53, align 8, !tbaa !5
  %348 = load ptr, ptr %54, align 8, !tbaa !5
  %349 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %328, ptr noundef nonnull align 8 dereferenceable(205) %329, ptr noundef nonnull align 8 dereferenceable(205) %330, ptr noundef nonnull align 8 dereferenceable(205) %331, ptr noundef nonnull align 8 dereferenceable(205) %332, ptr noundef nonnull align 8 dereferenceable(205) %333, ptr noundef nonnull align 8 dereferenceable(205) %334, ptr noundef nonnull align 8 dereferenceable(205) %335, ptr noundef nonnull align 8 dereferenceable(205) %336, ptr noundef nonnull align 8 dereferenceable(205) %337, ptr noundef nonnull align 8 dereferenceable(205) %338, ptr noundef nonnull align 8 dereferenceable(205) %339, ptr noundef nonnull align 8 dereferenceable(205) %340, ptr noundef nonnull align 8 dereferenceable(205) %341, ptr noundef nonnull align 8 dereferenceable(205) %342, ptr noundef nonnull align 8 dereferenceable(205) %343, ptr noundef nonnull align 8 dereferenceable(205) %344, ptr noundef nonnull align 8 dereferenceable(205) %345, ptr noundef nonnull align 8 dereferenceable(205) %346, ptr noundef nonnull align 8 dereferenceable(205) %347, ptr noundef nonnull align 8 dereferenceable(205) %348)
  store double %349, ptr %70, align 8, !tbaa !9
  br label %352

350:                                              ; preds = %323
  %351 = load double, ptr %30, align 8, !tbaa !9
  store double %351, ptr %70, align 8, !tbaa !9
  br label %352

352:                                              ; preds = %350, %326
  %353 = load double, ptr %70, align 8, !tbaa !9
  %354 = load double, ptr %69, align 8, !tbaa !9
  %355 = fcmp olt double %353, %354
  br i1 %355, label %356, label %359

356:                                              ; preds = %352
  %357 = load double, ptr %55, align 8, !tbaa !9
  store double %357, ptr %57, align 8, !tbaa !9
  %358 = load double, ptr %70, align 8, !tbaa !9
  store double %358, ptr %69, align 8, !tbaa !9
  br label %359

359:                                              ; preds = %356, %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  br label %403

360:                                              ; preds = %318
  %361 = load double, ptr %56, align 8, !tbaa !9
  %362 = load double, ptr %31, align 8, !tbaa !9
  %363 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %362)
  %364 = fcmp oeq double %361, %363
  br i1 %364, label %365, label %402

365:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #6
  %366 = load double, ptr %32, align 8, !tbaa !9
  %367 = fcmp olt double %366, 0.000000e+00
  br i1 %367, label %368, label %392

368:                                              ; preds = %365
  %369 = load double, ptr %56, align 8, !tbaa !9
  %370 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %369)
  %371 = load ptr, ptr %35, align 8, !tbaa !5
  %372 = load ptr, ptr %36, align 8, !tbaa !5
  %373 = load ptr, ptr %37, align 8, !tbaa !5
  %374 = load ptr, ptr %38, align 8, !tbaa !5
  %375 = load ptr, ptr %39, align 8, !tbaa !5
  %376 = load ptr, ptr %40, align 8, !tbaa !5
  %377 = load ptr, ptr %41, align 8, !tbaa !5
  %378 = load ptr, ptr %42, align 8, !tbaa !5
  %379 = load ptr, ptr %43, align 8, !tbaa !5
  %380 = load ptr, ptr %44, align 8, !tbaa !5
  %381 = load ptr, ptr %45, align 8, !tbaa !5
  %382 = load ptr, ptr %46, align 8, !tbaa !5
  %383 = load ptr, ptr %47, align 8, !tbaa !5
  %384 = load ptr, ptr %48, align 8, !tbaa !5
  %385 = load ptr, ptr %49, align 8, !tbaa !5
  %386 = load ptr, ptr %50, align 8, !tbaa !5
  %387 = load ptr, ptr %51, align 8, !tbaa !5
  %388 = load ptr, ptr %52, align 8, !tbaa !5
  %389 = load ptr, ptr %53, align 8, !tbaa !5
  %390 = load ptr, ptr %54, align 8, !tbaa !5
  %391 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %370, ptr noundef nonnull align 8 dereferenceable(205) %371, ptr noundef nonnull align 8 dereferenceable(205) %372, ptr noundef nonnull align 8 dereferenceable(205) %373, ptr noundef nonnull align 8 dereferenceable(205) %374, ptr noundef nonnull align 8 dereferenceable(205) %375, ptr noundef nonnull align 8 dereferenceable(205) %376, ptr noundef nonnull align 8 dereferenceable(205) %377, ptr noundef nonnull align 8 dereferenceable(205) %378, ptr noundef nonnull align 8 dereferenceable(205) %379, ptr noundef nonnull align 8 dereferenceable(205) %380, ptr noundef nonnull align 8 dereferenceable(205) %381, ptr noundef nonnull align 8 dereferenceable(205) %382, ptr noundef nonnull align 8 dereferenceable(205) %383, ptr noundef nonnull align 8 dereferenceable(205) %384, ptr noundef nonnull align 8 dereferenceable(205) %385, ptr noundef nonnull align 8 dereferenceable(205) %386, ptr noundef nonnull align 8 dereferenceable(205) %387, ptr noundef nonnull align 8 dereferenceable(205) %388, ptr noundef nonnull align 8 dereferenceable(205) %389, ptr noundef nonnull align 8 dereferenceable(205) %390)
  store double %391, ptr %71, align 8, !tbaa !9
  br label %394

392:                                              ; preds = %365
  %393 = load double, ptr %32, align 8, !tbaa !9
  store double %393, ptr %71, align 8, !tbaa !9
  br label %394

394:                                              ; preds = %392, %368
  %395 = load double, ptr %71, align 8, !tbaa !9
  %396 = load double, ptr %69, align 8, !tbaa !9
  %397 = fcmp olt double %395, %396
  br i1 %397, label %398, label %401

398:                                              ; preds = %394
  %399 = load double, ptr %56, align 8, !tbaa !9
  store double %399, ptr %57, align 8, !tbaa !9
  %400 = load double, ptr %71, align 8, !tbaa !9
  store double %400, ptr %69, align 8, !tbaa !9
  br label %401

401:                                              ; preds = %398, %394
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #6
  br label %402

402:                                              ; preds = %401, %360
  br label %403

403:                                              ; preds = %402, %359
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  br label %404

404:                                              ; preds = %403, %307
  %405 = load double, ptr %57, align 8, !tbaa !9
  %406 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %72, double noundef %405)
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  ret double %406

407:                                              ; preds = %290
  %408 = load ptr, ptr %66, align 8
  %409 = load i32, ptr %67, align 4
  %410 = insertvalue { ptr, i32 } poison, ptr %408, 0
  %411 = insertvalue { ptr, i32 } %410, i32 %409, 1
  resume { ptr, i32 } %411
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN10SimTKIpopt3MaxEdddd(double noundef, double noundef, double noundef, double noundef) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef, double noundef, double noundef, double noundef) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 112}
!14 = !{!"_ZTSN10SimTKIpopt23QualityFunctionMuOracleE", !15, i64 0, !23, i64 56, !10, i64 64, !10, i64 72, !24, i64 80, !25, i64 84, !26, i64 88, !10, i64 96, !10, i64 104, !12, i64 112, !27, i64 120, !27, i64 128, !27, i64 136, !27, i64 144, !27, i64 152, !27, i64 160, !27, i64 168, !27, i64 176, !27, i64 184, !27, i64 192, !27, i64 200, !27, i64 208, !27, i64 216, !27, i64 224, !27, i64 232, !27, i64 240, !12, i64 248, !22, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !28, i64 272, !28, i64 280, !28, i64 288, !28, i64 296, !28, i64 304, !28, i64 312, !28, i64 320, !28, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424}
!15 = !{!"_ZTSN10SimTKIpopt8MuOracleE", !16, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt23AlgorithmStrategyObjectE", !17, i64 0, !18, i64 16, !19, i64 24, !20, i64 32, !21, i64 40, !22, i64 48}
!17 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !12, i64 8}
!18 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_10JournalistEEE", !6, i64 0}
!19 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_8IpoptNLPEEE", !6, i64 0}
!20 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_9IpoptDataEEE", !6, i64 0}
!21 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_25IpoptCalculatedQuantitiesEEE", !6, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_14PDSystemSolverEEE", !6, i64 0}
!24 = !{!"_ZTSN10SimTKIpopt23QualityFunctionMuOracle8NormEnumE", !7, i64 0}
!25 = !{!"_ZTSN10SimTKIpopt23QualityFunctionMuOracle14CentralityEnumE", !7, i64 0}
!26 = !{!"_ZTSN10SimTKIpopt23QualityFunctionMuOracle17BalancingTermEnumE", !7, i64 0}
!27 = !{!"_ZTSN10SimTKIpopt8SmartPtrINS_6VectorEEE", !6, i64 0}
!28 = !{!"_ZTSN10SimTKIpopt8SmartPtrIKNS_6VectorEEE", !6, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.14" = type { i8 }

@.str.50 = external hidden unnamed_addr constant [8 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle20PerformGoldenSectionEddddddRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.14", align 1
  %30 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %1)
  %31 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %3)
  %32 = fsub double %30, %31
  %33 = tail call double @llvm.fmuladd.f64(double %32, double 0x3FD8722191A02D60, double %31)
  %34 = tail call double @llvm.fmuladd.f64(double %32, double 0x3FE3C6EF372FE950, double %31)
  %35 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %33)
  %36 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %35, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26)
  %37 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %34)
  %38 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %37, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26)
  %39 = fmul double %30, %5
  %40 = fcmp ult double %32, %39
  br i1 %40, label %.critedge247, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %41 = getelementptr inbounds i8, ptr %0, i64 112
  br label %42

42:                                               ; preds = %.lr.ph, %63
  %.0223272 = phi double [ %2, %.lr.ph ], [ %.1, %63 ]
  %.0226271 = phi i32 [ 0, %.lr.ph ], [ %51, %63 ]
  %.0227270 = phi double [ %38, %.lr.ph ], [ %.1228, %63 ]
  %.0229269 = phi double [ %36, %.lr.ph ], [ %.1230, %63 ]
  %.0231268 = phi double [ %34, %.lr.ph ], [ %.1232, %63 ]
  %.0233267 = phi double [ %33, %.lr.ph ], [ %.1234, %63 ]
  %.0235266 = phi double [ %4, %.lr.ph ], [ %.1236, %63 ]
  %.0239265 = phi double [ %31, %.lr.ph ], [ %.1240, %63 ]
  %.0241264 = phi double [ %30, %.lr.ph ], [ %.1242, %63 ]
  %43 = tail call noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef %.0235266, double noundef %.0223272, double noundef %.0229269, double noundef %.0227270)
  %44 = tail call noundef double @_ZN10SimTKIpopt3MaxEdddd(double noundef %.0235266, double noundef %.0223272, double noundef %.0229269, double noundef %.0227270)
  %45 = fdiv double %43, %44
  %46 = fsub double 1.000000e+00, %45
  %47 = fcmp oge double %46, %6
  %48 = load i32, ptr %41, align 8
  %49 = icmp slt i32 %.0226271, %48
  %or.cond = select i1 %47, i1 %49, i1 false
  br i1 %or.cond, label %50, label %.critedge

50:                                               ; preds = %42
  %51 = add nuw nsw i32 %.0226271, 1
  %52 = fcmp ogt double %.0229269, %.0227270
  br i1 %52, label %53, label %58

53:                                               ; preds = %50
  %54 = fsub double %.0241264, %.0233267
  %55 = tail call double @llvm.fmuladd.f64(double %54, double 0x3FE3C6EF372FE950, double %.0233267)
  %56 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %55)
  %57 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %56, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26)
  br label %63

58:                                               ; preds = %50
  %59 = fsub double %.0231268, %.0239265
  %60 = tail call double @llvm.fmuladd.f64(double %59, double 0x3FD8722191A02D60, double %.0239265)
  %61 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %60)
  %62 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %61, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26)
  br label %63

63:                                               ; preds = %58, %53
  %.pre-phi = phi double [ %59, %58 ], [ %54, %53 ]
  %.1242 = phi double [ %.0231268, %58 ], [ %.0241264, %53 ]
  %.1240 = phi double [ %.0239265, %58 ], [ %.0233267, %53 ]
  %.1236 = phi double [ %.0235266, %58 ], [ %.0229269, %53 ]
  %.1234 = phi double [ %60, %58 ], [ %.0231268, %53 ]
  %.1232 = phi double [ %.0233267, %58 ], [ %55, %53 ]
  %.1230 = phi double [ %62, %58 ], [ %.0227270, %53 ]
  %.1228 = phi double [ %.0229269, %58 ], [ %57, %53 ]
  %.1 = phi double [ %.0227270, %58 ], [ %.0223272, %53 ]
  %64 = fmul double %.1242, %5
  %65 = fcmp ult double %.pre-phi, %64
  br i1 %65, label %.critedge247, label %42, !llvm.loop !5

.critedge:                                        ; preds = %42
  %66 = tail call noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef %.0235266, double noundef %.0223272, double noundef %.0229269, double noundef %.0227270)
  %67 = tail call noundef double @_ZN10SimTKIpopt3MaxEdddd(double noundef %.0235266, double noundef %.0223272, double noundef %.0229269, double noundef %.0227270)
  %68 = fdiv double %66, %67
  %69 = fsub double 1.000000e+00, %68
  %70 = fcmp olt double %69, %6
  br i1 %70, label %71, label %.critedge247

71:                                               ; preds = %.critedge
  %72 = tail call noundef nonnull align 8 dereferenceable(864) ptr @_ZNK10SimTKIpopt23AlgorithmStrategyObject6IpDataEv(ptr noundef nonnull align 8 dereferenceable(49) %0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.50, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %73 unwind label %77

73:                                               ; preds = %71
  invoke void @_ZN10SimTKIpopt9IpoptData18Append_info_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(864) %72, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %74 unwind label %79

74:                                               ; preds = %73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #5
  %75 = call noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef %.0235266, double noundef %.0223272, double noundef %.0229269, double noundef %.0227270)
  %76 = fcmp oeq double %75, %.0235266
  br i1 %76, label %106, label %82

77:                                               ; preds = %71
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %81

81:                                               ; preds = %79, %77
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #5
  resume { ptr, i32 } %.pn

82:                                               ; preds = %74
  %83 = fcmp oeq double %75, %.0229269
  br i1 %83, label %106, label %84

84:                                               ; preds = %82
  %85 = fcmp oeq double %75, %.0227270
  %.0231..0241 = select i1 %85, double %.0231268, double %.0241264
  br label %106

.critedge247:                                     ; preds = %63, %27, %.critedge
  %.0241263 = phi double [ %.0241264, %.critedge ], [ %30, %27 ], [ %.1242, %63 ]
  %.0239261 = phi double [ %.0239265, %.critedge ], [ %31, %27 ], [ %.1240, %63 ]
  %.0235259 = phi double [ %.0235266, %.critedge ], [ %4, %27 ], [ %.1236, %63 ]
  %.0233257 = phi double [ %.0233267, %.critedge ], [ %33, %27 ], [ %.1234, %63 ]
  %.0231255 = phi double [ %.0231268, %.critedge ], [ %34, %27 ], [ %.1232, %63 ]
  %.0229253 = phi double [ %.0229269, %.critedge ], [ %36, %27 ], [ %.1230, %63 ]
  %.0227251 = phi double [ %.0227270, %.critedge ], [ %38, %27 ], [ %.1228, %63 ]
  %.0223249 = phi double [ %.0223272, %.critedge ], [ %2, %27 ], [ %.1, %63 ]
  %86 = fcmp olt double %.0229253, %.0227251
  %.0233..0231 = select i1 %86, double %.0233257, double %.0231255
  %.0229..0227 = select i1 %86, double %.0229253, double %.0227251
  %87 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %1)
  %88 = fcmp oeq double %.0241263, %87
  br i1 %88, label %89, label %96

89:                                               ; preds = %.critedge247
  %90 = fcmp olt double %.0223249, 0.000000e+00
  br i1 %90, label %91, label %94

91:                                               ; preds = %89
  %92 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %.0241263)
  %93 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %92, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26)
  br label %94

94:                                               ; preds = %89, %91
  %.0221 = phi double [ %93, %91 ], [ %.0223249, %89 ]
  %95 = fcmp olt double %.0221, %.0229..0227
  %.2 = select i1 %95, double %.0241263, double %.0233..0231
  br label %106

96:                                               ; preds = %.critedge247
  %97 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle10ScaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %3)
  %98 = fcmp oeq double %.0239261, %97
  br i1 %98, label %99, label %106

99:                                               ; preds = %96
  %100 = fcmp olt double %.0235259, 0.000000e+00
  br i1 %100, label %101, label %104

101:                                              ; preds = %99
  %102 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %.0239261)
  %103 = tail call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle24CalculateQualityFunctionEdRKNS_6VectorES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %102, ptr noundef nonnull align 8 dereferenceable(205) %7, ptr noundef nonnull align 8 dereferenceable(205) %8, ptr noundef nonnull align 8 dereferenceable(205) %9, ptr noundef nonnull align 8 dereferenceable(205) %10, ptr noundef nonnull align 8 dereferenceable(205) %11, ptr noundef nonnull align 8 dereferenceable(205) %12, ptr noundef nonnull align 8 dereferenceable(205) %13, ptr noundef nonnull align 8 dereferenceable(205) %14, ptr noundef nonnull align 8 dereferenceable(205) %15, ptr noundef nonnull align 8 dereferenceable(205) %16, ptr noundef nonnull align 8 dereferenceable(205) %17, ptr noundef nonnull align 8 dereferenceable(205) %18, ptr noundef nonnull align 8 dereferenceable(205) %19, ptr noundef nonnull align 8 dereferenceable(205) %20, ptr noundef nonnull align 8 dereferenceable(205) %21, ptr noundef nonnull align 8 dereferenceable(205) %22, ptr noundef nonnull align 8 dereferenceable(205) %23, ptr noundef nonnull align 8 dereferenceable(205) %24, ptr noundef nonnull align 8 dereferenceable(205) %25, ptr noundef nonnull align 8 dereferenceable(205) %26)
  br label %104

104:                                              ; preds = %99, %101
  %.0 = phi double [ %103, %101 ], [ %.0235259, %99 ]
  %105 = fcmp olt double %.0, %.0229..0227
  %.3 = select i1 %105, double %.0239261, double %.0233..0231
  br label %106

106:                                              ; preds = %94, %104, %96, %74, %82, %84
  %.5 = phi double [ %.0239265, %74 ], [ %.0233267, %82 ], [ %.0231..0241, %84 ], [ %.2, %94 ], [ %.3, %104 ], [ %.0233..0231, %96 ]
  %107 = call noundef double @_ZN10SimTKIpopt23QualityFunctionMuOracle12UnscaleSigmaEd(ptr noundef nonnull align 8 dereferenceable(432) %0, double noundef %.5)
  ret double %107
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN10SimTKIpopt3MaxEdddd(double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN10SimTKIpopt3MinEdddd(double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 = { 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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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