Inspector general violated constitution in election: Opposition