Constraints on galaxy formation models from the galaxy stellar mass function and its evolution | Synapse