; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7qpOASES6getAbsEd(double noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES9QProblemB18determineDataShiftEPKdS2_S2_PdS3_S3_RNS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef nonnull align 4 dereferenceable(4) %7) #4 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %22 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %23 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %22)
  store i32 %23, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %24 = call noundef i32 @_ZNK7qpOASES9QProblemB6getNFXEv(ptr noundef nonnull align 8 dereferenceable(800) %22)
  store i32 %24, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %25 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %22, i32 0, i32 6
  %26 = call noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120) %25)
  %27 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef %21)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %49, %8
  %29 = load i32, ptr %17, align 4, !tbaa !9
  %30 = load i32, ptr %19, align 4, !tbaa !9
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %32, label %52

32:                                               ; preds = %28
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load i32, ptr %17, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %22, i32 0, i32 3
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = load i32, ptr %17, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds double, ptr %39, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = fsub double %37, %43
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = load i32, ptr %17, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %45, i64 %47
  store double %44, ptr %48, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %32
  %50 = load i32, ptr %17, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %17, align 4, !tbaa !9
  br label %28, !llvm.loop !27

52:                                               ; preds = %28
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %81

55:                                               ; preds = %52
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %77, %55
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = load i32, ptr %19, align 4, !tbaa !9
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %80

60:                                               ; preds = %56
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i32, ptr %17, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %22, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = fsub double %65, %71
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = load i32, ptr %17, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %73, i64 %75
  store double %72, ptr %76, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %60
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %17, align 4, !tbaa !9
  br label %56, !llvm.loop !30

80:                                               ; preds = %56
  br label %102

81:                                               ; preds = %52
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %98, %81
  %83 = load i32, ptr %17, align 4, !tbaa !9
  %84 = load i32, ptr %19, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %101

86:                                               ; preds = %82
  %87 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %22, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !29
  %89 = load i32, ptr %17, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = fsub double -1.000000e+20, %92
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  store double %93, ptr %97, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %86
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %17, align 4, !tbaa !9
  br label %82, !llvm.loop !31

101:                                              ; preds = %82
  br label %102

102:                                              ; preds = %101, %80
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %131

105:                                              ; preds = %102
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %127, %105
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %19, align 4, !tbaa !9
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %110, label %130

110:                                              ; preds = %106
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %22, i32 0, i32 5
  %117 = load ptr, ptr %116, align 8, !tbaa !32
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fsub double %115, %121
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  store double %122, ptr %126, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %110
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %17, align 4, !tbaa !9
  br label %106, !llvm.loop !33

130:                                              ; preds = %106
  br label %152

131:                                              ; preds = %102
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %148, %131
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = load i32, ptr %19, align 4, !tbaa !9
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %136, label %151

136:                                              ; preds = %132
  %137 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %22, i32 0, i32 5
  %138 = load ptr, ptr %137, align 8, !tbaa !32
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !11
  %143 = fsub double 1.000000e+20, %142
  %144 = load ptr, ptr %15, align 8, !tbaa !5
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  store double %143, ptr %147, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %136
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %17, align 4, !tbaa !9
  br label %132, !llvm.loop !34

151:                                              ; preds = %132
  br label %152

152:                                              ; preds = %151, %130
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 1, ptr %153, align 4, !tbaa !35
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %182, %152
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %158, label %185

158:                                              ; preds = %154
  %159 = load ptr, ptr %21, align 8, !tbaa !5
  %160 = load i32, ptr %17, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %159, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !9
  store i32 %163, ptr %18, align 4, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %168)
  %170 = fcmp ogt double %169, 2.221000e-16
  br i1 %170, label %179, label %171

171:                                              ; preds = %158
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !11
  %177 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %176)
  %178 = fcmp ogt double %177, 2.221000e-16
  br i1 %178, label %179, label %181

179:                                              ; preds = %171, %158
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %180, align 4, !tbaa !35
  br label %185

181:                                              ; preds = %171
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %17, align 4, !tbaa !9
  br label %154, !llvm.loop !36

185:                                              ; preds = %179, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  ret i32 0
}

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

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

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


; 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 nounwind uwtable
declare dso_local noundef double @_ZN7qpOASES6getAbsEd(double noundef) local_unnamed_addr #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 @_ZN7qpOASES9QProblemB18determineDataShiftEPKdS2_S2_PdS3_S3_RNS_11BooleanTypeE(ptr noundef nonnull align 8 dereferenceable(800) %0, ptr nocapture noundef readonly %1, ptr noundef readonly %2, ptr noundef readonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef %5, ptr nocapture noundef %6, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %7) local_unnamed_addr #4 align 2 {
  %9 = ptrtoint ptr %6 to i64
  %10 = ptrtoint ptr %3 to i64
  %11 = ptrtoint ptr %6 to i64
  %12 = ptrtoint ptr %5 to i64
  %13 = ptrtoint ptr %2 to i64
  %14 = ptrtoint ptr %5 to i64
  %15 = ptrtoint ptr %1 to i64
  %16 = ptrtoint ptr %4 to i64
  %17 = alloca ptr, align 8
  %18 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %19 = tail call noundef i32 @_ZNK7qpOASES9QProblemB6getNFXEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = tail call noundef ptr @_ZN7qpOASES6Bounds8getFixedEv(ptr noundef nonnull align 8 dereferenceable(120) %20)
  %22 = call noundef i32 @_ZNK7qpOASES9Indexlist14getNumberArrayEPPi(ptr noundef nonnull align 8 dereferenceable(36) %21, ptr noundef nonnull %17)
  %23 = icmp sgt i32 %18, 0
  br i1 %23, label %.lr.ph, label %.loopexit56

.lr.ph:                                           ; preds = %8
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %wide.trip.count = zext nneg i32 %18 to i64
  %min.iters.check = icmp ult i32 %18, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %26 = ptrtoint ptr %25 to i64
  %27 = sub i64 %16, %15
  %diff.check = icmp ult i64 %27, 32
  %28 = sub i64 %16, %26
  %diff.check104 = icmp ult i64 %28, 32
  %conflict.rdx = or i1 %diff.check, %diff.check104
  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 ]
  %29 = getelementptr inbounds double, ptr %1, i64 %index
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load = load <2 x double>, ptr %29, align 8, !tbaa !24
  %wide.load105 = load <2 x double>, ptr %30, align 8, !tbaa !24
  %31 = getelementptr inbounds double, ptr %25, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load106 = load <2 x double>, ptr %31, align 8, !tbaa !24
  %wide.load107 = load <2 x double>, ptr %32, align 8, !tbaa !24
  %33 = fsub <2 x double> %wide.load, %wide.load106
  %34 = fsub <2 x double> %wide.load105, %wide.load107
  %35 = getelementptr inbounds double, ptr %4, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x double> %33, ptr %35, align 8, !tbaa !24
  store <2 x double> %34, ptr %36, align 8, !tbaa !24
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !25

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

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 ]
  %38 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.prol
  %39 = load double, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds double, ptr %25, i64 %indvars.iv.prol
  %41 = load double, ptr %40, align 8, !tbaa !24
  %42 = fsub double %39, %41
  %43 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.prol
  store double %42, ptr %43, align 8, !tbaa !24
  %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 !29

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 ]
  %44 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %45 = icmp ugt i64 %44, -4
  br i1 %45, label %._crit_edge, label %scalar.ph

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 ]
  %46 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %47 = load double, ptr %46, align 8, !tbaa !24
  %48 = getelementptr inbounds double, ptr %25, i64 %indvars.iv
  %49 = load double, ptr %48, align 8, !tbaa !24
  %50 = fsub double %47, %49
  %51 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %50, ptr %51, align 8, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %53 = load double, ptr %52, align 8, !tbaa !24
  %54 = getelementptr inbounds double, ptr %25, i64 %indvars.iv.next
  %55 = load double, ptr %54, align 8, !tbaa !24
  %56 = fsub double %53, %55
  %57 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  store double %56, ptr %57, align 8, !tbaa !24
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %58 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.1
  %59 = load double, ptr %58, align 8, !tbaa !24
  %60 = getelementptr inbounds double, ptr %25, i64 %indvars.iv.next.1
  %61 = load double, ptr %60, align 8, !tbaa !24
  %62 = fsub double %59, %61
  %63 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next.1
  store double %62, ptr %63, align 8, !tbaa !24
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %64 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.2
  %65 = load double, ptr %64, align 8, !tbaa !24
  %66 = getelementptr inbounds double, ptr %25, i64 %indvars.iv.next.2
  %67 = load double, ptr %66, align 8, !tbaa !24
  %68 = fsub double %65, %67
  %69 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next.2
  store double %68, ptr %69, align 8, !tbaa !24
  %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 %._crit_edge, label %scalar.ph, !llvm.loop !31

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %.preheader55, label %.preheader57

.preheader57:                                     ; preds = %._crit_edge
  br i1 %23, label %.lr.ph61, label %.loopexit56

.lr.ph61:                                         ; preds = %.preheader57
  %70 = getelementptr inbounds i8, ptr %0, i64 32
  %71 = load ptr, ptr %70, align 8, !tbaa !32
  %wide.trip.count77 = zext nneg i32 %18 to i64
  %min.iters.check114 = icmp ult i32 %18, 8
  br i1 %min.iters.check114, label %scalar.ph113.preheader, label %vector.memcheck108

scalar.ph113.preheader:                           ; preds = %middle.block112, %vector.memcheck108, %.lr.ph61
  %indvars.iv74.ph = phi i64 [ 0, %vector.memcheck108 ], [ 0, %.lr.ph61 ], [ %n.vec117, %middle.block112 ]
  %xtraiter181 = and i64 %wide.trip.count, 3
  %lcmp.mod182.not = icmp eq i64 %xtraiter181, 0
  br i1 %lcmp.mod182.not, label %scalar.ph113.prol.loopexit, label %scalar.ph113.prol

scalar.ph113.prol:                                ; preds = %scalar.ph113.preheader, %scalar.ph113.prol
  %indvars.iv74.prol = phi i64 [ %indvars.iv.next75.prol, %scalar.ph113.prol ], [ %indvars.iv74.ph, %scalar.ph113.preheader ]
  %prol.iter183 = phi i64 [ %prol.iter183.next, %scalar.ph113.prol ], [ 0, %scalar.ph113.preheader ]
  %72 = getelementptr inbounds double, ptr %2, i64 %indvars.iv74.prol
  %73 = load double, ptr %72, align 8, !tbaa !24
  %74 = getelementptr inbounds double, ptr %71, i64 %indvars.iv74.prol
  %75 = load double, ptr %74, align 8, !tbaa !24
  %76 = fsub double %73, %75
  %77 = getelementptr inbounds double, ptr %5, i64 %indvars.iv74.prol
  store double %76, ptr %77, align 8, !tbaa !24
  %indvars.iv.next75.prol = add nuw nsw i64 %indvars.iv74.prol, 1
  %prol.iter183.next = add i64 %prol.iter183, 1
  %prol.iter183.cmp.not = icmp eq i64 %prol.iter183.next, %xtraiter181
  br i1 %prol.iter183.cmp.not, label %scalar.ph113.prol.loopexit, label %scalar.ph113.prol, !llvm.loop !33

scalar.ph113.prol.loopexit:                       ; preds = %scalar.ph113.prol, %scalar.ph113.preheader
  %indvars.iv74.unr = phi i64 [ %indvars.iv74.ph, %scalar.ph113.preheader ], [ %indvars.iv.next75.prol, %scalar.ph113.prol ]
  %78 = sub nsw i64 %indvars.iv74.ph, %wide.trip.count
  %79 = icmp ugt i64 %78, -4
  br i1 %79, label %.loopexit56, label %scalar.ph113

vector.memcheck108:                               ; preds = %.lr.ph61
  %80 = ptrtoint ptr %71 to i64
  %81 = sub i64 %14, %13
  %diff.check109 = icmp ult i64 %81, 32
  %82 = sub i64 %14, %80
  %diff.check110 = icmp ult i64 %82, 32
  %conflict.rdx111 = or i1 %diff.check109, %diff.check110
  br i1 %conflict.rdx111, label %scalar.ph113.preheader, label %vector.ph115

vector.ph115:                                     ; preds = %vector.memcheck108
  %n.vec117 = and i64 %wide.trip.count, 2147483644
  br label %vector.body119

vector.body119:                                   ; preds = %vector.body119, %vector.ph115
  %index120 = phi i64 [ 0, %vector.ph115 ], [ %index.next125, %vector.body119 ]
  %83 = getelementptr inbounds double, ptr %2, i64 %index120
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %wide.load121 = load <2 x double>, ptr %83, align 8, !tbaa !24
  %wide.load122 = load <2 x double>, ptr %84, align 8, !tbaa !24
  %85 = getelementptr inbounds double, ptr %71, i64 %index120
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load123 = load <2 x double>, ptr %85, align 8, !tbaa !24
  %wide.load124 = load <2 x double>, ptr %86, align 8, !tbaa !24
  %87 = fsub <2 x double> %wide.load121, %wide.load123
  %88 = fsub <2 x double> %wide.load122, %wide.load124
  %89 = getelementptr inbounds double, ptr %5, i64 %index120
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  store <2 x double> %87, ptr %89, align 8, !tbaa !24
  store <2 x double> %88, ptr %90, align 8, !tbaa !24
  %index.next125 = add nuw i64 %index120, 4
  %91 = icmp eq i64 %index.next125, %n.vec117
  br i1 %91, label %middle.block112, label %vector.body119, !llvm.loop !34

middle.block112:                                  ; preds = %vector.body119
  %cmp.n126 = icmp eq i64 %n.vec117, %wide.trip.count
  br i1 %cmp.n126, label %.loopexit56, label %scalar.ph113.preheader

.preheader55:                                     ; preds = %._crit_edge
  br i1 %23, label %.lr.ph63, label %.loopexit56

.lr.ph63:                                         ; preds = %.preheader55
  %92 = getelementptr inbounds i8, ptr %0, i64 32
  %93 = load ptr, ptr %92, align 8, !tbaa !32
  %wide.trip.count82 = zext nneg i32 %18 to i64
  %min.iters.check131 = icmp ult i32 %18, 4
  %94 = ptrtoint ptr %93 to i64
  %95 = sub i64 %12, %94
  %diff.check128 = icmp ult i64 %95, 32
  %or.cond = select i1 %min.iters.check131, i1 true, i1 %diff.check128
  br i1 %or.cond, label %scalar.ph130.preheader, label %vector.ph132

scalar.ph130.preheader:                           ; preds = %middle.block129, %.lr.ph63
  %indvars.iv79.ph = phi i64 [ 0, %.lr.ph63 ], [ %n.vec134, %middle.block129 ]
  %xtraiter184 = and i64 %wide.trip.count, 3
  %lcmp.mod185.not = icmp eq i64 %xtraiter184, 0
  br i1 %lcmp.mod185.not, label %scalar.ph130.prol.loopexit, label %scalar.ph130.prol

scalar.ph130.prol:                                ; preds = %scalar.ph130.preheader, %scalar.ph130.prol
  %indvars.iv79.prol = phi i64 [ %indvars.iv.next80.prol, %scalar.ph130.prol ], [ %indvars.iv79.ph, %scalar.ph130.preheader ]
  %prol.iter186 = phi i64 [ %prol.iter186.next, %scalar.ph130.prol ], [ 0, %scalar.ph130.preheader ]
  %96 = getelementptr inbounds double, ptr %93, i64 %indvars.iv79.prol
  %97 = load double, ptr %96, align 8, !tbaa !24
  %98 = fsub double -1.000000e+20, %97
  %99 = getelementptr inbounds double, ptr %5, i64 %indvars.iv79.prol
  store double %98, ptr %99, align 8, !tbaa !24
  %indvars.iv.next80.prol = add nuw nsw i64 %indvars.iv79.prol, 1
  %prol.iter186.next = add i64 %prol.iter186, 1
  %prol.iter186.cmp.not = icmp eq i64 %prol.iter186.next, %xtraiter184
  br i1 %prol.iter186.cmp.not, label %scalar.ph130.prol.loopexit, label %scalar.ph130.prol, !llvm.loop !35

scalar.ph130.prol.loopexit:                       ; preds = %scalar.ph130.prol, %scalar.ph130.preheader
  %indvars.iv79.unr = phi i64 [ %indvars.iv79.ph, %scalar.ph130.preheader ], [ %indvars.iv.next80.prol, %scalar.ph130.prol ]
  %100 = sub nsw i64 %indvars.iv79.ph, %wide.trip.count
  %101 = icmp ugt i64 %100, -4
  br i1 %101, label %.loopexit56, label %scalar.ph130

vector.ph132:                                     ; preds = %.lr.ph63
  %n.vec134 = and i64 %wide.trip.count, 2147483644
  br label %vector.body136

vector.body136:                                   ; preds = %vector.body136, %vector.ph132
  %index137 = phi i64 [ 0, %vector.ph132 ], [ %index.next140, %vector.body136 ]
  %102 = getelementptr inbounds double, ptr %93, i64 %index137
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %wide.load138 = load <2 x double>, ptr %102, align 8, !tbaa !24
  %wide.load139 = load <2 x double>, ptr %103, align 8, !tbaa !24
  %104 = fsub <2 x double> <double -1.000000e+20, double -1.000000e+20>, %wide.load138
  %105 = fsub <2 x double> <double -1.000000e+20, double -1.000000e+20>, %wide.load139
  %106 = getelementptr inbounds double, ptr %5, i64 %index137
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  store <2 x double> %104, ptr %106, align 8, !tbaa !24
  store <2 x double> %105, ptr %107, align 8, !tbaa !24
  %index.next140 = add nuw i64 %index137, 4
  %108 = icmp eq i64 %index.next140, %n.vec134
  br i1 %108, label %middle.block129, label %vector.body136, !llvm.loop !36

middle.block129:                                  ; preds = %vector.body136
  %cmp.n141 = icmp eq i64 %n.vec134, %wide.trip.count
  br i1 %cmp.n141, label %.loopexit56, label %scalar.ph130.preheader

scalar.ph113:                                     ; preds = %scalar.ph113.prol.loopexit, %scalar.ph113
  %indvars.iv74 = phi i64 [ %indvars.iv.next75.3, %scalar.ph113 ], [ %indvars.iv74.unr, %scalar.ph113.prol.loopexit ]
  %109 = getelementptr inbounds double, ptr %2, i64 %indvars.iv74
  %110 = load double, ptr %109, align 8, !tbaa !24
  %111 = getelementptr inbounds double, ptr %71, i64 %indvars.iv74
  %112 = load double, ptr %111, align 8, !tbaa !24
  %113 = fsub double %110, %112
  %114 = getelementptr inbounds double, ptr %5, i64 %indvars.iv74
  store double %113, ptr %114, align 8, !tbaa !24
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %115 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next75
  %116 = load double, ptr %115, align 8, !tbaa !24
  %117 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next75
  %118 = load double, ptr %117, align 8, !tbaa !24
  %119 = fsub double %116, %118
  %120 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next75
  store double %119, ptr %120, align 8, !tbaa !24
  %indvars.iv.next75.1 = add nuw nsw i64 %indvars.iv74, 2
  %121 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next75.1
  %122 = load double, ptr %121, align 8, !tbaa !24
  %123 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next75.1
  %124 = load double, ptr %123, align 8, !tbaa !24
  %125 = fsub double %122, %124
  %126 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next75.1
  store double %125, ptr %126, align 8, !tbaa !24
  %indvars.iv.next75.2 = add nuw nsw i64 %indvars.iv74, 3
  %127 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next75.2
  %128 = load double, ptr %127, align 8, !tbaa !24
  %129 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next75.2
  %130 = load double, ptr %129, align 8, !tbaa !24
  %131 = fsub double %128, %130
  %132 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next75.2
  store double %131, ptr %132, align 8, !tbaa !24
  %indvars.iv.next75.3 = add nuw nsw i64 %indvars.iv74, 4
  %exitcond78.not.3 = icmp eq i64 %indvars.iv.next75.3, %wide.trip.count77
  br i1 %exitcond78.not.3, label %.loopexit56, label %scalar.ph113, !llvm.loop !37

scalar.ph130:                                     ; preds = %scalar.ph130.prol.loopexit, %scalar.ph130
  %indvars.iv79 = phi i64 [ %indvars.iv.next80.3, %scalar.ph130 ], [ %indvars.iv79.unr, %scalar.ph130.prol.loopexit ]
  %133 = getelementptr inbounds double, ptr %93, i64 %indvars.iv79
  %134 = load double, ptr %133, align 8, !tbaa !24
  %135 = fsub double -1.000000e+20, %134
  %136 = getelementptr inbounds double, ptr %5, i64 %indvars.iv79
  store double %135, ptr %136, align 8, !tbaa !24
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %137 = getelementptr inbounds double, ptr %93, i64 %indvars.iv.next80
  %138 = load double, ptr %137, align 8, !tbaa !24
  %139 = fsub double -1.000000e+20, %138
  %140 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next80
  store double %139, ptr %140, align 8, !tbaa !24
  %indvars.iv.next80.1 = add nuw nsw i64 %indvars.iv79, 2
  %141 = getelementptr inbounds double, ptr %93, i64 %indvars.iv.next80.1
  %142 = load double, ptr %141, align 8, !tbaa !24
  %143 = fsub double -1.000000e+20, %142
  %144 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next80.1
  store double %143, ptr %144, align 8, !tbaa !24
  %indvars.iv.next80.2 = add nuw nsw i64 %indvars.iv79, 3
  %145 = getelementptr inbounds double, ptr %93, i64 %indvars.iv.next80.2
  %146 = load double, ptr %145, align 8, !tbaa !24
  %147 = fsub double -1.000000e+20, %146
  %148 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next80.2
  store double %147, ptr %148, align 8, !tbaa !24
  %indvars.iv.next80.3 = add nuw nsw i64 %indvars.iv79, 4
  %exitcond83.not.3 = icmp eq i64 %indvars.iv.next80.3, %wide.trip.count82
  br i1 %exitcond83.not.3, label %.loopexit56, label %scalar.ph130, !llvm.loop !38

.loopexit56:                                      ; preds = %scalar.ph113.prol.loopexit, %scalar.ph113, %scalar.ph130.prol.loopexit, %scalar.ph130, %middle.block112, %middle.block129, %8, %.preheader57, %.preheader55
  %.not51 = icmp eq ptr %3, null
  br i1 %.not51, label %.preheader, label %.preheader53

.preheader53:                                     ; preds = %.loopexit56
  br i1 %23, label %.lr.ph65, label %.loopexit52

.lr.ph65:                                         ; preds = %.preheader53
  %149 = getelementptr inbounds i8, ptr %0, i64 40
  %150 = load ptr, ptr %149, align 8, !tbaa !39
  %wide.trip.count87 = zext nneg i32 %18 to i64
  %min.iters.check148 = icmp ult i32 %18, 8
  br i1 %min.iters.check148, label %scalar.ph147.preheader, label %vector.memcheck142

scalar.ph147.preheader:                           ; preds = %middle.block146, %vector.memcheck142, %.lr.ph65
  %indvars.iv84.ph = phi i64 [ 0, %vector.memcheck142 ], [ 0, %.lr.ph65 ], [ %n.vec151, %middle.block146 ]
  %xtraiter187 = and i64 %wide.trip.count87, 3
  %lcmp.mod188.not = icmp eq i64 %xtraiter187, 0
  br i1 %lcmp.mod188.not, label %scalar.ph147.prol.loopexit, label %scalar.ph147.prol

scalar.ph147.prol:                                ; preds = %scalar.ph147.preheader, %scalar.ph147.prol
  %indvars.iv84.prol = phi i64 [ %indvars.iv.next85.prol, %scalar.ph147.prol ], [ %indvars.iv84.ph, %scalar.ph147.preheader ]
  %prol.iter189 = phi i64 [ %prol.iter189.next, %scalar.ph147.prol ], [ 0, %scalar.ph147.preheader ]
  %151 = getelementptr inbounds double, ptr %3, i64 %indvars.iv84.prol
  %152 = load double, ptr %151, align 8, !tbaa !24
  %153 = getelementptr inbounds double, ptr %150, i64 %indvars.iv84.prol
  %154 = load double, ptr %153, align 8, !tbaa !24
  %155 = fsub double %152, %154
  %156 = getelementptr inbounds double, ptr %6, i64 %indvars.iv84.prol
  store double %155, ptr %156, align 8, !tbaa !24
  %indvars.iv.next85.prol = add nuw nsw i64 %indvars.iv84.prol, 1
  %prol.iter189.next = add i64 %prol.iter189, 1
  %prol.iter189.cmp.not = icmp eq i64 %prol.iter189.next, %xtraiter187
  br i1 %prol.iter189.cmp.not, label %scalar.ph147.prol.loopexit, label %scalar.ph147.prol, !llvm.loop !40

scalar.ph147.prol.loopexit:                       ; preds = %scalar.ph147.prol, %scalar.ph147.preheader
  %indvars.iv84.unr = phi i64 [ %indvars.iv84.ph, %scalar.ph147.preheader ], [ %indvars.iv.next85.prol, %scalar.ph147.prol ]
  %157 = sub nsw i64 %indvars.iv84.ph, %wide.trip.count87
  %158 = icmp ugt i64 %157, -4
  br i1 %158, label %.loopexit52, label %scalar.ph147

vector.memcheck142:                               ; preds = %.lr.ph65
  %159 = ptrtoint ptr %150 to i64
  %160 = sub i64 %11, %10
  %diff.check143 = icmp ult i64 %160, 32
  %161 = sub i64 %11, %159
  %diff.check144 = icmp ult i64 %161, 32
  %conflict.rdx145 = or i1 %diff.check143, %diff.check144
  br i1 %conflict.rdx145, label %scalar.ph147.preheader, label %vector.ph149

vector.ph149:                                     ; preds = %vector.memcheck142
  %n.vec151 = and i64 %wide.trip.count87, 2147483644
  br label %vector.body153

vector.body153:                                   ; preds = %vector.body153, %vector.ph149
  %index154 = phi i64 [ 0, %vector.ph149 ], [ %index.next159, %vector.body153 ]
  %162 = getelementptr inbounds double, ptr %3, i64 %index154
  %163 = getelementptr inbounds i8, ptr %162, i64 16
  %wide.load155 = load <2 x double>, ptr %162, align 8, !tbaa !24
  %wide.load156 = load <2 x double>, ptr %163, align 8, !tbaa !24
  %164 = getelementptr inbounds double, ptr %150, i64 %index154
  %165 = getelementptr inbounds i8, ptr %164, i64 16
  %wide.load157 = load <2 x double>, ptr %164, align 8, !tbaa !24
  %wide.load158 = load <2 x double>, ptr %165, align 8, !tbaa !24
  %166 = fsub <2 x double> %wide.load155, %wide.load157
  %167 = fsub <2 x double> %wide.load156, %wide.load158
  %168 = getelementptr inbounds double, ptr %6, i64 %index154
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  store <2 x double> %166, ptr %168, align 8, !tbaa !24
  store <2 x double> %167, ptr %169, align 8, !tbaa !24
  %index.next159 = add nuw i64 %index154, 4
  %170 = icmp eq i64 %index.next159, %n.vec151
  br i1 %170, label %middle.block146, label %vector.body153, !llvm.loop !41

middle.block146:                                  ; preds = %vector.body153
  %cmp.n160 = icmp eq i64 %n.vec151, %wide.trip.count87
  br i1 %cmp.n160, label %.loopexit52, label %scalar.ph147.preheader

.preheader:                                       ; preds = %.loopexit56
  br i1 %23, label %.lr.ph67, label %.loopexit52

.lr.ph67:                                         ; preds = %.preheader
  %171 = getelementptr inbounds i8, ptr %0, i64 40
  %172 = load ptr, ptr %171, align 8, !tbaa !39
  %wide.trip.count92 = zext nneg i32 %18 to i64
  %min.iters.check165 = icmp ult i32 %18, 4
  %173 = ptrtoint ptr %172 to i64
  %174 = sub i64 %9, %173
  %diff.check162 = icmp ult i64 %174, 32
  %or.cond178 = select i1 %min.iters.check165, i1 true, i1 %diff.check162
  br i1 %or.cond178, label %scalar.ph164.preheader, label %vector.ph166

scalar.ph164.preheader:                           ; preds = %middle.block163, %.lr.ph67
  %indvars.iv89.ph = phi i64 [ 0, %.lr.ph67 ], [ %n.vec168, %middle.block163 ]
  %xtraiter190 = and i64 %wide.trip.count92, 3
  %lcmp.mod191.not = icmp eq i64 %xtraiter190, 0
  br i1 %lcmp.mod191.not, label %scalar.ph164.prol.loopexit, label %scalar.ph164.prol

scalar.ph164.prol:                                ; preds = %scalar.ph164.preheader, %scalar.ph164.prol
  %indvars.iv89.prol = phi i64 [ %indvars.iv.next90.prol, %scalar.ph164.prol ], [ %indvars.iv89.ph, %scalar.ph164.preheader ]
  %prol.iter192 = phi i64 [ %prol.iter192.next, %scalar.ph164.prol ], [ 0, %scalar.ph164.preheader ]
  %175 = getelementptr inbounds double, ptr %172, i64 %indvars.iv89.prol
  %176 = load double, ptr %175, align 8, !tbaa !24
  %177 = fsub double 1.000000e+20, %176
  %178 = getelementptr inbounds double, ptr %6, i64 %indvars.iv89.prol
  store double %177, ptr %178, align 8, !tbaa !24
  %indvars.iv.next90.prol = add nuw nsw i64 %indvars.iv89.prol, 1
  %prol.iter192.next = add i64 %prol.iter192, 1
  %prol.iter192.cmp.not = icmp eq i64 %prol.iter192.next, %xtraiter190
  br i1 %prol.iter192.cmp.not, label %scalar.ph164.prol.loopexit, label %scalar.ph164.prol, !llvm.loop !42

scalar.ph164.prol.loopexit:                       ; preds = %scalar.ph164.prol, %scalar.ph164.preheader
  %indvars.iv89.unr = phi i64 [ %indvars.iv89.ph, %scalar.ph164.preheader ], [ %indvars.iv.next90.prol, %scalar.ph164.prol ]
  %179 = sub nsw i64 %indvars.iv89.ph, %wide.trip.count92
  %180 = icmp ugt i64 %179, -4
  br i1 %180, label %.loopexit52, label %scalar.ph164

vector.ph166:                                     ; preds = %.lr.ph67
  %n.vec168 = and i64 %wide.trip.count92, 2147483644
  br label %vector.body170

vector.body170:                                   ; preds = %vector.body170, %vector.ph166
  %index171 = phi i64 [ 0, %vector.ph166 ], [ %index.next174, %vector.body170 ]
  %181 = getelementptr inbounds double, ptr %172, i64 %index171
  %182 = getelementptr inbounds i8, ptr %181, i64 16
  %wide.load172 = load <2 x double>, ptr %181, align 8, !tbaa !24
  %wide.load173 = load <2 x double>, ptr %182, align 8, !tbaa !24
  %183 = fsub <2 x double> <double 1.000000e+20, double 1.000000e+20>, %wide.load172
  %184 = fsub <2 x double> <double 1.000000e+20, double 1.000000e+20>, %wide.load173
  %185 = getelementptr inbounds double, ptr %6, i64 %index171
  %186 = getelementptr inbounds i8, ptr %185, i64 16
  store <2 x double> %183, ptr %185, align 8, !tbaa !24
  store <2 x double> %184, ptr %186, align 8, !tbaa !24
  %index.next174 = add nuw i64 %index171, 4
  %187 = icmp eq i64 %index.next174, %n.vec168
  br i1 %187, label %middle.block163, label %vector.body170, !llvm.loop !43

middle.block163:                                  ; preds = %vector.body170
  %cmp.n175 = icmp eq i64 %n.vec168, %wide.trip.count92
  br i1 %cmp.n175, label %.loopexit52, label %scalar.ph164.preheader

scalar.ph147:                                     ; preds = %scalar.ph147.prol.loopexit, %scalar.ph147
  %indvars.iv84 = phi i64 [ %indvars.iv.next85.3, %scalar.ph147 ], [ %indvars.iv84.unr, %scalar.ph147.prol.loopexit ]
  %188 = getelementptr inbounds double, ptr %3, i64 %indvars.iv84
  %189 = load double, ptr %188, align 8, !tbaa !24
  %190 = getelementptr inbounds double, ptr %150, i64 %indvars.iv84
  %191 = load double, ptr %190, align 8, !tbaa !24
  %192 = fsub double %189, %191
  %193 = getelementptr inbounds double, ptr %6, i64 %indvars.iv84
  store double %192, ptr %193, align 8, !tbaa !24
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %194 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next85
  %195 = load double, ptr %194, align 8, !tbaa !24
  %196 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next85
  %197 = load double, ptr %196, align 8, !tbaa !24
  %198 = fsub double %195, %197
  %199 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next85
  store double %198, ptr %199, align 8, !tbaa !24
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %200 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next85.1
  %201 = load double, ptr %200, align 8, !tbaa !24
  %202 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next85.1
  %203 = load double, ptr %202, align 8, !tbaa !24
  %204 = fsub double %201, %203
  %205 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next85.1
  store double %204, ptr %205, align 8, !tbaa !24
  %indvars.iv.next85.2 = add nuw nsw i64 %indvars.iv84, 3
  %206 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next85.2
  %207 = load double, ptr %206, align 8, !tbaa !24
  %208 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next85.2
  %209 = load double, ptr %208, align 8, !tbaa !24
  %210 = fsub double %207, %209
  %211 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next85.2
  store double %210, ptr %211, align 8, !tbaa !24
  %indvars.iv.next85.3 = add nuw nsw i64 %indvars.iv84, 4
  %exitcond88.not.3 = icmp eq i64 %indvars.iv.next85.3, %wide.trip.count87
  br i1 %exitcond88.not.3, label %.loopexit52, label %scalar.ph147, !llvm.loop !44

scalar.ph164:                                     ; preds = %scalar.ph164.prol.loopexit, %scalar.ph164
  %indvars.iv89 = phi i64 [ %indvars.iv.next90.3, %scalar.ph164 ], [ %indvars.iv89.unr, %scalar.ph164.prol.loopexit ]
  %212 = getelementptr inbounds double, ptr %172, i64 %indvars.iv89
  %213 = load double, ptr %212, align 8, !tbaa !24
  %214 = fsub double 1.000000e+20, %213
  %215 = getelementptr inbounds double, ptr %6, i64 %indvars.iv89
  store double %214, ptr %215, align 8, !tbaa !24
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %216 = getelementptr inbounds double, ptr %172, i64 %indvars.iv.next90
  %217 = load double, ptr %216, align 8, !tbaa !24
  %218 = fsub double 1.000000e+20, %217
  %219 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next90
  store double %218, ptr %219, align 8, !tbaa !24
  %indvars.iv.next90.1 = add nuw nsw i64 %indvars.iv89, 2
  %220 = getelementptr inbounds double, ptr %172, i64 %indvars.iv.next90.1
  %221 = load double, ptr %220, align 8, !tbaa !24
  %222 = fsub double 1.000000e+20, %221
  %223 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next90.1
  store double %222, ptr %223, align 8, !tbaa !24
  %indvars.iv.next90.2 = add nuw nsw i64 %indvars.iv89, 3
  %224 = getelementptr inbounds double, ptr %172, i64 %indvars.iv.next90.2
  %225 = load double, ptr %224, align 8, !tbaa !24
  %226 = fsub double 1.000000e+20, %225
  %227 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next90.2
  store double %226, ptr %227, align 8, !tbaa !24
  %indvars.iv.next90.3 = add nuw nsw i64 %indvars.iv89, 4
  %exitcond93.not.3 = icmp eq i64 %indvars.iv.next90.3, %wide.trip.count92
  br i1 %exitcond93.not.3, label %.loopexit52, label %scalar.ph164, !llvm.loop !45

.loopexit52:                                      ; preds = %scalar.ph147.prol.loopexit, %scalar.ph147, %scalar.ph164.prol.loopexit, %scalar.ph164, %middle.block146, %middle.block163, %.preheader53, %.preheader
  store i32 1, ptr %7, align 4, !tbaa !46
  %228 = icmp sgt i32 %19, 0
  br i1 %228, label %.lr.ph70.preheader, label %.loopexit

.lr.ph70.preheader:                               ; preds = %.loopexit52
  %wide.trip.count97 = zext nneg i32 %19 to i64
  br label %.lr.ph70

229:                                              ; preds = %238
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count97
  br i1 %exitcond98.not, label %.loopexit, label %.lr.ph70, !llvm.loop !47

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %229
  %indvars.iv94 = phi i64 [ 0, %.lr.ph70.preheader ], [ %indvars.iv.next95, %229 ]
  %230 = load ptr, ptr %17, align 8, !tbaa !48
  %231 = getelementptr inbounds i32, ptr %230, i64 %indvars.iv94
  %232 = load i32, ptr %231, align 4, !tbaa !49
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds double, ptr %5, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !24
  %236 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %235)
  %237 = fcmp ogt double %236, 2.221000e-16
  br i1 %237, label %243, label %238

238:                                              ; preds = %.lr.ph70
  %239 = getelementptr inbounds double, ptr %6, i64 %233
  %240 = load double, ptr %239, align 8, !tbaa !24
  %241 = call noundef double @_ZN7qpOASES6getAbsEd(double noundef %240)
  %242 = fcmp ogt double %241, 2.221000e-16
  br i1 %242, label %243, label %229

243:                                              ; preds = %238, %.lr.ph70
  store i32 0, ptr %7, align 4, !tbaa !46
  br label %.loopexit

.loopexit:                                        ; preds = %229, %.loopexit52, %243
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  ret i32 0
}

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

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

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 = { 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, !10, i64 24}
!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 = !{!6, !10, i64 32}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !26, !27, !28}
!35 = distinct !{!35, !30}
!36 = distinct !{!36, !26, !27, !28}
!37 = distinct !{!37, !26, !27}
!38 = distinct !{!38, !26, !27}
!39 = !{!6, !10, i64 40}
!40 = distinct !{!40, !30}
!41 = distinct !{!41, !26, !27, !28}
!42 = distinct !{!42, !30}
!43 = distinct !{!43, !26, !27, !28}
!44 = distinct !{!44, !26, !27}
!45 = distinct !{!45, !26, !27}
!46 = !{!7, !7, i64 0}
!47 = distinct !{!47, !26}
!48 = !{!10, !10, i64 0}
!49 = !{!13, !13, i64 0}


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