change the edges to points to the basicblock