According to work energy principle the work done on the rock will transform into the potential energy, kinetic energy or both. As the rock is in motion so work done on the rock is totally converted into kinetic energy (if the condition is ideal) and the potential energy becomes minimum..