Exploring the Generality of a Java-based Loop Action Model for the Quorum Programming Language
Abstract
Many algorithmic steps require more than one statement to implement, but not big enough to be a method (e.g., add element, find the maximum, determine a value, etc.). These steps are generally implemented by loops. Internal comments for the loops often describe these intermediary steps, however, unfortunately a very small percentage of code is well documented to help new users/coders. As a result, information at levels of abstraction between the individual statement and the whole method is not leveraged by current source code analyses, as that information is not easily available beyond any internal comments describing the code blocks. Hence, this project explores the generality of an approach to automatically determine the high level actions of loop constructs. The approach is to mine loop characteristics of a given loop structure over the repository of the Quorum language source code, map it to an (already developed for Java) action identification model, and thus identify the action performed by the specified loop. The results are promising enough to conclude that this approach could be applied to other programming languages too.
- Publication:
-
arXiv e-prints
- Pub Date:
- March 2019
- DOI:
- 10.48550/arXiv.1904.00478
- arXiv:
- arXiv:1904.00478
- Bibcode:
- 2019arXiv190400478C
- Keywords:
-
- Computer Science - Software Engineering
- E-Print:
- This is a report of a preliminary research I conducted in 2015, where I extended upon the research of Wang et al. ("Developing a Model of Loop Actions by Mining Loop Characteristics from a Large Code Corpus" In Proceedings of 31st International Conference on Software Maintenance and Evolution, Bremen, Germany, September 2015. )