LPMLN, Weak Constraints, and P-log