Add an analyzeVirtReg() function.