Assign index to each CFG node