Closed lks9 closed 4 months ago
Example:
switch (i) { case 0: case 1: a = 1; default: }
Instrumented:
_SWITCH_START(sw0, 2) switch (i) { case 0: _CASE(0, sw0, 2) case 1: _CASE(1, sw0, 2) a = 1; default: _CASE(2, sw0, 2) }
We can use only 1 bit instead of 2 if we don't instrument case 0. Then the trace for case 0 and case 1 (prior NN, NT) would be the same N:
case 0
case 1
NN
NT
N
_SWITCH_START(sw0, 1) switch (i) { case 0: case 1: _CASE(0, sw0, 1) a = 1; default: _CASE(1, sw0, 1) }
closed wrong issue by mistake...
Example:
Instrumented:
We can use only 1 bit instead of 2 if we don't instrument
case 0
. Then the trace forcase 0
andcase 1
(priorNN
,NT
) would be the sameN
: