; 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 }
%"class.qpOASES::QProblem" = type { %"class.qpOASES::QProblemB", i32, ptr, ptr, ptr, %"class.qpOASES::Constraints", ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; 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 @_ZNK7qpOASES9QProblemB6getNFREv(ptr noundef nonnull align 8 dereferenceable(800)) #1 align 2

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

declare noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem20setupTQfactorisationEv(ptr noundef nonnull align 8 dereferenceable(1064) %0) unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %9 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %8)
  store i32 %9, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %10 = call noundef i32 @_ZNK7qpOASES9QProblemB6getNFREv(ptr noundef nonnull align 8 dereferenceable(800) %8)
  store i32 %10, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %11 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %8, i32 0, i32 6
  %12 = call noundef ptr @_ZN7qpOASES6Bounds7getFreeEv(ptr noundef nonnull align 8 dereferenceable(120) %11)
  %13 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef %7)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %26, %1
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = mul nsw i32 %16, %17
  %19 = icmp slt i32 %15, %18
  br i1 %19, label %20, label %29

20:                                               ; preds = %14
  %21 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %8, i32 0, i32 7
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %22, i64 %24
  store double 0.000000e+00, ptr %25, align 8, !tbaa !27
  br label %26

26:                                               ; preds = %20
  %27 = load i32, ptr %3, align 4, !tbaa !9
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %3, align 4, !tbaa !9
  br label %14, !llvm.loop !28

29:                                               ; preds = %14
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %49, %29
  %31 = load i32, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %52

34:                                               ; preds = %30
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %39, ptr %4, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %8, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = mul nsw i32 %43, %44
  %46 = add nsw i32 %42, %45
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %41, i64 %47
  store double 1.000000e+00, ptr %48, align 8, !tbaa !27
  br label %49

49:                                               ; preds = %34
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %3, align 4, !tbaa !9
  br label %30, !llvm.loop !30

52:                                               ; preds = %30
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %67, %52
  %54 = load i32, ptr %3, align 4, !tbaa !9
  %55 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %8, i32 0, i32 8
  %56 = load i32, ptr %55, align 8, !tbaa !31
  %57 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %8, i32 0, i32 8
  %58 = load i32, ptr %57, align 8, !tbaa !31
  %59 = mul nsw i32 %56, %58
  %60 = icmp slt i32 %54, %59
  br i1 %60, label %61, label %70

61:                                               ; preds = %53
  %62 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %8, i32 0, i32 6
  %63 = load ptr, ptr %62, align 8, !tbaa !32
  %64 = load i32, ptr %3, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %63, i64 %65
  store double 0.000000e+00, ptr %66, align 8, !tbaa !27
  br label %67

67:                                               ; preds = %61
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %3, align 4, !tbaa !9
  br label %53, !llvm.loop !33

70:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  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 = { 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 = { "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, !6, i64 960}
!12 = !{!"_ZTSN7qpOASES8QProblemE", !13, i64 0, !14, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !25, i64 832, !6, i64 952, !6, i64 960, !10, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056}
!13 = !{!"_ZTSN7qpOASES9QProblemBE", !14, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !6, i64 168, !14, i64 176, !6, i64 184, !6, i64 192, !18, i64 200, !19, i64 208, !14, i64 212, !14, i64 216, !20, i64 220, !18, i64 224, !10, i64 232, !6, i64 240, !18, i64 248, !18, i64 256, !10, i64 264, !21, i64 272, !24, i64 496, !26, i64 768}
!14 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!15 = !{!"_ZTSN7qpOASES6BoundsE", !16, i64 0, !17, i64 40, !17, i64 80}
!16 = !{!"_ZTSN7qpOASES9SubjectToE", !10, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36}
!17 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!20 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!21 = !{!"_ZTSN7qpOASES7OptionsE", !22, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !10, i64 28, !10, i64 32, !14, i64 36, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112, !18, i64 120, !23, i64 128, !18, i64 136, !10, i64 144, !18, i64 152, !10, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !14, i64 200, !14, i64 204, !10, i64 208, !10, i64 212, !10, i64 216}
!22 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!23 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!24 = !{!"_ZTSN7qpOASES7FlipperE", !10, i64 0, !10, i64 4, !15, i64 8, !25, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!25 = !{!"_ZTSN7qpOASES11ConstraintsE", !16, i64 0, !17, i64 40, !17, i64 80}
!26 = !{!"_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}
!27 = !{!18, !18, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!12, !10, i64 968}
!32 = !{!12, !6, i64 952}
!33 = distinct !{!33, !29}


; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress 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)) local_unnamed_addr #1 align 2

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

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

declare noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem20setupTQfactorisationEv(ptr noundef nonnull align 8 dereferenceable(1064) %0) unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %4 = tail call noundef i32 @_ZNK7qpOASES9QProblemB6getNFREv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = tail call noundef ptr @_ZN7qpOASES6Bounds7getFreeEv(ptr noundef nonnull align 8 dereferenceable(120) %5)
  %7 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef nonnull %2)
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %.preheader15, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %8 = mul i32 %3, %3
  %9 = getelementptr inbounds i8, ptr %0, i64 960
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = call i32 @llvm.umax.i32(i32 %8, i32 1)
  %umax = zext i32 %11 to i64
  %12 = shl nuw nsw i64 %umax, 3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %10, i8 0, i64 %12, i1 false), !tbaa !25
  br label %.preheader15

.preheader15:                                     ; preds = %.lr.ph, %1
  %13 = icmp sgt i32 %4, 0
  br i1 %13, label %.lr.ph18, label %.preheader

.lr.ph18:                                         ; preds = %.preheader15
  %14 = load ptr, ptr %2, align 8, !tbaa !26
  %15 = getelementptr inbounds i8, ptr %0, i64 960
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = sext i32 %3 to i64
  %wide.trip.count = zext nneg i32 %4 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %18 = icmp ult i32 %4, 4
  br i1 %18, label %.preheader.loopexit.unr-lcssa, label %.lr.ph18.new

.lr.ph18.new:                                     ; preds = %.lr.ph18
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %32

.preheader.loopexit.unr-lcssa:                    ; preds = %32, %.lr.ph18
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph18 ], [ %indvars.iv.next.3, %32 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %19 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.epil
  %20 = load i32, ptr %19, align 4, !tbaa !27
  %21 = mul nsw i64 %indvars.iv.epil, %17
  %22 = sext i32 %20 to i64
  %23 = getelementptr double, ptr %16, i64 %21
  %24 = getelementptr double, ptr %23, i64 %22
  store double 1.000000e+00, ptr %24, align 8, !tbaa !25
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !28

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader, %.preheader15
  %25 = getelementptr inbounds i8, ptr %0, i64 968
  %26 = load i32, ptr %25, align 8, !tbaa !30
  %.not21 = icmp eq i32 %26, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph20

.lr.ph20:                                         ; preds = %.preheader
  %27 = mul i32 %26, %26
  %28 = getelementptr inbounds i8, ptr %0, i64 952
  %29 = load ptr, ptr %28, align 8, !tbaa !31
  %30 = call i32 @llvm.umax.i32(i32 %27, i32 1)
  %umax24 = zext i32 %30 to i64
  %31 = shl nuw nsw i64 %umax24, 3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %29, i8 0, i64 %31, i1 false), !tbaa !25
  br label %._crit_edge

32:                                               ; preds = %32, %.lr.ph18.new
  %indvars.iv = phi i64 [ 0, %.lr.ph18.new ], [ %indvars.iv.next.3, %32 ]
  %niter = phi i64 [ 0, %.lr.ph18.new ], [ %niter.next.3, %32 ]
  %33 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv
  %34 = load i32, ptr %33, align 4, !tbaa !27
  %35 = mul nsw i64 %indvars.iv, %17
  %36 = sext i32 %34 to i64
  %37 = getelementptr double, ptr %16, i64 %35
  %38 = getelementptr double, ptr %37, i64 %36
  store double 1.000000e+00, ptr %38, align 8, !tbaa !25
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %39 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next
  %40 = load i32, ptr %39, align 4, !tbaa !27
  %41 = mul nsw i64 %indvars.iv.next, %17
  %42 = sext i32 %40 to i64
  %43 = getelementptr double, ptr %16, i64 %41
  %44 = getelementptr double, ptr %43, i64 %42
  store double 1.000000e+00, ptr %44, align 8, !tbaa !25
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %45 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next.1
  %46 = load i32, ptr %45, align 4, !tbaa !27
  %47 = mul nsw i64 %indvars.iv.next.1, %17
  %48 = sext i32 %46 to i64
  %49 = getelementptr double, ptr %16, i64 %47
  %50 = getelementptr double, ptr %49, i64 %48
  store double 1.000000e+00, ptr %50, align 8, !tbaa !25
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %51 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next.2
  %52 = load i32, ptr %51, align 4, !tbaa !27
  %53 = mul nsw i64 %indvars.iv.next.2, %17
  %54 = sext i32 %52 to i64
  %55 = getelementptr double, ptr %16, i64 %53
  %56 = getelementptr double, ptr %55, i64 %54
  store double 1.000000e+00, ptr %56, align 8, !tbaa !25
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %32, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph20, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret i32 0
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #6

attributes #0 = { mustprogress 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 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !11, i64 960}
!6 = !{!"_ZTSN7qpOASES8QProblemE", !7, i64 0, !8, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !23, i64 832, !11, i64 952, !11, i64 960, !14, i64 968, !11, i64 976, !11, i64 984, !11, i64 992, !11, i64 1000, !11, i64 1008, !11, i64 1016, !11, i64 1024, !11, i64 1032, !11, i64 1040, !11, i64 1048, !11, i64 1056}
!7 = !{!"_ZTSN7qpOASES9QProblemBE", !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !11, i64 168, !8, i64 176, !11, i64 184, !11, i64 192, !16, i64 200, !17, i64 208, !8, i64 212, !8, i64 216, !18, i64 220, !16, i64 224, !14, i64 232, !11, i64 240, !16, i64 248, !16, i64 256, !14, i64 264, !19, i64 272, !22, i64 496, !24, i64 768}
!8 = !{!"_ZTSN7qpOASES11BooleanTypeE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSN7qpOASES6BoundsE", !13, i64 0, !15, i64 40, !15, i64 80}
!13 = !{!"_ZTSN7qpOASES9SubjectToE", !14, i64 8, !11, i64 16, !11, i64 24, !8, i64 32, !8, i64 36}
!14 = !{!"int", !9, i64 0}
!15 = !{!"_ZTSN7qpOASES9IndexlistE", !11, i64 0, !11, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN7qpOASES14QProblemStatusE", !9, i64 0}
!18 = !{!"_ZTSN7qpOASES11HessianTypeE", !9, i64 0}
!19 = !{!"_ZTSN7qpOASES7OptionsE", !20, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !14, i64 28, !14, i64 32, !8, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !21, i64 128, !16, i64 136, !14, i64 144, !16, i64 152, !14, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !8, i64 200, !8, i64 204, !14, i64 208, !14, i64 212, !14, i64 216}
!20 = !{!"_ZTSN7qpOASES10PrintLevelE", !9, i64 0}
!21 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !9, i64 0}
!22 = !{!"_ZTSN7qpOASES7FlipperE", !14, i64 0, !14, i64 4, !12, i64 8, !23, i64 128, !11, i64 248, !11, i64 256, !11, i64 264}
!23 = !{!"_ZTSN7qpOASES11ConstraintsE", !13, i64 0, !15, i64 40, !15, i64 80}
!24 = !{!"_ZTSN7qpOASES13TabularOutputE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28}
!25 = !{!16, !16, i64 0}
!26 = !{!11, !11, i64 0}
!27 = !{!14, !14, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = !{!6, !14, i64 968}
!31 = !{!6, !11, i64 952}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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