mem.c: rename block.state -> block.ptr