basicblock: calculate offset in instructionstream