last statement of a basic block

Hi,

How do we know last statement of a basic block both in case of terminator and without terminator?

e.g.
int x, y, z;
x = 10;
y = 0;
if (x > 0)
   z = 1;
else
   z = 0;

I want to know if y = 0; is last statement in basic block (excluding condition x > 0 in this block).
Also, z = 1; or z = 0; are last statements in their respective basic blocks.

- Rajendra