Finding the main procedure when compiling the global declaration.