1. A method, comprising: executing a functional test for an integrated circuit; observing a failure associated with the integrated circuit; and executing a functional scan mode in order to reproduce the failure associated with the integrated circuit, wherein a functional state of the integrated circuit is locked when the failure occurs, and wherein the functional state is subsequently recovered for a structure test for the integrated circuit.