; LLVM IR from Tencent-RoboticsX/jbdl :: src/jbdl/experimental/qpoases/src (QProblem)

; 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.qpOASES::QProblemB" = type { ptr, i32, ptr, ptr, ptr, ptr, %"class.qpOASES::Bounds", ptr, i32, ptr, ptr, double, i32, i32, i32, i32, double, i32, ptr, double, double, i32, [4 x i8], %"class.qpOASES::Options", %"class.qpOASES::Flipper", %"struct.qpOASES::TabularOutput" }
%"class.qpOASES::Bounds" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"class.qpOASES::SubjectTo" = type { ptr, i32, ptr, ptr, i32, i32 }
%"class.qpOASES::Indexlist" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Options" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, double, double, double, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Flipper" = type { i32, i32, %"class.qpOASES::Bounds", %"class.qpOASES::Constraints", ptr, ptr, ptr }
%"class.qpOASES::Constraints" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"struct.qpOASES::TabularOutput" = type { i32, i32, i32, i32, i32, i32, i32, i32 }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK7qpOASES8QProblem15updateFarBoundsEdiPKdPdS2_S3_S2_S3_S2_S3_(ptr noundef nonnull align 8 dereferenceable(1064) %0, double noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #2 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store double %1, ptr %14, align 8, !tbaa !9
  store i32 %2, ptr %15, align 4, !tbaa !11
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  %31 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %32 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %31)
  store i32 %32, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %33 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %31)
  store i32 %33, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %34 = load double, ptr %14, align 8, !tbaa !9
  %35 = load i32, ptr %15, align 4, !tbaa !11
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  %39 = load ptr, ptr %19, align 8, !tbaa !5
  %40 = call noundef i32 @_ZNK7qpOASES9QProblemB15updateFarBoundsEdiPKdPdS2_S3_(ptr noundef nonnull align 8 dereferenceable(800) %31, double noundef %34, i32 noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39)
  store i32 %40, ptr %29, align 4, !tbaa !13
  %41 = load i32, ptr %29, align 4, !tbaa !13
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %11
  %44 = load i32, ptr %29, align 4, !tbaa !13
  store i32 %44, ptr %12, align 4
  store i32 1, ptr %30, align 4
  br label %183

45:                                               ; preds = %11
  %46 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %31, i32 0, i32 23
  %47 = getelementptr inbounds %"class.qpOASES::Options", ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %128

50:                                               ; preds = %45
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %51

51:                                               ; preds = %124, %50
  %52 = load i32, ptr %24, align 4, !tbaa !11
  %53 = load i32, ptr %28, align 4, !tbaa !11
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %55, label %127

55:                                               ; preds = %51
  %56 = load i32, ptr %27, align 4, !tbaa !11
  %57 = load i32, ptr %24, align 4, !tbaa !11
  %58 = add nsw i32 %56, %57
  %59 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %31, i32 0, i32 21
  %60 = load i32, ptr %59, align 8, !tbaa !29
  %61 = add nsw i32 %58, %60
  %62 = load i32, ptr %15, align 4, !tbaa !11
  %63 = srem i32 %61, %62
  %64 = sitofp i32 %63 to double
  %65 = load i32, ptr %15, align 4, !tbaa !11
  %66 = sub nsw i32 %65, 1
  %67 = sitofp i32 %66 to double
  %68 = fdiv double %64, %67
  store double %68, ptr %26, align 8, !tbaa !9
  %69 = load double, ptr %14, align 8, !tbaa !9
  %70 = load double, ptr %26, align 8, !tbaa !9
  %71 = fsub double 1.000000e+00, %70
  %72 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %31, i32 0, i32 19
  %73 = load double, ptr %72, align 8, !tbaa !30
  %74 = call double @llvm.fmuladd.f64(double %71, double %73, double 1.000000e+00)
  %75 = load double, ptr %26, align 8, !tbaa !9
  %76 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %31, i32 0, i32 20
  %77 = load double, ptr %76, align 8, !tbaa !31
  %78 = call double @llvm.fmuladd.f64(double %75, double %77, double %74)
  %79 = fmul double %69, %78
  store double %79, ptr %25, align 8, !tbaa !9
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %89

82:                                               ; preds = %55
  %83 = load double, ptr %25, align 8, !tbaa !9
  %84 = fneg double %83
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  %86 = load i32, ptr %24, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  store double %84, ptr %88, align 8, !tbaa !9
  br label %102

89:                                               ; preds = %55
  %90 = load double, ptr %25, align 8, !tbaa !9
  %91 = fneg double %90
  %92 = load ptr, ptr %20, align 8, !tbaa !5
  %93 = load i32, ptr %24, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = call noundef double @_ZN7qpOASES6getMaxEdd(double noundef %91, double noundef %96)
  %98 = load ptr, ptr %21, align 8, !tbaa !5
  %99 = load i32, ptr %24, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  store double %97, ptr %101, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %89, %82
  %103 = load ptr, ptr %22, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %111

105:                                              ; preds = %102
  %106 = load double, ptr %25, align 8, !tbaa !9
  %107 = load ptr, ptr %23, align 8, !tbaa !5
  %108 = load i32, ptr %24, align 4, !tbaa !11
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds double, ptr %107, i64 %109
  store double %106, ptr %110, align 8, !tbaa !9
  br label %123

111:                                              ; preds = %102
  %112 = load double, ptr %25, align 8, !tbaa !9
  %113 = load ptr, ptr %22, align 8, !tbaa !5
  %114 = load i32, ptr %24, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = call noundef double @_ZN7qpOASES6getMinEdd(double noundef %112, double noundef %117)
  %119 = load ptr, ptr %23, align 8, !tbaa !5
  %120 = load i32, ptr %24, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  store double %118, ptr %122, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %111, %105
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %24, align 4, !tbaa !11
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %24, align 4, !tbaa !11
  br label %51, !llvm.loop !32

127:                                              ; preds = %51
  br label %182

128:                                              ; preds = %45
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %129

129:                                              ; preds = %178, %128
  %130 = load i32, ptr %24, align 4, !tbaa !11
  %131 = load i32, ptr %28, align 4, !tbaa !11
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %133, label %181

133:                                              ; preds = %129
  %134 = load ptr, ptr %20, align 8, !tbaa !5
  %135 = icmp eq ptr %134, null
  br i1 %135, label %136, label %143

136:                                              ; preds = %133
  %137 = load double, ptr %14, align 8, !tbaa !9
  %138 = fneg double %137
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = load i32, ptr %24, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  store double %138, ptr %142, align 8, !tbaa !9
  br label %156

143:                                              ; preds = %133
  %144 = load double, ptr %14, align 8, !tbaa !9
  %145 = fneg double %144
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = load i32, ptr %24, align 4, !tbaa !11
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = call noundef double @_ZN7qpOASES6getMaxEdd(double noundef %145, double noundef %150)
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = load i32, ptr %24, align 4, !tbaa !11
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds double, ptr %152, i64 %154
  store double %151, ptr %155, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %143, %136
  %157 = load ptr, ptr %22, align 8, !tbaa !5
  %158 = icmp eq ptr %157, null
  br i1 %158, label %159, label %165

159:                                              ; preds = %156
  %160 = load double, ptr %14, align 8, !tbaa !9
  %161 = load ptr, ptr %23, align 8, !tbaa !5
  %162 = load i32, ptr %24, align 4, !tbaa !11
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  store double %160, ptr %164, align 8, !tbaa !9
  br label %177

165:                                              ; preds = %156
  %166 = load double, ptr %14, align 8, !tbaa !9
  %167 = load ptr, ptr %22, align 8, !tbaa !5
  %168 = load i32, ptr %24, align 4, !tbaa !11
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = call noundef double @_ZN7qpOASES6getMinEdd(double noundef %166, double noundef %171)
  %173 = load ptr, ptr %23, align 8, !tbaa !5
  %174 = load i32, ptr %24, align 4, !tbaa !11
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  store double %172, ptr %176, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %165, %159
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %24, align 4, !tbaa !11
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %24, align 4, !tbaa !11
  br label %129, !llvm.loop !34

181:                                              ; preds = %129
  br label %182

182:                                              ; preds = %181, %127
  store i32 0, ptr %12, align 4
  store i32 1, ptr %30, align 4
  br label %183

183:                                              ; preds = %182, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %184 = load i32, ptr %12, align 4
  ret i32 %184
}

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

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

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

declare noundef i32 @_ZNK7qpOASES9QProblemB15updateFarBoundsEdiPKdPdS2_S3_(ptr noundef nonnull align 8 dereferenceable(800), double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN7qpOASES11returnValueE", !7, i64 0}
!15 = !{!16, !17, i64 276}
!16 = !{!"_ZTSN7qpOASES9QProblemBE", !17, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !18, i64 48, !6, i64 168, !17, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !21, i64 208, !17, i64 212, !17, i64 216, !22, i64 220, !10, i64 224, !12, i64 232, !6, i64 240, !10, i64 248, !10, i64 256, !12, i64 264, !23, i64 272, !26, i64 496, !28, i64 768}
!17 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!18 = !{!"_ZTSN7qpOASES6BoundsE", !19, i64 0, !20, i64 40, !20, i64 80}
!19 = !{!"_ZTSN7qpOASES9SubjectToE", !12, i64 8, !6, i64 16, !6, i64 24, !17, i64 32, !17, i64 36}
!20 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!21 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!22 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!23 = !{!"_ZTSN7qpOASES7OptionsE", !24, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !12, i64 28, !12, i64 32, !17, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !25, i64 128, !10, i64 136, !12, i64 144, !10, i64 152, !12, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !17, i64 200, !17, i64 204, !12, i64 208, !12, i64 212, !12, i64 216}
!24 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!25 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!26 = !{!"_ZTSN7qpOASES7FlipperE", !12, i64 0, !12, i64 4, !18, i64 8, !27, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!27 = !{!"_ZTSN7qpOASES11ConstraintsE", !19, i64 0, !20, i64 40, !20, i64 80}
!28 = !{!"_ZTSN7qpOASES13TabularOutputE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!29 = !{!16, !12, i64 264}
!30 = !{!16, !10, i64 248}
!31 = !{!16, !10, i64 256}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK7qpOASES8QProblem15updateFarBoundsEdiPKdPdS2_S3_S2_S3_S2_S3_(ptr noundef nonnull align 8 dereferenceable(1064) %0, double noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef readonly %7, ptr nocapture noundef writeonly %8, ptr noundef readonly %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #1 align 2 {
  %12 = ptrtoint ptr %8 to i64
  %13 = ptrtoint ptr %10 to i64
  %14 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %15 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %16 = tail call noundef i32 @_ZNK7qpOASES9QProblemB15updateFarBoundsEdiPKdPdS2_S3_(ptr noundef nonnull align 8 dereferenceable(800) %0, double noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %17, label %.loopexit

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %0, i64 276
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 1
  %21 = icmp sgt i32 %15, 0
  br i1 %20, label %.preheader, label %.preheader64

.preheader64:                                     ; preds = %17
  br i1 %21, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader64
  %22 = icmp eq ptr %7, null
  %23 = fneg double %1
  %24 = icmp eq ptr %9, null
  %wide.trip.count88 = zext nneg i32 %15 to i64
  br i1 %22, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %24, label %.lr.ph.split.us.split.us.preheader, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us.preheader:               ; preds = %.lr.ph.split.us
  %min.iters.check = icmp ult i32 %15, 6
  %25 = sub i64 %13, %12
  %diff.check = icmp ult i64 %25, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.split.us.split.us.preheader106, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.split.us.split.us.preheader
  %n.vec = and i64 %wide.trip.count88, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %23, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert104 = insertelement <2 x double> poison, double %1, i64 0
  %broadcast.splat105 = shufflevector <2 x double> %broadcast.splatinsert104, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %26 = getelementptr inbounds double, ptr %8, i64 %index
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <2 x double> %broadcast.splat, ptr %26, align 8, !tbaa !24
  store <2 x double> %broadcast.splat, ptr %27, align 8, !tbaa !24
  %28 = getelementptr inbounds double, ptr %10, i64 %index
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <2 x double> %broadcast.splat105, ptr %28, align 8, !tbaa !24
  store <2 x double> %broadcast.splat105, ptr %29, align 8, !tbaa !24
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count88
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.split.us.split.us.preheader106

.lr.ph.split.us.split.us.preheader106:            ; preds = %middle.block, %.lr.ph.split.us.split.us.preheader
  %indvars.iv85.ph = phi i64 [ 0, %.lr.ph.split.us.split.us.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count88, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.split.us.split.us.prol.loopexit, label %.lr.ph.split.us.split.us.prol

.lr.ph.split.us.split.us.prol:                    ; preds = %.lr.ph.split.us.split.us.preheader106, %.lr.ph.split.us.split.us.prol
  %indvars.iv85.prol = phi i64 [ %indvars.iv.next86.prol, %.lr.ph.split.us.split.us.prol ], [ %indvars.iv85.ph, %.lr.ph.split.us.split.us.preheader106 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.split.us.split.us.prol ], [ 0, %.lr.ph.split.us.split.us.preheader106 ]
  %31 = getelementptr inbounds double, ptr %8, i64 %indvars.iv85.prol
  store double %23, ptr %31, align 8, !tbaa !24
  %32 = getelementptr inbounds double, ptr %10, i64 %indvars.iv85.prol
  store double %1, ptr %32, align 8, !tbaa !24
  %indvars.iv.next86.prol = add nuw nsw i64 %indvars.iv85.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.split.us.split.us.prol.loopexit, label %.lr.ph.split.us.split.us.prol, !llvm.loop !29

.lr.ph.split.us.split.us.prol.loopexit:           ; preds = %.lr.ph.split.us.split.us.prol, %.lr.ph.split.us.split.us.preheader106
  %indvars.iv85.unr = phi i64 [ %indvars.iv85.ph, %.lr.ph.split.us.split.us.preheader106 ], [ %indvars.iv.next86.prol, %.lr.ph.split.us.split.us.prol ]
  %33 = sub nsw i64 %indvars.iv85.ph, %wide.trip.count88
  %34 = icmp ugt i64 %33, -4
  br i1 %34, label %.loopexit, label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us.split.us.prol.loopexit, %.lr.ph.split.us.split.us
  %indvars.iv85 = phi i64 [ %indvars.iv.next86.3, %.lr.ph.split.us.split.us ], [ %indvars.iv85.unr, %.lr.ph.split.us.split.us.prol.loopexit ]
  %35 = getelementptr inbounds double, ptr %8, i64 %indvars.iv85
  store double %23, ptr %35, align 8, !tbaa !24
  %36 = getelementptr inbounds double, ptr %10, i64 %indvars.iv85
  store double %1, ptr %36, align 8, !tbaa !24
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %37 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next86
  store double %23, ptr %37, align 8, !tbaa !24
  %38 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next86
  store double %1, ptr %38, align 8, !tbaa !24
  %indvars.iv.next86.1 = add nuw nsw i64 %indvars.iv85, 2
  %39 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next86.1
  store double %23, ptr %39, align 8, !tbaa !24
  %40 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next86.1
  store double %1, ptr %40, align 8, !tbaa !24
  %indvars.iv.next86.2 = add nuw nsw i64 %indvars.iv85, 3
  %41 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next86.2
  store double %23, ptr %41, align 8, !tbaa !24
  %42 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next86.2
  store double %1, ptr %42, align 8, !tbaa !24
  %indvars.iv.next86.3 = add nuw nsw i64 %indvars.iv85, 4
  %exitcond89.not.3 = icmp eq i64 %indvars.iv.next86.3, %wide.trip.count88
  br i1 %exitcond89.not.3, label %.loopexit, label %.lr.ph.split.us.split.us, !llvm.loop !31

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %.lr.ph.split.us.split ], [ 0, %.lr.ph.split.us ]
  %43 = getelementptr inbounds double, ptr %8, i64 %indvars.iv80
  store double %23, ptr %43, align 8, !tbaa !24
  %44 = getelementptr inbounds double, ptr %9, i64 %indvars.iv80
  %45 = load double, ptr %44, align 8, !tbaa !24
  %46 = tail call noundef double @_ZN7qpOASES6getMinEdd(double noundef %1, double noundef %45)
  %47 = getelementptr inbounds double, ptr %10, i64 %indvars.iv80
  store double %46, ptr %47, align 8, !tbaa !24
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count88
  br i1 %exitcond84.not, label %.loopexit, label %.lr.ph.split.us.split, !llvm.loop !32

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %24, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %.lr.ph.split.split.us
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split ]
  %48 = getelementptr inbounds double, ptr %7, i64 %indvars.iv75
  %49 = load double, ptr %48, align 8, !tbaa !24
  %50 = tail call noundef double @_ZN7qpOASES6getMaxEdd(double noundef %23, double noundef %49)
  %51 = getelementptr inbounds double, ptr %8, i64 %indvars.iv75
  store double %50, ptr %51, align 8, !tbaa !24
  %52 = getelementptr inbounds double, ptr %10, i64 %indvars.iv75
  store double %1, ptr %52, align 8, !tbaa !24
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %wide.trip.count88
  br i1 %exitcond79.not, label %.loopexit, label %.lr.ph.split.split.us, !llvm.loop !32

.preheader:                                       ; preds = %17
  br i1 %21, label %.lr.ph69, label %.loopexit

.lr.ph69:                                         ; preds = %.preheader
  %53 = getelementptr inbounds i8, ptr %0, i64 264
  %54 = add nsw i32 %2, -1
  %55 = sitofp i32 %54 to double
  %56 = getelementptr inbounds i8, ptr %0, i64 248
  %57 = getelementptr inbounds i8, ptr %0, i64 256
  %58 = icmp eq ptr %7, null
  %59 = icmp eq ptr %9, null
  %wide.trip.count93 = zext nneg i32 %15 to i64
  br label %60

60:                                               ; preds = %.lr.ph69, %85
  %indvars.iv90 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next91, %85 ]
  %61 = load i32, ptr %53, align 8, !tbaa !33
  %62 = trunc i64 %indvars.iv90 to i32
  %63 = add i32 %14, %62
  %64 = add nsw i32 %63, %61
  %65 = srem i32 %64, %2
  %66 = sitofp i32 %65 to double
  %67 = fdiv double %66, %55
  %68 = fsub double 1.000000e+00, %67
  %69 = load double, ptr %56, align 8, !tbaa !34
  %70 = tail call double @llvm.fmuladd.f64(double %68, double %69, double 1.000000e+00)
  %71 = load double, ptr %57, align 8, !tbaa !35
  %72 = tail call double @llvm.fmuladd.f64(double %67, double %71, double %70)
  %73 = fmul double %72, %1
  %74 = fneg double %73
  br i1 %58, label %79, label %75

75:                                               ; preds = %60
  %76 = getelementptr inbounds double, ptr %7, i64 %indvars.iv90
  %77 = load double, ptr %76, align 8, !tbaa !24
  %78 = tail call noundef double @_ZN7qpOASES6getMaxEdd(double noundef %74, double noundef %77)
  br label %79

79:                                               ; preds = %60, %75
  %.sink = phi double [ %78, %75 ], [ %74, %60 ]
  %80 = getelementptr inbounds double, ptr %8, i64 %indvars.iv90
  store double %.sink, ptr %80, align 8
  br i1 %59, label %85, label %81

81:                                               ; preds = %79
  %82 = getelementptr inbounds double, ptr %9, i64 %indvars.iv90
  %83 = load double, ptr %82, align 8, !tbaa !24
  %84 = tail call noundef double @_ZN7qpOASES6getMinEdd(double noundef %73, double noundef %83)
  br label %85

85:                                               ; preds = %79, %81
  %.sink95 = phi double [ %84, %81 ], [ %73, %79 ]
  %86 = getelementptr inbounds double, ptr %10, i64 %indvars.iv90
  store double %.sink95, ptr %86, align 8
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next91, %wide.trip.count93
  br i1 %exitcond94.not, label %.loopexit, label %60, !llvm.loop !36

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %.lr.ph.split.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.split ], [ 0, %.lr.ph.split ]
  %87 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  %88 = load double, ptr %87, align 8, !tbaa !24
  %89 = tail call noundef double @_ZN7qpOASES6getMaxEdd(double noundef %23, double noundef %88)
  %90 = getelementptr inbounds double, ptr %8, i64 %indvars.iv
  store double %89, ptr %90, align 8, !tbaa !24
  %91 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %92 = load double, ptr %91, align 8, !tbaa !24
  %93 = tail call noundef double @_ZN7qpOASES6getMinEdd(double noundef %1, double noundef %92)
  %94 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  store double %93, ptr %94, align 8, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count88
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph.split.split, !llvm.loop !32

.loopexit:                                        ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us, %.lr.ph.split.us.split, %.lr.ph.split.us.split.us.prol.loopexit, %.lr.ph.split.us.split.us, %85, %middle.block, %.preheader64, %.preheader, %11
  %.0 = phi i32 [ %16, %11 ], [ 0, %.preheader ], [ 0, %.preheader64 ], [ 0, %middle.block ], [ 0, %85 ], [ 0, %.lr.ph.split.us.split.us ], [ 0, %.lr.ph.split.us.split.us.prol.loopexit ], [ 0, %.lr.ph.split.us.split ], [ 0, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split.split ]
  ret i32 %.0
}

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

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

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

declare noundef i32 @_ZNK7qpOASES9QProblemB15updateFarBoundsEdiPKdPdS2_S3_(ptr noundef nonnull align 8 dereferenceable(800), double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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" }

!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, !7, i64 276}
!6 = !{!"_ZTSN7qpOASES9QProblemBE", !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 192, !15, i64 200, !16, i64 208, !7, i64 212, !7, i64 216, !17, i64 220, !15, i64 224, !13, i64 232, !10, i64 240, !15, i64 248, !15, i64 256, !13, i64 264, !18, i64 272, !21, i64 496, !23, i64 768}
!7 = !{!"_ZTSN7qpOASES11BooleanTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN7qpOASES6BoundsE", !12, i64 0, !14, i64 40, !14, i64 80}
!12 = !{!"_ZTSN7qpOASES9SubjectToE", !13, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 36}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN7qpOASES9IndexlistE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN7qpOASES14QProblemStatusE", !8, i64 0}
!17 = !{!"_ZTSN7qpOASES11HessianTypeE", !8, i64 0}
!18 = !{!"_ZTSN7qpOASES7OptionsE", !19, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !13, i64 28, !13, i64 32, !7, i64 36, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !20, i64 128, !15, i64 136, !13, i64 144, !15, i64 152, !13, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !7, i64 200, !7, i64 204, !13, i64 208, !13, i64 212, !13, i64 216}
!19 = !{!"_ZTSN7qpOASES10PrintLevelE", !8, i64 0}
!20 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !8, i64 0}
!21 = !{!"_ZTSN7qpOASES7FlipperE", !13, i64 0, !13, i64 4, !11, i64 8, !22, i64 128, !10, i64 248, !10, i64 256, !10, i64 264}
!22 = !{!"_ZTSN7qpOASES11ConstraintsE", !12, i64 0, !14, i64 40, !14, i64 80}
!23 = !{!"_ZTSN7qpOASES13TabularOutputE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28}
!24 = !{!15, !15, i64 0}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = distinct !{!31, !26, !27}
!32 = distinct !{!32, !26}
!33 = !{!6, !13, i64 264}
!34 = !{!6, !15, i64 248}
!35 = !{!6, !15, i64 256}
!36 = distinct !{!36, !26}


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