sanity-tool / sanity

1 stars 0 forks source link

Generate puml diagrams for graphs #47

Open okutane opened 5 years ago

okutane commented 5 years ago

Stage 1: Goto ru.urururu.sanity.cpp.Parser#parse method and add following logic after call to bytecodeParser.parse:

if (produceDebug) {
   // logic to produce .puml file with graphs
}

The created file should conform source code and represent uml diagram like http://plantuml.com/activity-diagram-beta

Stage 2: Same as stage 1, but also you should add call http://plantuml.com/api to generate svg file in debug directory as well.

okutane commented 5 years ago

Before starting implmentation of stage 1 it would be good to take cfg/conditions.c test and writing expected graphs.puml by hand. You can do it online at http://www.plantuml.com/plantuml/uml/