Adding changes for basic scalar range analysis