Compatibility analysis and its applications