A-function of the ABC model