Substitute constraints after recursive call