3 Life Range problem with
4 - uninitialized variable
8 LR problem hits all ports, but this test is mcs51 specific
20 /* just clobber all registers: */
21 for (i
= 0; i
< 2; ++i
)
22 for (j
= 0; j
< 2; ++j
)
26 #if !defined(PORT_HOST)
27 # pragma disable_warning 84
34 unsigned char start
= 1;
39 for (i
= 1; i
> 0 ; i
--)
40 wait (); /* destroys all registers */
46 number
--; /* 'number' might be used before initialization */
47 /* the life range of 'number' must be extended to */
48 /* the whole loop _including_ the conditional block */