A model with iterative trials for correcting logic errors in source code

6Citations
Citations of this article
33Readers
Mendeley users who have this article in their library.

Abstract

It is difficult for students and teachers to detect and correct logic errors in source code. Compilers and integrated development environments (IDEs) have the ability to detect and correct syntax errors but it is also difficult for them to detect and correct logic errors. Although many machine learning approaches have been proposed that can show correction candidates for logic errors, they do not provide guidance concerning how the user should fix them. In this paper, we propose a model for correcting logic errors in a given source code. The proposed model realizes debugging of multiple logic errors in the source code by iterative trials of identifying the errors, correcting the errors, and testing the source code. In this model, in the first stage, a list of correction candidates is provided by a deep learning model, and then the list is given to an editing operation predictor that predicts the editing operation for the correction candidate. To learn the internal parameters of the proposed model, we use a set of solution codes created to solve the corresponding programming tasks in a real e-learning system. To verify the usefulness of the proposed model, we apply it to 32 programming tasks. Experimental results show that the correction accuracy is, on average, 58.64% higher than that of the conventional model without iterative trials.

References Powered by Scopus

Long Short-Term Memory

78428Citations
N/AReaders
Get full text

A Neural Probabilistic Language Model

5184Citations
N/AReaders
Get full text

Pre-trained models for natural language processing: A survey

1064Citations
N/AReaders
Get full text

Cited by Powered by Scopus

Online Judge System: Requirements, Architecture, and Experiences

28Citations
N/AReaders
Get full text

Program Repair with Minimal Edits Using CodeT5

5Citations
N/AReaders
Get full text

Adaptive User Interface for Smart Programming Exercise

4Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Matsumoto, T., Watanobe, Y., & Nakamura, K. (2021). A model with iterative trials for correcting logic errors in source code. Applied Sciences (Switzerland), 11(11). https://doi.org/10.3390/app11114755

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 6

67%

Lecturer / Post doc 2

22%

Researcher 1

11%

Readers' Discipline

Tooltip

Computer Science 6

75%

Business, Management and Accounting 1

13%

Arts and Humanities 1

13%

Save time finding and organizing research with Mendeley

Sign up for free