Inferring variable conflicts for local search