1. A method for determining an integrity of an execution of a code fragment, comprising: identifying a reference signature for the code fragment within an abstracted representation of a program code comprising the code fragment; executing the code fragment; determining a signature of the executed code fragment; comparing the signature with the reference signature; and executing, based on the comparison of the signature and the reference signature, an alarm routine that includes causing a deletion of data from a memory and/or a register.