Skip to content

Latest commit

 

History

History
48 lines (44 loc) · 869 Bytes

File metadata and controls

48 lines (44 loc) · 869 Bytes

GraphViewer

A web application for rendering various code representation models.
The input is a fragment of the source code, the name of the language and the representation model.
The output is a tree or graph.
a = 2
b = 3
if a > b:
    a = a + b
else:
    a = a - b
c = a + b

python + control flow graph

graph TD;
    A1[a = 2]-->A2;
    A2[b = 3]-->A3;
    A3{a > b}--yes-->B1;
    A3--no-->C1;
    B1[a = a + b];
    C1[a = a - b];
    D1[c = a + b];
    B1-->D1;
    C1-->D1;
Loading

Supported languages and models

1) python

  • ast
  • cfg

2) kotlin

  • ast

3) c

  • cfg
  • ssa

4) go

  • ast
  • cfg

Installation

Requirements

The startup algorithm is located in the folder server