add get_ref_vars to find call by ref vars
combine call by ref and val into the same interpert function