Empirical studies in reverse engineering: state of the art and future trends