MC/DC coverage use case generation method based on symbolic execution and path number reduction

The invention discloses an MC/DC coverage use case generation method based on symbolic execution and path number reduction. The method comprises the following steps: firstly, analyzing a source code of a to-be-tested program, and collecting each judgment expression needing to be covered and each con...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: GUO ZHONGHAO, CHEN XIANGXIAN, YU JINLING, WU JIANLIN, YANG YUTAN, CHEN SINONG, JI SIWEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an MC/DC coverage use case generation method based on symbolic execution and path number reduction. The method comprises the following steps: firstly, analyzing a source code of a to-be-tested program, and collecting each judgment expression needing to be covered and each condition in the judgment expression; secondly, instrumenting source codes, and modifying the source codes of the judgment statements, so that the program can record MC/DC coverage rate information in the execution process, and the execution logic is kept unchanged; performing static analysis on program operation, and obtaining a reachable judgment set of each basic block of the program according to a program control flow diagram; and finally, performing symbolic execution on the program after instrumentation, and merging and pruning symbolic execution paths according to coverage rate information and a static analysis result. According to the method, the program is subjected to instrumentation, static program analysis