State of the art in hardware reverse-engineering