Add cmp_analysis and test_analysis interfaces