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

; 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: 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 i32 @_ZNK7qpOASES9QProblemB19usingRegularisationEv(ptr noundef nonnull align 8 dereferenceable(800)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9QProblemB24setupAuxiliaryQPgradientEv(ptr noundef nonnull align 8 dereferenceable(800) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %6 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %5)
  store i32 %6, ptr %4, align 4, !tbaa !9
  %7 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 15
  %8 = load i32, ptr %7, align 4, !tbaa !11
  switch i32 %8, label %93 [
    i32 0, label %9
    i32 1, label %65
  ]

9:                                                ; preds = %1
  %10 = call noundef i32 @_ZNK7qpOASES9QProblemB19usingRegularisationEv(ptr noundef nonnull align 8 dereferenceable(800) %5)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %33

12:                                               ; preds = %9
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %29, %12
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %17, label %32

17:                                               ; preds = %13
  %18 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 10
  %19 = load ptr, ptr %18, align 8, !tbaa !26
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds double, ptr %19, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !27
  %24 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !28
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds double, ptr %25, i64 %27
  store double %23, ptr %28, align 8, !tbaa !27
  br label %29

29:                                               ; preds = %17
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !9
  br label %13, !llvm.loop !29

32:                                               ; preds = %13
  br label %64

33:                                               ; preds = %9
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %60, %33
  %35 = load i32, ptr %3, align 4, !tbaa !9
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %63

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 10
  %40 = load ptr, ptr %39, align 8, !tbaa !26
  %41 = load i32, ptr %3, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !27
  %45 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 16
  %46 = load double, ptr %45, align 8, !tbaa !31
  %47 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 9
  %48 = load ptr, ptr %47, align 8, !tbaa !32
  %49 = load i32, ptr %3, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !27
  %53 = fneg double %46
  %54 = call double @llvm.fmuladd.f64(double %53, double %52, double %44)
  %55 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  %57 = load i32, ptr %3, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  store double %54, ptr %59, align 8, !tbaa !27
  br label %60

60:                                               ; preds = %38
  %61 = load i32, ptr %3, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !9
  br label %34, !llvm.loop !33

63:                                               ; preds = %34
  br label %64

64:                                               ; preds = %63, %32
  br label %130

65:                                               ; preds = %1
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %89, %65
  %67 = load i32, ptr %3, align 4, !tbaa !9
  %68 = load i32, ptr %4, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %92

70:                                               ; preds = %66
  %71 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 10
  %72 = load ptr, ptr %71, align 8, !tbaa !26
  %73 = load i32, ptr %3, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !27
  %77 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 9
  %78 = load ptr, ptr %77, align 8, !tbaa !32
  %79 = load i32, ptr %3, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !27
  %83 = fsub double %76, %82
  %84 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 3
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  %86 = load i32, ptr %3, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  store double %83, ptr %88, align 8, !tbaa !27
  br label %89

89:                                               ; preds = %70
  %90 = load i32, ptr %3, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %3, align 4, !tbaa !9
  br label %66, !llvm.loop !34

92:                                               ; preds = %66
  br label %130

93:                                               ; preds = %1
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %110, %93
  %95 = load i32, ptr %3, align 4, !tbaa !9
  %96 = load i32, ptr %4, align 4, !tbaa !9
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %98, label %113

98:                                               ; preds = %94
  %99 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 10
  %100 = load ptr, ptr %99, align 8, !tbaa !26
  %101 = load i32, ptr %3, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !27
  %105 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 3
  %106 = load ptr, ptr %105, align 8, !tbaa !28
  %107 = load i32, ptr %3, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  store double %104, ptr %109, align 8, !tbaa !27
  br label %110

110:                                              ; preds = %98
  %111 = load i32, ptr %3, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %3, align 4, !tbaa !9
  br label %94, !llvm.loop !35

113:                                              ; preds = %94
  %114 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !36
  %116 = load ptr, ptr %115, align 8, !tbaa !37
  %117 = getelementptr i8, ptr %116, i64 -24
  %118 = load i64, ptr %117, align 8
  %119 = getelementptr inbounds i8, ptr %115, i64 %118
  %120 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 9
  %121 = load ptr, ptr %120, align 8, !tbaa !32
  %122 = load i32, ptr %4, align 4, !tbaa !9
  %123 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %5, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !28
  %125 = load i32, ptr %4, align 4, !tbaa !9
  %126 = load ptr, ptr %119, align 8, !tbaa !37
  %127 = getelementptr inbounds ptr, ptr %126, i64 15
  %128 = load ptr, ptr %127, align 8
  %129 = call noundef i32 %128(ptr noundef nonnull align 8 dereferenceable(12) %119, i32 noundef 1, double noundef -1.000000e+00, ptr noundef %121, i32 noundef %122, double noundef 1.000000e+00, ptr noundef %124, i32 noundef %125)
  br label %130

130:                                              ; preds = %113, %92, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 0
}

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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


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

; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9QProblemB24setupAuxiliaryQPgradientEv(ptr noundef nonnull align 8 dereferenceable(800) %0) local_unnamed_addr #3 align 2 {
  %2 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 220
  %4 = load i32, ptr %3, align 4, !tbaa !5
  switch i32 %4, label %.preheader [
    i32 0, label %52
    i32 1, label %.preheader28
  ]

.preheader28:                                     ; preds = %1
  %5 = icmp sgt i32 %2, 0
  br i1 %5, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader28
  %6 = getelementptr inbounds i8, ptr %0, i64 192
  %7 = load ptr, ptr %6, align 8, !tbaa !24
  %8 = getelementptr inbounds i8, ptr %0, i64 184
  %9 = load ptr, ptr %8, align 8, !tbaa !25
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !26
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %12 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.prol
  %13 = load double, ptr %12, align 8, !tbaa !27
  %14 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.prol
  %15 = load double, ptr %14, align 8, !tbaa !27
  %16 = fsub double %13, %15
  %17 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.prol
  store double %16, ptr %17, align 8, !tbaa !27
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.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 %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !28

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %18 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %19 = icmp ugt i64 %18, -4
  br i1 %19, label %.loopexit, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %20 = ptrtoint ptr %11 to i64
  %21 = ptrtoint ptr %9 to i64
  %22 = ptrtoint ptr %7 to i64
  %23 = sub i64 %20, %22
  %diff.check = icmp ult i64 %23, 32
  %24 = sub i64 %20, %21
  %diff.check59 = icmp ult i64 %24, 32
  %conflict.rdx = or i1 %diff.check, %diff.check59
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %25 = getelementptr inbounds double, ptr %7, i64 %index
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load = load <2 x double>, ptr %25, align 8, !tbaa !27
  %wide.load60 = load <2 x double>, ptr %26, align 8, !tbaa !27
  %27 = getelementptr inbounds double, ptr %9, i64 %index
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %wide.load61 = load <2 x double>, ptr %27, align 8, !tbaa !27
  %wide.load62 = load <2 x double>, ptr %28, align 8, !tbaa !27
  %29 = fsub <2 x double> %wide.load, %wide.load61
  %30 = fsub <2 x double> %wide.load60, %wide.load62
  %31 = getelementptr inbounds double, ptr %11, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <2 x double> %29, ptr %31, align 8, !tbaa !27
  store <2 x double> %30, ptr %32, align 8, !tbaa !27
  %index.next = add nuw i64 %index, 4
  %33 = icmp eq i64 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !30

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

.preheader:                                       ; preds = %1
  %34 = icmp sgt i32 %2, 0
  br i1 %34, label %.lr.ph36, label %.preheader.._crit_edge_crit_edge

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 24
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !26
  br label %._crit_edge

.lr.ph36:                                         ; preds = %.preheader
  %35 = getelementptr inbounds i8, ptr %0, i64 192
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = load ptr, ptr %37, align 8, !tbaa !26
  %wide.trip.count53 = zext nneg i32 %2 to i64
  %min.iters.check111 = icmp ult i32 %2, 6
  %39 = ptrtoint ptr %38 to i64
  %40 = ptrtoint ptr %36 to i64
  %41 = sub i64 %39, %40
  %diff.check108 = icmp ult i64 %41, 32
  %or.cond = select i1 %min.iters.check111, i1 true, i1 %diff.check108
  br i1 %or.cond, label %scalar.ph110.preheader, label %vector.ph112

scalar.ph110.preheader:                           ; preds = %middle.block109, %.lr.ph36
  %indvars.iv50.ph = phi i64 [ 0, %.lr.ph36 ], [ %n.vec114, %middle.block109 ]
  %xtraiter135 = and i64 %wide.trip.count53, 3
  %lcmp.mod136.not = icmp eq i64 %xtraiter135, 0
  br i1 %lcmp.mod136.not, label %scalar.ph110.prol.loopexit, label %scalar.ph110.prol

scalar.ph110.prol:                                ; preds = %scalar.ph110.preheader, %scalar.ph110.prol
  %indvars.iv50.prol = phi i64 [ %indvars.iv.next51.prol, %scalar.ph110.prol ], [ %indvars.iv50.ph, %scalar.ph110.preheader ]
  %prol.iter137 = phi i64 [ %prol.iter137.next, %scalar.ph110.prol ], [ 0, %scalar.ph110.preheader ]
  %42 = getelementptr inbounds double, ptr %36, i64 %indvars.iv50.prol
  %43 = load double, ptr %42, align 8, !tbaa !27
  %44 = getelementptr inbounds double, ptr %38, i64 %indvars.iv50.prol
  store double %43, ptr %44, align 8, !tbaa !27
  %indvars.iv.next51.prol = add nuw nsw i64 %indvars.iv50.prol, 1
  %prol.iter137.next = add i64 %prol.iter137, 1
  %prol.iter137.cmp.not = icmp eq i64 %prol.iter137.next, %xtraiter135
  br i1 %prol.iter137.cmp.not, label %scalar.ph110.prol.loopexit, label %scalar.ph110.prol, !llvm.loop !34

scalar.ph110.prol.loopexit:                       ; preds = %scalar.ph110.prol, %scalar.ph110.preheader
  %indvars.iv50.unr = phi i64 [ %indvars.iv50.ph, %scalar.ph110.preheader ], [ %indvars.iv.next51.prol, %scalar.ph110.prol ]
  %45 = sub nsw i64 %indvars.iv50.ph, %wide.trip.count53
  %46 = icmp ugt i64 %45, -4
  br i1 %46, label %._crit_edge, label %scalar.ph110

vector.ph112:                                     ; preds = %.lr.ph36
  %n.vec114 = and i64 %wide.trip.count53, 2147483644
  br label %vector.body116

vector.body116:                                   ; preds = %vector.body116, %vector.ph112
  %index117 = phi i64 [ 0, %vector.ph112 ], [ %index.next120, %vector.body116 ]
  %47 = getelementptr inbounds double, ptr %36, i64 %index117
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %wide.load118 = load <2 x double>, ptr %47, align 8, !tbaa !27
  %wide.load119 = load <2 x double>, ptr %48, align 8, !tbaa !27
  %49 = getelementptr inbounds double, ptr %38, i64 %index117
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  store <2 x double> %wide.load118, ptr %49, align 8, !tbaa !27
  store <2 x double> %wide.load119, ptr %50, align 8, !tbaa !27
  %index.next120 = add nuw i64 %index117, 4
  %51 = icmp eq i64 %index.next120, %n.vec114
  br i1 %51, label %middle.block109, label %vector.body116, !llvm.loop !35

middle.block109:                                  ; preds = %vector.body116
  %cmp.n121 = icmp eq i64 %n.vec114, %wide.trip.count53
  br i1 %cmp.n121, label %._crit_edge, label %scalar.ph110.preheader

52:                                               ; preds = %1
  %53 = tail call noundef i32 @_ZNK7qpOASES9QProblemB19usingRegularisationEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %54 = icmp eq i32 %53, 0
  %55 = icmp sgt i32 %2, 0
  br i1 %54, label %.preheader25, label %.preheader26

.preheader26:                                     ; preds = %52
  br i1 %55, label %.lr.ph32, label %.loopexit

.lr.ph32:                                         ; preds = %.preheader26
  %56 = getelementptr inbounds i8, ptr %0, i64 192
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  %58 = getelementptr inbounds i8, ptr %0, i64 224
  %59 = getelementptr inbounds i8, ptr %0, i64 184
  %60 = load ptr, ptr %59, align 8, !tbaa !25
  %61 = getelementptr inbounds i8, ptr %0, i64 24
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  %wide.trip.count43 = zext nneg i32 %2 to i64
  %min.iters.check77 = icmp ult i32 %2, 12
  br i1 %min.iters.check77, label %scalar.ph76.preheader, label %vector.memcheck63

scalar.ph76.preheader:                            ; preds = %middle.block75, %vector.memcheck63, %.lr.ph32
  %indvars.iv40.ph = phi i64 [ 0, %vector.memcheck63 ], [ 0, %.lr.ph32 ], [ %n.vec80, %middle.block75 ]
  %xtraiter129 = and i64 %wide.trip.count43, 1
  %lcmp.mod130.not = icmp eq i64 %xtraiter129, 0
  br i1 %lcmp.mod130.not, label %scalar.ph76.prol.loopexit, label %scalar.ph76.prol

scalar.ph76.prol:                                 ; preds = %scalar.ph76.preheader
  %63 = getelementptr inbounds double, ptr %57, i64 %indvars.iv40.ph
  %64 = load double, ptr %63, align 8, !tbaa !27
  %65 = load double, ptr %58, align 8, !tbaa !36
  %66 = getelementptr inbounds double, ptr %60, i64 %indvars.iv40.ph
  %67 = load double, ptr %66, align 8, !tbaa !27
  %68 = fneg double %65
  %69 = tail call double @llvm.fmuladd.f64(double %68, double %67, double %64)
  %70 = getelementptr inbounds double, ptr %62, i64 %indvars.iv40.ph
  store double %69, ptr %70, align 8, !tbaa !27
  %indvars.iv.next41.prol = or disjoint i64 %indvars.iv40.ph, 1
  br label %scalar.ph76.prol.loopexit

scalar.ph76.prol.loopexit:                        ; preds = %scalar.ph76.prol, %scalar.ph76.preheader
  %indvars.iv40.unr = phi i64 [ %indvars.iv40.ph, %scalar.ph76.preheader ], [ %indvars.iv.next41.prol, %scalar.ph76.prol ]
  %71 = add nsw i64 %wide.trip.count43, -1
  %72 = icmp eq i64 %indvars.iv40.ph, %71
  br i1 %72, label %.loopexit, label %scalar.ph76

vector.memcheck63:                                ; preds = %.lr.ph32
  %73 = shl nuw nsw i64 %wide.trip.count43, 3
  %scevgep = getelementptr i8, ptr %62, i64 %73
  %scevgep64 = getelementptr i8, ptr %57, i64 %73
  %scevgep65 = getelementptr inbounds i8, ptr %0, i64 232
  %scevgep66 = getelementptr i8, ptr %60, i64 %73
  %bound0 = icmp ult ptr %62, %scevgep64
  %bound1 = icmp ult ptr %57, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound067 = icmp ult ptr %62, %scevgep65
  %bound168 = icmp ult ptr %58, %scevgep
  %found.conflict69 = and i1 %bound067, %bound168
  %conflict.rdx70 = or i1 %found.conflict, %found.conflict69
  %bound071 = icmp ult ptr %62, %scevgep66
  %bound172 = icmp ult ptr %60, %scevgep
  %found.conflict73 = and i1 %bound071, %bound172
  %conflict.rdx74 = or i1 %conflict.rdx70, %found.conflict73
  br i1 %conflict.rdx74, label %scalar.ph76.preheader, label %vector.ph78

vector.ph78:                                      ; preds = %vector.memcheck63
  %n.vec80 = and i64 %wide.trip.count43, 2147483644
  br label %vector.body82

vector.body82:                                    ; preds = %vector.body82, %vector.ph78
  %index83 = phi i64 [ 0, %vector.ph78 ], [ %index.next90, %vector.body82 ]
  %74 = getelementptr inbounds double, ptr %57, i64 %index83
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load84 = load <2 x double>, ptr %74, align 8, !tbaa !27, !alias.scope !37
  %wide.load85 = load <2 x double>, ptr %75, align 8, !tbaa !27, !alias.scope !37
  %76 = load <2 x double>, ptr %58, align 8
  %broadcast.splat89 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
  %77 = getelementptr inbounds double, ptr %60, i64 %index83
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %wide.load86 = load <2 x double>, ptr %77, align 8, !tbaa !27, !alias.scope !40
  %wide.load87 = load <2 x double>, ptr %78, align 8, !tbaa !27, !alias.scope !40
  %79 = fneg <2 x double> %broadcast.splat89
  %80 = fneg <2 x double> %broadcast.splat89
  %81 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %79, <2 x double> %wide.load86, <2 x double> %wide.load84)
  %82 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %80, <2 x double> %wide.load87, <2 x double> %wide.load85)
  %83 = getelementptr inbounds double, ptr %62, i64 %index83
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  store <2 x double> %81, ptr %83, align 8, !tbaa !27, !alias.scope !42, !noalias !44
  store <2 x double> %82, ptr %84, align 8, !tbaa !27, !alias.scope !42, !noalias !44
  %index.next90 = add nuw i64 %index83, 4
  %85 = icmp eq i64 %index.next90, %n.vec80
  br i1 %85, label %middle.block75, label %vector.body82, !llvm.loop !46

middle.block75:                                   ; preds = %vector.body82
  %cmp.n91 = icmp eq i64 %n.vec80, %wide.trip.count43
  br i1 %cmp.n91, label %.loopexit, label %scalar.ph76.preheader

.preheader25:                                     ; preds = %52
  br i1 %55, label %.lr.ph34, label %.loopexit

.lr.ph34:                                         ; preds = %.preheader25
  %86 = getelementptr inbounds i8, ptr %0, i64 192
  %87 = load ptr, ptr %86, align 8, !tbaa !24
  %88 = getelementptr inbounds i8, ptr %0, i64 24
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %wide.trip.count48 = zext nneg i32 %2 to i64
  %min.iters.check96 = icmp ult i32 %2, 6
  %90 = ptrtoint ptr %89 to i64
  %91 = ptrtoint ptr %87 to i64
  %92 = sub i64 %90, %91
  %diff.check93 = icmp ult i64 %92, 32
  %or.cond126 = select i1 %min.iters.check96, i1 true, i1 %diff.check93
  br i1 %or.cond126, label %scalar.ph95.preheader, label %vector.ph97

vector.ph97:                                      ; preds = %.lr.ph34
  %n.vec99 = and i64 %wide.trip.count48, 2147483644
  br label %vector.body101

vector.body101:                                   ; preds = %vector.body101, %vector.ph97
  %index102 = phi i64 [ 0, %vector.ph97 ], [ %index.next105, %vector.body101 ]
  %93 = getelementptr inbounds double, ptr %87, i64 %index102
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %wide.load103 = load <2 x double>, ptr %93, align 8, !tbaa !27
  %wide.load104 = load <2 x double>, ptr %94, align 8, !tbaa !27
  %95 = getelementptr inbounds double, ptr %89, i64 %index102
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  store <2 x double> %wide.load103, ptr %95, align 8, !tbaa !27
  store <2 x double> %wide.load104, ptr %96, align 8, !tbaa !27
  %index.next105 = add nuw i64 %index102, 4
  %97 = icmp eq i64 %index.next105, %n.vec99
  br i1 %97, label %middle.block94, label %vector.body101, !llvm.loop !47

middle.block94:                                   ; preds = %vector.body101
  %cmp.n106 = icmp eq i64 %n.vec99, %wide.trip.count48
  br i1 %cmp.n106, label %.loopexit, label %scalar.ph95.preheader

scalar.ph95.preheader:                            ; preds = %middle.block94, %.lr.ph34
  %indvars.iv45.ph = phi i64 [ 0, %.lr.ph34 ], [ %n.vec99, %middle.block94 ]
  %xtraiter132 = and i64 %wide.trip.count48, 3
  %lcmp.mod133.not = icmp eq i64 %xtraiter132, 0
  br i1 %lcmp.mod133.not, label %scalar.ph95.prol.loopexit, label %scalar.ph95.prol

scalar.ph95.prol:                                 ; preds = %scalar.ph95.preheader, %scalar.ph95.prol
  %indvars.iv45.prol = phi i64 [ %indvars.iv.next46.prol, %scalar.ph95.prol ], [ %indvars.iv45.ph, %scalar.ph95.preheader ]
  %prol.iter134 = phi i64 [ %prol.iter134.next, %scalar.ph95.prol ], [ 0, %scalar.ph95.preheader ]
  %98 = getelementptr inbounds double, ptr %87, i64 %indvars.iv45.prol
  %99 = load double, ptr %98, align 8, !tbaa !27
  %100 = getelementptr inbounds double, ptr %89, i64 %indvars.iv45.prol
  store double %99, ptr %100, align 8, !tbaa !27
  %indvars.iv.next46.prol = add nuw nsw i64 %indvars.iv45.prol, 1
  %prol.iter134.next = add i64 %prol.iter134, 1
  %prol.iter134.cmp.not = icmp eq i64 %prol.iter134.next, %xtraiter132
  br i1 %prol.iter134.cmp.not, label %scalar.ph95.prol.loopexit, label %scalar.ph95.prol, !llvm.loop !48

scalar.ph95.prol.loopexit:                        ; preds = %scalar.ph95.prol, %scalar.ph95.preheader
  %indvars.iv45.unr = phi i64 [ %indvars.iv45.ph, %scalar.ph95.preheader ], [ %indvars.iv.next46.prol, %scalar.ph95.prol ]
  %101 = sub nsw i64 %indvars.iv45.ph, %wide.trip.count48
  %102 = icmp ugt i64 %101, -4
  br i1 %102, label %.loopexit, label %scalar.ph95

scalar.ph95:                                      ; preds = %scalar.ph95.prol.loopexit, %scalar.ph95
  %indvars.iv45 = phi i64 [ %indvars.iv.next46.3, %scalar.ph95 ], [ %indvars.iv45.unr, %scalar.ph95.prol.loopexit ]
  %103 = getelementptr inbounds double, ptr %87, i64 %indvars.iv45
  %104 = load double, ptr %103, align 8, !tbaa !27
  %105 = getelementptr inbounds double, ptr %89, i64 %indvars.iv45
  store double %104, ptr %105, align 8, !tbaa !27
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %106 = getelementptr inbounds double, ptr %87, i64 %indvars.iv.next46
  %107 = load double, ptr %106, align 8, !tbaa !27
  %108 = getelementptr inbounds double, ptr %89, i64 %indvars.iv.next46
  store double %107, ptr %108, align 8, !tbaa !27
  %indvars.iv.next46.1 = add nuw nsw i64 %indvars.iv45, 2
  %109 = getelementptr inbounds double, ptr %87, i64 %indvars.iv.next46.1
  %110 = load double, ptr %109, align 8, !tbaa !27
  %111 = getelementptr inbounds double, ptr %89, i64 %indvars.iv.next46.1
  store double %110, ptr %111, align 8, !tbaa !27
  %indvars.iv.next46.2 = add nuw nsw i64 %indvars.iv45, 3
  %112 = getelementptr inbounds double, ptr %87, i64 %indvars.iv.next46.2
  %113 = load double, ptr %112, align 8, !tbaa !27
  %114 = getelementptr inbounds double, ptr %89, i64 %indvars.iv.next46.2
  store double %113, ptr %114, align 8, !tbaa !27
  %indvars.iv.next46.3 = add nuw nsw i64 %indvars.iv45, 4
  %exitcond49.not.3 = icmp eq i64 %indvars.iv.next46.3, %wide.trip.count48
  br i1 %exitcond49.not.3, label %.loopexit, label %scalar.ph95, !llvm.loop !49

scalar.ph76:                                      ; preds = %scalar.ph76.prol.loopexit, %scalar.ph76
  %indvars.iv40 = phi i64 [ %indvars.iv.next41.1, %scalar.ph76 ], [ %indvars.iv40.unr, %scalar.ph76.prol.loopexit ]
  %115 = getelementptr inbounds double, ptr %57, i64 %indvars.iv40
  %116 = load double, ptr %115, align 8, !tbaa !27
  %117 = load double, ptr %58, align 8, !tbaa !36
  %118 = getelementptr inbounds double, ptr %60, i64 %indvars.iv40
  %119 = load double, ptr %118, align 8, !tbaa !27
  %120 = fneg double %117
  %121 = tail call double @llvm.fmuladd.f64(double %120, double %119, double %116)
  %122 = getelementptr inbounds double, ptr %62, i64 %indvars.iv40
  store double %121, ptr %122, align 8, !tbaa !27
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %123 = getelementptr inbounds double, ptr %57, i64 %indvars.iv.next41
  %124 = load double, ptr %123, align 8, !tbaa !27
  %125 = load double, ptr %58, align 8, !tbaa !36
  %126 = getelementptr inbounds double, ptr %60, i64 %indvars.iv.next41
  %127 = load double, ptr %126, align 8, !tbaa !27
  %128 = fneg double %125
  %129 = tail call double @llvm.fmuladd.f64(double %128, double %127, double %124)
  %130 = getelementptr inbounds double, ptr %62, i64 %indvars.iv.next41
  store double %129, ptr %130, align 8, !tbaa !27
  %indvars.iv.next41.1 = add nuw nsw i64 %indvars.iv40, 2
  %exitcond44.not.1 = icmp eq i64 %indvars.iv.next41.1, %wide.trip.count43
  br i1 %exitcond44.not.1, label %.loopexit, label %scalar.ph76, !llvm.loop !50

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %131 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  %132 = load double, ptr %131, align 8, !tbaa !27
  %133 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %134 = load double, ptr %133, align 8, !tbaa !27
  %135 = fsub double %132, %134
  %136 = getelementptr inbounds double, ptr %11, i64 %indvars.iv
  store double %135, ptr %136, align 8, !tbaa !27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %137 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next
  %138 = load double, ptr %137, align 8, !tbaa !27
  %139 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next
  %140 = load double, ptr %139, align 8, !tbaa !27
  %141 = fsub double %138, %140
  %142 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next
  store double %141, ptr %142, align 8, !tbaa !27
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %143 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next.1
  %144 = load double, ptr %143, align 8, !tbaa !27
  %145 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next.1
  %146 = load double, ptr %145, align 8, !tbaa !27
  %147 = fsub double %144, %146
  %148 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next.1
  store double %147, ptr %148, align 8, !tbaa !27
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %149 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next.2
  %150 = load double, ptr %149, align 8, !tbaa !27
  %151 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next.2
  %152 = load double, ptr %151, align 8, !tbaa !27
  %153 = fsub double %150, %152
  %154 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next.2
  store double %153, ptr %154, align 8, !tbaa !27
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.loopexit, label %scalar.ph, !llvm.loop !51

scalar.ph110:                                     ; preds = %scalar.ph110.prol.loopexit, %scalar.ph110
  %indvars.iv50 = phi i64 [ %indvars.iv.next51.3, %scalar.ph110 ], [ %indvars.iv50.unr, %scalar.ph110.prol.loopexit ]
  %155 = getelementptr inbounds double, ptr %36, i64 %indvars.iv50
  %156 = load double, ptr %155, align 8, !tbaa !27
  %157 = getelementptr inbounds double, ptr %38, i64 %indvars.iv50
  store double %156, ptr %157, align 8, !tbaa !27
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %158 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next51
  %159 = load double, ptr %158, align 8, !tbaa !27
  %160 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next51
  store double %159, ptr %160, align 8, !tbaa !27
  %indvars.iv.next51.1 = add nuw nsw i64 %indvars.iv50, 2
  %161 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next51.1
  %162 = load double, ptr %161, align 8, !tbaa !27
  %163 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next51.1
  store double %162, ptr %163, align 8, !tbaa !27
  %indvars.iv.next51.2 = add nuw nsw i64 %indvars.iv50, 3
  %164 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next51.2
  %165 = load double, ptr %164, align 8, !tbaa !27
  %166 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next51.2
  store double %165, ptr %166, align 8, !tbaa !27
  %indvars.iv.next51.3 = add nuw nsw i64 %indvars.iv50, 4
  %exitcond54.not.3 = icmp eq i64 %indvars.iv.next51.3, %wide.trip.count53
  br i1 %exitcond54.not.3, label %._crit_edge, label %scalar.ph110, !llvm.loop !52

._crit_edge:                                      ; preds = %scalar.ph110.prol.loopexit, %scalar.ph110, %middle.block109, %.preheader.._crit_edge_crit_edge
  %167 = phi ptr [ %.pre, %.preheader.._crit_edge_crit_edge ], [ %38, %middle.block109 ], [ %38, %scalar.ph110 ], [ %38, %scalar.ph110.prol.loopexit ]
  %168 = getelementptr inbounds i8, ptr %0, i64 16
  %169 = load ptr, ptr %168, align 8, !tbaa !53
  %170 = load ptr, ptr %169, align 8, !tbaa !54
  %171 = getelementptr i8, ptr %170, i64 -24
  %172 = load i64, ptr %171, align 8
  %173 = getelementptr inbounds i8, ptr %169, i64 %172
  %174 = getelementptr inbounds i8, ptr %0, i64 184
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = load ptr, ptr %173, align 8, !tbaa !54
  %177 = getelementptr inbounds i8, ptr %176, i64 120
  %178 = load ptr, ptr %177, align 8
  %179 = tail call noundef i32 %178(ptr noundef nonnull align 8 dereferenceable(12) %173, i32 noundef 1, double noundef -1.000000e+00, ptr noundef %175, i32 noundef %2, double noundef 1.000000e+00, ptr noundef %167, i32 noundef %2)
  br label %.loopexit

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %scalar.ph76.prol.loopexit, %scalar.ph76, %scalar.ph95.prol.loopexit, %scalar.ph95, %middle.block, %middle.block75, %middle.block94, %.preheader28, %.preheader26, %.preheader25, %._crit_edge
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !17, i64 220}
!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 = !{!6, !10, i64 192}
!25 = !{!6, !10, i64 184}
!26 = !{!6, !10, i64 24}
!27 = !{!15, !15, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !31, !32, !33}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!"llvm.loop.isvectorized", i32 1}
!33 = !{!"llvm.loop.unroll.runtime.disable"}
!34 = distinct !{!34, !29}
!35 = distinct !{!35, !31, !32, !33}
!36 = !{!6, !15, i64 224}
!37 = !{!38}
!38 = distinct !{!38, !39}
!39 = distinct !{!39, !"LVerDomain"}
!40 = !{!41}
!41 = distinct !{!41, !39}
!42 = !{!43}
!43 = distinct !{!43, !39}
!44 = !{!38, !45, !41}
!45 = distinct !{!45, !39}
!46 = distinct !{!46, !31, !32, !33}
!47 = distinct !{!47, !31, !32, !33}
!48 = distinct !{!48, !29}
!49 = distinct !{!49, !31, !32}
!50 = distinct !{!50, !31, !32}
!51 = distinct !{!51, !31, !32}
!52 = distinct !{!52, !31, !32}
!53 = !{!6, !10, i64 16}
!54 = !{!55, !55, i64 0}
!55 = !{!"vtable pointer", !9, i64 0}


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