A Novel Algorithm of Error Check and Code Generation for Structured Flowchart

2017 
Structured flowchart (SFC) and Automatic code generation based on SFC (CG-SFC) have been widely used in software requirements, design and testing phases. Some CG-SFC tools such as Rhapsody have the ability to build flowchart and generate code, but they do not check whether a given flowchart is correct or structural. For unstructured error 'goto' statements will be generated randomly. We proposed three algorithms and some error recognition criteria to solve those problems. Structure recognition algorithm can recognize Selection, While/for and do-while structures. Error recognition algorithm incorporating criteria can check all the errors. At last, we develop a CG-SFC system, and compared with existing Rhapsody, it shows that the proposed algorithms are correct and effective.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []