Make aiger parser more robust