Critical points for nondifferentiable functions in presence of splitting