pst_header
pst = (struct pst_header*) p;
decode_pst(p + sizeof(struct pst_header), pst->numpstates);
p += sizeof(struct pst_header) + 2*pst->numpstates;
struct pst_header *pst;