An LPCC approach to nonconvex quadratic programs