we can reuse the prune_regions method defined in varStore.py to update the VarRegionList. also update the counts at the end (will be done automatically on compile anyway).
if __name__ == "__main__"