The research of endless loop detection method based on the basic path

The detection of the endless loop has been an important issue in software research. In order to ensure the quality of software and improve the accuracy of endless loop detection, a method based on the basic path of the endless loop detection is proposed. Firstly, the source code is preprocessed, we...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:International journal of computers & applications 2020-11, Vol.42 (8), p.740-747
Hauptverfasser: Gao, Xuexin, Mu, Yongmin, Shen, Meie
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The detection of the endless loop has been an important issue in software research. In order to ensure the quality of software and improve the accuracy of endless loop detection, a method based on the basic path of the endless loop detection is proposed. Firstly, the source code is preprocessed, we cleaned the annotations, and detect the absolute endless loop; secondly, the intermediate code by the GCC compiler is generated, and the structural features of the program and generated the control flow graph are abstracted. Then we get the set of basic path and circle by the depth-first method. Finally, we backtracked from the end of the control flow graph which is used to find the exit of the loop structure and determine whether the exit condition is satisfied. Experiments demonstrate that the method improves the efficiency and accuracy of the endless loop detection.
ISSN:1206-212X
1925-7074
DOI:10.1080/1206212X.2018.1481182