Instrument main() function only if it is not a member function of a class or struct.