Which of the following best describes a process by which metamorphic rock becomes igneous rock

A.weathering into sediments, then eroding
B.compacting under pressure and cementing
C.changing shape under heat and pressure
D.melting completely, then cooling