rval.cpp