The present invention provides a method and system for runtime code integrity validation. The instrumented netlist is run on a hardware emulator, executing reset trigger scripts to reset the branch and statement probes, and then a fully initialized design is driven in emulation on a simulated testbench from which the probe values are retrieved. The look-up table is a two-dimensional look-up table configured to store a plurality of cancellation values arranged in a two-dimensional grid.