Court Acquits Ex-Premier Before Vote in Pakistan