algorithm - Is it possible to convert code into a logical graph? -


Is it possible to convert code to logical graphs?


Edit:

Am I thinking that mathematics is absolute? We can decide whether it is right or wrong. But for code, there is something other than logic that what I want to do is remove 'something' to remove that argument.

It is not certain what exactly you mean, but static analyzes like inclined pseudo parsing code For example, the code has been given to all possible branches that can take codes, and check the errors.

  1 if (some tasks ()) { 2. This_will_break (); 3.} and (4. If (second work ()) (5. Print ("% i", str (some)); 6.} 7. Print ("This is OK"); 8.}  

You will get output with lines:

  line 1. Taking the true branch line 1. Error: function this_will_break is not defined Line 4. True branch is taking Line 5. Warning: Incompatible type work done  

You can potentially graph these routes, but I do not know why you want to do this (it really A

There is another possible idea, which outlines the data, and a hierarchical graphview shows the chart that how long each function takes to run, which This is called a function and so on. Representing code like

Add (Blur (MyImage), Blur (alpha channel), the mind, which is based on nodal based applications, such as "Visual form Programming from "or - methods, as:

  [MyImage] --- & gt; [Blur] ---- \ / [Add] / \ [AlphaChannel] ----------  

Those aren't have a logical graph, but they are ways to represent the code in a visual way, which might perhaps give you some ideas .. May be .. unless I completely misunderstand ..


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -