generator: check for constants with same values