Update and rename pat_1077 to pat_1077.cpp