diff --git a/ControlFlowGraph/DOT/GVedit.html b/ControlFlowGraph/DOT/GVedit.html new file mode 100644 index 0000000..696ee92 --- /dev/null +++ b/ControlFlowGraph/DOT/GVedit.html @@ -0,0 +1,305 @@ + + + + + +GVedit Help + + + + + + +
+ +

Introduction

+ +

GVedit is a +Graphviz tool for creating, viewing, editing and processing DOT files. It +allows users to set attributes of graphs with dialogue boxes and save them +for future use. GVedit users can also take advantage of the simple +instant previewing feature of the program.

+ +

 

+ +

Menu system

+ +

GVedit's main menu bar +provides basic file options such as Open, Save, Save As and simple editing +operations such as Cut, Copy and Paste. Most of the common commands +also have standard keyboard shortcuts. +Below you will find a list of the menu items and brief information on +each of them.

+ +

 

+

File:

+ +

New: Creates a blank text +window. You can use it to write a description of a graph in the DOT language. +New graphs are not saved to disk until you save them manually.

+ +

Open: Opens a file +dialogue box to select and load a DOT file into the editor. Each file is opened in a +new window and does not affect other open graphs.

+ +

Save: Saves the active +graph to disk. If the active graph is new and does not have a name, +it opens a Save As dialogue to allow you +to specify the file's name before saving.

+ +

Save as: Opens a Save As +dialogue to save the active graph. You can save a graph under different names but +you will always be working with the most recently saved graph.

+ +

+Close: Closes the active graph window. If there are any unsaved changes, +you get a dialogue box asking if you want to +save the changes before closing the graph.

+ +

 

+ +

Edit:

+ +

Undo : This command +rolls back the last thing that you have done within the active graph.

+ +

Cut : Removes selected +text and keeps it in the clipboard.

+ +

Copy: Copies selected +text to the clipboard.

+ +

+Paste: Inserts the text from the clipboard into the cursor position on the +active graph.

+ +

Find: Opens the find +dialogue box to allow you to locate desired text in a graph.

+ +

 

+

Graphviz

+ +

Run: Processes the active +graph with the last attributes that were used for it. If the active graph has +never been processed before, it opens the settings window.

+ +

Settings: Opens the +settings window. Details of this window are given below. +

+ +

 

+

View

+

Cascade: +Sets the style for handling multiple windows to cascade, in which each +new window overlaps the previous one. +

+

Tile: +Sets the style for handling multiple windows to tiling, in which the +open graph windows partition the root window. +

+ +

 

+

Help

+

+Help: Opens a manual page describing how to use this program. +

+

+Graphviz on net: Opens a browser window on the Graphviz home page. +

+

+About GVedit: Provides version information about the program. +

+ +

Tool bar

+ +

Under the menu bar, +there is a toolbar with five buttons on it. These buttons are nothing but shortcuts +to some menu items. Each button has a tool tip attached to it to +indicate its purpose.

+ +

 

+ +

Working with multiple graphs; the active graph.

+ +

+GVedit allows you to have multiple graphs open at the same time. At any +time, there is a single active graph. +Anything you do using either the GVedit menus or the settings window affects the +active graph. When you go to the settings window, you always see the +settings of active graph. +The settings of each graph are maintained separately. +

+

+To make a graph active, click on its window. +The background of the active graph window is white +while all others are gray. +

+ +

 

+

Settings window

+ +

+With the settings window, +you can select the layout engine, set the output type and file, +and set any attributes that are available with the Graphviz release +installed on your computer.

+ +

Layout engine: +Graphviz provides five different graph layouts. You can select +the one which best fits your needs. More information about these layouts +can be found at the Graphviz home page +

+ +

Output file name: +This field allows you to specify the output file name. +You can either type in the name, or use the +small button by the text box to open a file +dialogue box. +This field corresponds to the –o option of Graphviz. +

+ +

Output +file type: This drop down list allows +you to select the output file type. The output file name's extension is changed +accordingly. +This field corresponds to the –T option of Graphviz. +

+ +

Graphviz +bin folder:You usually do not need to +enter anything here. During the Graphviz installation, locations of the Graphviz +files are stored in the registry and GVedit retrieves it from there. If, +for some reason, Graphviz files are not where they are supposed to be +and GVedit can not +find them, you can edit this information manually. +

+ +

+Preview Output file: +If this box is checked, +GVedit creates a low-quality preview of the output and shows it in a +separate window. It is a convenient way to preview the results without +executing another viewing program. +

+ +

+Apply cairo filter: +If this output format is supported by the cairo library, this box becomes +active. If checked, output will be generated using the cairo library +rather than the default renderer. +

+ +

Attributes: +On the lower half of the settings window, you will see two dropdown lists, +one small text box, and a larger text editing area. GVedit processes the +contents of the large box as additional, generic graph, node or edge attributes. +(These correspond to the –G, –N, and –E command-line options of Graphviz.) +You can either type directly in the large text box, +or use the drop down lists to pick +an allowed scope and one of the common attribute names. +For details of these attributes, refer to the +page of Graphviz attributes. +

+ +

+If you specify an attribute using the drop down lists, you need to click on the +Add button to register the attribute. +If you do not click on +Add button, the attribute that you entered will not be +added to the large box, hence will not be processed. +

+ +

As an +example, assume that we would like to have a graph drawn +with a green background. +First, click on the scope list and select graph; +then click on the name list and +select bgcolor; and then type green to the value box. +Finally, click on the Add button to send the attribute to large box. +

+ +

+Belowe the Add button is a Help button. Clicking on this +will open a browser window on the Graphviz page describing the supported +attributes. +

+ +

+Under the large box, there are 3 small buttons, plus +Cancel and OK buttons. The first button is used to +clear the attributes box; +the second one is used to load an existing text file into the attributes box; +and the last one is used to save the attributes to a text file for later use. +The Cancel button closes the window without processing anything; +the OK button processes the +active document file with the settings on the screen and closes the settings +window. If you check the preview check box, you will see the preview of the +graph layout on the screen.

+ +

 

+ +

Console window

+ +

+At the bottom of the +main window, there is a console window where you can see the results of your +actions. This provides a trace of your layout actions, showing the +Graphviz command corresponding to the active graph's settings. It also +displays warnings from GVedit, as well as the output of the +executed Graphviz programs. +By right clicking on the console window, you will get a menu providing some +additional functions, such as clearing or saving the console logs.

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +
+ + + + diff --git a/ControlFlowGraph/DOT/Graphviz.ini b/ControlFlowGraph/DOT/Graphviz.ini new file mode 100644 index 0000000..91e0890 --- /dev/null +++ b/ControlFlowGraph/DOT/Graphviz.ini @@ -0,0 +1,2 @@ +[Graphviz] +Version=XXX diff --git a/ControlFlowGraph/DOT/New Text Document.txt b/ControlFlowGraph/DOT/New Text Document.txt new file mode 100644 index 0000000..e69de29 diff --git a/ControlFlowGraph/DOT/Pathplan.dll b/ControlFlowGraph/DOT/Pathplan.dll new file mode 100644 index 0000000..74180ab Binary files /dev/null and b/ControlFlowGraph/DOT/Pathplan.dll differ diff --git a/ControlFlowGraph/DOT/QtCore4.dll b/ControlFlowGraph/DOT/QtCore4.dll new file mode 100644 index 0000000..d4630d8 Binary files /dev/null and b/ControlFlowGraph/DOT/QtCore4.dll differ diff --git a/ControlFlowGraph/DOT/QtGui4.dll b/ControlFlowGraph/DOT/QtGui4.dll new file mode 100644 index 0000000..7e5fd8f Binary files /dev/null and b/ControlFlowGraph/DOT/QtGui4.dll differ diff --git a/ControlFlowGraph/DOT/Settings.ini b/ControlFlowGraph/DOT/Settings.ini new file mode 100644 index 0000000..ec85482 --- /dev/null +++ b/ControlFlowGraph/DOT/Settings.ini @@ -0,0 +1,8 @@ +[Settings] +Layout=0 +Output=9 +Preview=1 +InitialDir1= +InitialDir2= +InitialDir3= +binPath=C:\Program Files\Graphviz2.24\bin\ diff --git a/ControlFlowGraph/DOT/Temp.rar b/ControlFlowGraph/DOT/Temp.rar new file mode 100644 index 0000000..7cdfe4d Binary files /dev/null and b/ControlFlowGraph/DOT/Temp.rar differ diff --git a/ControlFlowGraph/DOT/acyclic.exe b/ControlFlowGraph/DOT/acyclic.exe new file mode 100644 index 0000000..aa8cd5d Binary files /dev/null and b/ControlFlowGraph/DOT/acyclic.exe differ diff --git a/ControlFlowGraph/DOT/ann.dll b/ControlFlowGraph/DOT/ann.dll new file mode 100644 index 0000000..db9384e Binary files /dev/null and b/ControlFlowGraph/DOT/ann.dll differ diff --git a/ControlFlowGraph/DOT/bcomps.exe b/ControlFlowGraph/DOT/bcomps.exe new file mode 100644 index 0000000..1ce591a Binary files /dev/null and b/ControlFlowGraph/DOT/bcomps.exe differ diff --git a/ControlFlowGraph/DOT/ccomps.exe b/ControlFlowGraph/DOT/ccomps.exe new file mode 100644 index 0000000..10de832 Binary files /dev/null and b/ControlFlowGraph/DOT/ccomps.exe differ diff --git a/ControlFlowGraph/DOT/cdt.dll b/ControlFlowGraph/DOT/cdt.dll new file mode 100644 index 0000000..b8e78a2 Binary files /dev/null and b/ControlFlowGraph/DOT/cdt.dll differ diff --git a/ControlFlowGraph/DOT/cgraph.dll b/ControlFlowGraph/DOT/cgraph.dll new file mode 100644 index 0000000..dc4df61 Binary files /dev/null and b/ControlFlowGraph/DOT/cgraph.dll differ diff --git a/ControlFlowGraph/DOT/circo.exe b/ControlFlowGraph/DOT/circo.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/circo.exe differ diff --git a/ControlFlowGraph/DOT/config.h b/ControlFlowGraph/DOT/config.h new file mode 100644 index 0000000..b20ac67 --- /dev/null +++ b/ControlFlowGraph/DOT/config.h @@ -0,0 +1,497 @@ +/* manually generated configuration for Windows */ + +#include "graphviz_version.h" + +/* Command to open a browser on a URL */ +#define BROWSER "xdg-open" + +#define HAVE_ARGZ_APPEND 0 + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +/* #undef CRAY_STACKSEG_END */ + +/* Define to 1 if using `alloca.c'. */ +/* #undef C_ALLOCA */ + +/* Define for Darwin-style shared library names. */ +/* #undef DARWIN_DYLIB */ + +/* Default DPI. */ +#define DEFAULT_DPI 96 + +/* Path to TrueType fonts. */ +#define DEFAULT_FONTPATH "C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts" + +/* Define if you want DIGCOLA */ +#define DIGCOLA 1 + +/* Define if you want on-demand plugin loading */ +#define ENABLE_LTDL 1 + +/* Define to 1 if you have `alloca', as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if compiler supports bool */ +#define HAVE_BOOL 1 + +/* Define to 1 if you have the `cbrt' function. */ +//#define HAVE_CBRT 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_CRT_EXTERNS_H */ + +/* Define to 1 if you have the `deflateBound' function. */ +/* #undef HAVE_DEFLATEBOUND */ + +/* Define if you have the DevIL library */ +/* #undef HAVE_DEVIL */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the `drand48' function. */ +/* #undef HAVE_DRAND48 */ + +/* Define if errno externs are declared */ +/* #undef HAVE_ERRNO_DECL */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define if you have the expat library */ +#define HAVE_EXPAT 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_EXPAT_H 1 + +/* Define to 1 if you have the `feenableexcept' function. */ +/* #undef HAVE_FEENABLEEXCEPT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_FENV_H 1 + +/* Define to 1 if you have the `fesetenv' function. */ +#define HAVE_FESETENV 1 + +/* Define if FILE structure provides _cnt */ +#define HAVE_FILE_CNT 1 + +/* Define if FILE structure provides _IO_read_end */ +/* #undef HAVE_FILE_IO_READ_END */ + +/* Define if FILE structure provides _next */ +/* #undef HAVE_FILE_NEXT */ + +/* Define if FILE structure provides _r */ +/* #undef HAVE_FILE_R */ + +/* Define to 1 if you have the header file. */ +#define HAVE_FLOAT_H 1 + +/* Define if you have the fontconfig library */ +#define HAVE_FONTCONFIG 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_FPU_CONTROL_H */ + +/* Define if you have the freetype2 library */ +#define HAVE_FREETYPE2 1 + +/* Define if you have the GDI+ framework for Windows */ +/* #undef HAVE_GDIPLUS */ + +/* Define if you have the gdk_pixbuf library */ +/* #undef HAVE_GDK_PIXBUF */ + +/* Define if the GD library has the GD_FONTCONFIG feature */ +#define HAVE_GD_FONTCONFIG 1 + +/* Define if the GD library has the GD_FREETYPE feature */ +#define HAVE_GD_FREETYPE 1 + +/* Define if the GD library has the GD_GIF feature */ +#define HAVE_GD_GIF 1 + +/* Define if the GD library supports GIFANIM */ +/* #undef HAVE_GD_GIFANIM */ + +/* Define if the GD library has the GD_JPEG feature */ +#define HAVE_GD_JPEG 1 + +/* Define if the GD library supports OPENPOLYGON */ +/* #undef HAVE_GD_OPENPOLYGON */ + +/* Define if the GD library has the GD_PNG feature */ +#define HAVE_GD_PNG 1 + +/* Define if the GD library supports XPM */ +/* #undef HAVE_GD_XPM */ + +/* Define to 1 if you have the `getenv' function. */ +#define HAVE_GETENV 1 + +/* Define if getopt externs are declared */ +#define HAVE_GETOPT_DECL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GETOPT_H 1 + +/* Define to 1 if you have the `getrusage' function. */ +/* #undef HAVE_GETRUSAGE */ + +/* Define if you have the glade library */ +#define HAVE_GLADE 1 + +/* Define if you have the glitz library */ +/* #undef HAVE_GLITZ */ + +/* Define if you have the gs library */ +/* #undef HAVE_GS */ + +/* Define if you have the gtk library */ +/* #undef HAVE_GTK */ + +/* Define if you have the gtkgl library */ +/* #undef HAVE_GTKGL */ + +/* Define if you have the gtkglext library */ +#define HAVE_GTKGLEXT 1 + +/* Define if you have the gts library */ +#define HAVE_GTS 1 + +/* Define if you have the iconv() function. */ +#define HAVE_ICONV 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ICONV_H 1 + +/* Define if defines iconv_t. */ +#define HAVE_ICONV_T_DEF 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_IL_IL_H */ + +/* Define if intptr_t is declared */ +#define HAVE_INTPTR_T 1 + +/* Define to 1 if you have the header file. */ +//#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_LANGINFO_H */ + +/* Define if you have the lasi library */ +/* #undef HAVE_LASI */ + +/* Define if either internal or external GD library is availabel */ +//#define HAVE_LIBGD 1 + +/* Define if the LIBGEN library has the basename feature */ +/* #undef HAVE_LIBGEN */ + +/* Define to 1 if you have the header file. */ +#define HAVE_LIBINTL_H 1 + +/* Define if you have the JPEG library */ +#define HAVE_LIBJPEG 1 + +/* Define if you have the PNG library */ +#define HAVE_LIBPNG 1 + +/* Define if you have the XPM library */ +/* #undef HAVE_LIBXPMFORLEFTY */ + +/* Define if you have the Z library */ +#define HAVE_LIBZ 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the `lrand48' function. */ +/* #undef HAVE_LRAND48 */ + +/* Define to 1 if you have the `lsqrt' function. */ +/* #undef HAVE_LSQRT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MALLOC_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define if you have the ming library for SWF support */ +/* #undef HAVE_MING */ + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the `nl_langinfo' function. */ +/* #undef HAVE_NL_LANGINFO */ + +/* Define if you have the pangocairo library */ +#define HAVE_PANGOCAIRO 1 + +/* Define to 1 if you have the `pango_fc_font_lock_face' function. */ +/* #undef HAVE_PANGO_FC_FONT_LOCK_FACE */ + +/* Define to 1 if you have the `pango_fc_font_unlock_face' function. */ +/* #undef HAVE_PANGO_FC_FONT_UNLOCK_FACE */ + +/* Define to 1 if you have the `pow' function. */ +#define HAVE_POW 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_PTHREAD_H */ + +/* Define if you have the Quartz framework for Mac OS X */ +/* #undef HAVE_QUARTZ */ + +/* Define if you have the rsvg library */ +#define HAVE_RSVG 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SEARCH_H 1 + +/* Define to 1 if you have the `setenv' function. */ +/* #undef HAVE_SETENV */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SETJMP_H 1 + +/* Define to 1 if you have the `setmode' function. */ +#define HAVE_SETMODE 1 + +/* Define if libm provides a *working* sincos function */ +/* #undef HAVE_SINCOS */ + +/* Define to 1 if you have the `sqrt' function. */ +#define HAVE_SQRT 1 + +/* Define to 1 if you have the `srand48' function. */ +/* #undef HAVE_SRAND48 */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDARG_H 1 + +/* Define to 1 if stdbool.h conforms to C99. */ +//#define HAVE_STDBOOL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDDEF_H 1 + +/* Define to 1 if you have the header file. */ +//#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strcasecmp' function. */ +//#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the header file. */ +//#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncasecmp' function. */ +//#define HAVE_STRNCASECMP 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define to 1 if you have the `strtoll' function. */ +#define HAVE_STRTOLL 1 + +/* Define to 1 if you have the `strtoul' function. */ +#define HAVE_STRTOUL 1 + +/* Define to 1 if you have the `strtoull' function. */ +#define HAVE_STRTOULL 1 + +/* Define to 1 if you have struct dioattr */ +/* #undef HAVE_STRUCT_DIOATTR */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_FPU_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_INOTIFY_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_IOCTL_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_MMAN_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SELECT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SOCKET_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_TIMES_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the tcl library */ +/* #undef HAVE_TCL */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_TERMIOS_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_TKINT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_TK_H */ + +/* Define if triangle.[ch] are available. */ +/* #undef HAVE_TRIANGLE */ + +/* Define to 1 if you have the `uname' function. */ +/* #undef HAVE_UNAME */ + +/* Define to 1 if you have the header file. */ +//#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +//#define HAVE_VALUES_H 1 + +/* Define to 1 if you have the `vsnprintf' function. */ +#define HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_X11_INTRINSIC_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_X11_XAW_TEXT_H */ + +/* Define to 1 if the system has the type `_Bool'. */ +#define HAVE__BOOL 1 + +/* Define to 1 if you have the `_NSGetEnviron' function. */ +/* #undef HAVE__NSGETENVIRON */ + +/* Define to 1 if you have the `_sysconf' function. */ +/* #undef HAVE__SYSCONF */ + +/* Define to 1 if you have the `__freadable' function. */ +/* #undef HAVE___FREADABLE */ + +/* Define as const if the declaration of iconv() needs const. */ +#define ICONV_CONST const + +/* Define if you want IPSEPCOLA */ +/* #undef IPSEPCOLA */ +#define IPSEPCOLA 1 +/* Define if no fpu error exception handling is required. */ +#define NO_FPERR 1 + +/* Postscript fontnames. */ +#define NO_POSTSCRIPT_ALIAS 1 + +/* Define if you want ORTHO */ +/* #undef ORTHO */ +#define ORTHO 1 + +/* Path separator character. */ +#define PATHSEPARATOR ":" + +/* Define if you want SFDP */ +#define SFDP 1 +/* #undef SFDP */ + +/* Define if you want SMYRNA */ +/* #undef SMYRNA */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at runtime. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define if you want CGRAPH */ +/* #undef WITH_CGRAPH */ + +/* Define to 1 if the X Window System is missing or not being used. */ +#define X_DISPLAY_MISSING 1 + +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +/* #undef YYTEXT_POINTER */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `int' if doesn't define. */ +#define gid_t int + +/* Define to `int' if does not define. */ +/* #undef mode_t */ + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* Define to unsigned if socklet_t is missing */ +#define socklen_t unsigned + +/* Define to `int' if does not define. */ +//#define ssize_t int + +/* Define to `int' if doesn't define. */ +#define uid_t int + diff --git a/ControlFlowGraph/DOT/config6 b/ControlFlowGraph/DOT/config6 new file mode 100644 index 0000000..443d673 --- /dev/null +++ b/ControlFlowGraph/DOT/config6 @@ -0,0 +1,273 @@ +# This file was generated by "dot -c" at time of install. + +# You may temporarily disable a plugin by removing or commenting out +# a line in this file, or you can modify its "quality" value to affect +# default plugin selection. + +# Manual edits to this file **will be lost** on upgrade. + +gvplugin_core.dll core { + device { + dot:dot 1 + gv:dot 1 + canon:dot 1 + plain:dot 1 + plain-ext:dot 1 + xdot:xdot 1 + xdot1.2:xdot 1 + xdot1.4:xdot 1 + } + device { + fig:fig 1 + } + device { + ismap:map 1 + cmap:map 1 + imap:map 1 + cmapx:map 1 + imap_np:map 1 + cmapx_np:map 1 + } + device { + ps:ps 1 + ps2:ps 1 + eps:ps 1 + } + device { + svg:svg 1 + svgz:svg 1 + } + device { + tk:tk 1 + } + device { + vml:vml 1 + vmlz:vml 1 + } + device { + pic:pic -1 + } + device { + pov:pov 1 + } + render { + dot 1 + xdot 1 + } + render { + fig 1 + } + render { + map 1 + } + render { + ps 1 + } + render { + svg 1 + } + render { + tk 1 + } + render { + vml 1 + } + render { + pic -1 + } + render { + pov 1 + } + loadimage { + png:svg 1 + gif:svg 1 + jpeg:svg 1 + jpe:svg 1 + jpg:svg 1 + png:fig 1 + gif:fig 1 + jpeg:fig 1 + jpe:fig 1 + jpg:fig 1 + png:vrml 1 + gif:vrml 1 + jpeg:vrml 1 + jpe:vrml 1 + jpg:vrml 1 + eps:ps 1 + ps:ps 1 + (lib):ps 1 + png:map 1 + gif:map 1 + jpeg:map 1 + jpe:map 1 + jpg:map 1 + ps:map 1 + eps:map 1 + svg:map 1 + png:dot 1 + gif:dot 1 + jpeg:dot 1 + jpe:dot 1 + jpg:dot 1 + ps:dot 1 + eps:dot 1 + svg:dot 1 + png:xdot 1 + gif:xdot 1 + jpeg:xdot 1 + jpe:xdot 1 + jpg:xdot 1 + ps:xdot 1 + eps:xdot 1 + svg:xdot 1 + svg:svg 1 + png:vml 1 + gif:vml 1 + jpeg:vml 1 + jpe:vml 1 + jpg:vml 1 + gif:tk 1 + } +} +gvplugin_dot_layout.dll dot_layout { + layout { + dot 0 + } +} +gvplugin_gd.dll gd { + render { + gd 1 + } + render { + vrml 1 + } + textlayout { + textlayout 2 + } + loadimage { + gd:gd 1 + gd2:gd 1 + gif:gd 1 + jpeg:gd 1 + jpe:gd 1 + jpg:gd 1 + png:gd 1 + gd:ps 1 +#FAILS gd:lasi 1 + gd2:ps 1 +#FAILS gd2:lasi 1 + gif:ps 1 +#FAILS gif:lasi 1 + jpeg:ps 1 + jpg:ps 1 + jpe:ps 1 +#FAILS jpeg:lasi 1 +#FAILS jpg:lasi 1 +#FAILS jpe:lasi 1 + png:ps 1 +#FAILS png:lasi 1 + gd:cairo 1 + gd2:cairo 1 + gif:cairo 1 + jpeg:cairo 1 + jpg:cairo 1 + jpe:cairo 1 + png:cairo -1 + } + device { + gif:cairo 10 + wbmp:cairo 5 + jpe:cairo 5 + jpeg:cairo 5 + jpg:cairo 5 + png:cairo 5 + gd:cairo 5 + gd2:cairo 5 + } + device { + gif:gd 1 + wbmp:gd 1 + jpe:gd 1 + jpeg:gd 1 + jpg:gd 1 + png:gd 1 + gd:gd 1 + gd2:gd 1 + } + device { + vrml:vrml 1 + } +} +gvplugin_gdiplus.dll gdiplus { + render { + gdiplus 1 + } + textlayout { + textlayout 8 + } + loadimage { + bmp:gdiplus 8 + gif:gdiplus 8 + jpe:gdiplus 8 + jpeg:gdiplus 8 + jpg:gdiplus 8 + png:gdiplus 8 + } + device { + metafile:gdiplus 8 + bmp:gdiplus 8 + emf:gdiplus 8 + emfplus:gdiplus 8 + gif:gdiplus 8 + jpe:gdiplus 8 + jpeg:gdiplus 8 + jpg:gdiplus 8 + png:gdiplus 8 + tif:gdiplus 8 + tiff:gdiplus 8 + } + device { + bmp:cairo 8 + gif:cairo 8 + jpe:cairo 8 + jpeg:cairo 8 + jpg:cairo 8 + png:cairo 8 + tif:cairo 8 + tiff:cairo 8 + } +} +gvplugin_neato_layout.dll neato_layout { + layout { + neato 0 + fdp 0 + sfdp 0 + twopi 0 + circo 0 + patchwork 0 + osage 0 + nop 0 + nop1 0 + nop2 0 + } +} +gvplugin_pango.dll cairo { + render { + cairo 10 + } + textlayout { + textlayout 10 + } + loadimage { + png:cairo 1 +#FAILS png:lasi 2 + png:ps 2 + } + device { + png:cairo 10 + ps:cairo -10 + pdf:cairo 10 + svg:cairo -10 + } +} diff --git a/ControlFlowGraph/DOT/diffimg.exe b/ControlFlowGraph/DOT/diffimg.exe new file mode 100644 index 0000000..9afa0fb Binary files /dev/null and b/ControlFlowGraph/DOT/diffimg.exe differ diff --git a/ControlFlowGraph/DOT/dijkstra.exe b/ControlFlowGraph/DOT/dijkstra.exe new file mode 100644 index 0000000..43d8556 Binary files /dev/null and b/ControlFlowGraph/DOT/dijkstra.exe differ diff --git a/ControlFlowGraph/DOT/dot.exe b/ControlFlowGraph/DOT/dot.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/dot.exe differ diff --git a/ControlFlowGraph/DOT/dotty.exe b/ControlFlowGraph/DOT/dotty.exe new file mode 100644 index 0000000..e44eda4 Binary files /dev/null and b/ControlFlowGraph/DOT/dotty.exe differ diff --git a/ControlFlowGraph/DOT/edgepaint.exe b/ControlFlowGraph/DOT/edgepaint.exe new file mode 100644 index 0000000..173337a Binary files /dev/null and b/ControlFlowGraph/DOT/edgepaint.exe differ diff --git a/ControlFlowGraph/DOT/exparse.h b/ControlFlowGraph/DOT/exparse.h new file mode 100644 index 0000000..a544653 --- /dev/null +++ b/ControlFlowGraph/DOT/exparse.h @@ -0,0 +1,237 @@ +#ifndef _EXPARSE_H +#define _EXPARSE_H + +/* A Bison parser, made by GNU Bison 2.4.1. */ + +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + + +/* Tokens. */ +#ifndef EXTOKENTYPE +# define EXTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum extokentype { + MINTOKEN = 258, + INTEGER = 259, + UNSIGNED = 260, + CHARACTER = 261, + FLOATING = 262, + STRING = 263, + VOIDTYPE = 264, + ADDRESS = 265, + ARRAY = 266, + BREAK = 267, + CALL = 268, + CASE = 269, + CONSTANT = 270, + CONTINUE = 271, + DECLARE = 272, + DEFAULT = 273, + DYNAMIC = 274, + ELSE = 275, + EXIT = 276, + FOR = 277, + FUNCTION = 278, + GSUB = 279, + ITERATE = 280, + ITERATER = 281, + ID = 282, + IF = 283, + LABEL = 284, + MEMBER = 285, + NAME = 286, + POS = 287, + PRAGMA = 288, + PRE = 289, + PRINT = 290, + PRINTF = 291, + PROCEDURE = 292, + QUERY = 293, + RAND = 294, + RETURN = 295, + SCANF = 296, + SPLIT = 297, + SPRINTF = 298, + SRAND = 299, + SSCANF = 300, + SUB = 301, + SUBSTR = 302, + SWITCH = 303, + TOKENS = 304, + UNSET = 305, + WHILE = 306, + F2I = 307, + F2S = 308, + I2F = 309, + I2S = 310, + S2B = 311, + S2F = 312, + S2I = 313, + F2X = 314, + I2X = 315, + S2X = 316, + X2F = 317, + X2I = 318, + X2S = 319, + X2X = 320, + XPRINT = 321, + OR = 322, + AND = 323, + NE = 324, + EQ = 325, + GE = 326, + LE = 327, + RS = 328, + LS = 329, +// IN = 330, + UNARY = 331, + DEC = 332, + INC = 333, + CAST = 334, + MAXTOKEN = 335 + }; +#endif +/* Tokens. */ +#define MINTOKEN 258 +#define INTEGER 259 +#define UNSIGNED 260 +#define CHARACTER 261 +#define FLOATING 262 +#define STRING 263 +#define VOIDTYPE 264 +#define ADDRESS 265 +#define ARRAY 266 +#define BREAK 267 +#define CALL 268 +#define CASE 269 +#define CONSTANT 270 +#define CONTINUE 271 +#define DECLARE 272 +#define DEFAULT 273 +#define DYNAMIC 274 +#define ELSE 275 +#define EXIT 276 +#define FOR 277 +#define FUNCTION 278 +#define GSUB 279 +#define ITERATE 280 +#define ITERATER 281 +#define ID 282 +#define IF 283 +#define LABEL 284 +#define MEMBER 285 +#define NAME 286 +#define POS 287 +#define PRAGMA 288 +#define PRE 289 +#define PRINT 290 +#define PRINTF 291 +#define PROCEDURE 292 +#define QUERY 293 +#define RAND 294 +#define RETURN 295 +#define SCANF 296 +#define SPLIT 297 +#define SPRINTF 298 +#define SRAND 299 +#define SSCANF 300 +#define SUB 301 +#define SUBSTR 302 +#define SWITCH 303 +#define TOKENS 304 +#define UNSET 305 +#define WHILE 306 +#define F2I 307 +#define F2S 308 +#define I2F 309 +#define I2S 310 +#define S2B 311 +#define S2F 312 +#define S2I 313 +#define F2X 314 +#define I2X 315 +#define S2X 316 +#define X2F 317 +#define X2I 318 +#define X2S 319 +#define X2X 320 +#define XPRINT 321 +#define OR 322 +#define AND 323 +#define NE 324 +#define EQ 325 +#define GE 326 +#define LE 327 +#define RS 328 +#define LS 329 +#define IN 330 +#define UNARY 331 +#define DEC 332 +#define INC 333 +#define CAST 334 +#define MAXTOKEN 335 + + + + +#if ! defined EXSTYPE && ! defined EXSTYPE_IS_DECLARED +typedef union EXSTYPE +{ + +/* Line 1676 of yacc.c */ +#line 45 "../../lib/expr/exparse.y" + + struct Exnode_s*expr; + double floating; + struct Exref_s* reference; + struct Exid_s* id; + Sflong_t integer; + int op; + char* string; + void* user; + struct Exbuf_s* buffer; + + + +/* Line 1676 of yacc.c */ +#line 226 "y.tab.h" +} EXSTYPE; +# define EXSTYPE_IS_TRIVIAL 1 +# define exstype EXSTYPE /* obsolescent; will be withdrawn */ +# define EXSTYPE_IS_DECLARED 1 +#endif + +extern EXSTYPE exlval; + + +#endif /* _EXPARSE_H */ diff --git a/ControlFlowGraph/DOT/fc-cache.exe b/ControlFlowGraph/DOT/fc-cache.exe new file mode 100644 index 0000000..7fc3ff4 Binary files /dev/null and b/ControlFlowGraph/DOT/fc-cache.exe differ diff --git a/ControlFlowGraph/DOT/fc-cat.exe b/ControlFlowGraph/DOT/fc-cat.exe new file mode 100644 index 0000000..0e522fa Binary files /dev/null and b/ControlFlowGraph/DOT/fc-cat.exe differ diff --git a/ControlFlowGraph/DOT/fc-list.exe b/ControlFlowGraph/DOT/fc-list.exe new file mode 100644 index 0000000..067f9d1 Binary files /dev/null and b/ControlFlowGraph/DOT/fc-list.exe differ diff --git a/ControlFlowGraph/DOT/fc-match.exe b/ControlFlowGraph/DOT/fc-match.exe new file mode 100644 index 0000000..230cc0b Binary files /dev/null and b/ControlFlowGraph/DOT/fc-match.exe differ diff --git a/ControlFlowGraph/DOT/fdp.exe b/ControlFlowGraph/DOT/fdp.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/fdp.exe differ diff --git a/ControlFlowGraph/DOT/fontconfig.dll b/ControlFlowGraph/DOT/fontconfig.dll new file mode 100644 index 0000000..108875a Binary files /dev/null and b/ControlFlowGraph/DOT/fontconfig.dll differ diff --git a/ControlFlowGraph/DOT/fontconfig_fix.dll b/ControlFlowGraph/DOT/fontconfig_fix.dll new file mode 100644 index 0000000..f39e62a Binary files /dev/null and b/ControlFlowGraph/DOT/fontconfig_fix.dll differ diff --git a/ControlFlowGraph/DOT/freetype6.dll b/ControlFlowGraph/DOT/freetype6.dll new file mode 100644 index 0000000..18b14fd Binary files /dev/null and b/ControlFlowGraph/DOT/freetype6.dll differ diff --git a/ControlFlowGraph/DOT/gc.exe b/ControlFlowGraph/DOT/gc.exe new file mode 100644 index 0000000..b0dd5ba Binary files /dev/null and b/ControlFlowGraph/DOT/gc.exe differ diff --git a/ControlFlowGraph/DOT/gd.tgz b/ControlFlowGraph/DOT/gd.tgz new file mode 100644 index 0000000..aa47540 Binary files /dev/null and b/ControlFlowGraph/DOT/gd.tgz differ diff --git a/ControlFlowGraph/DOT/gd.zip b/ControlFlowGraph/DOT/gd.zip new file mode 100644 index 0000000..0efa3a8 Binary files /dev/null and b/ControlFlowGraph/DOT/gd.zip differ diff --git a/ControlFlowGraph/DOT/getopt.h b/ControlFlowGraph/DOT/getopt.h new file mode 100644 index 0000000..cf35bc4 --- /dev/null +++ b/ControlFlowGraph/DOT/getopt.h @@ -0,0 +1,37 @@ +/* $Id: getopt.h,v 1.1 2005/01/20 19:57:38 erg Exp $ $Revision: 1.1 $ */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef GETOPT_H +#define GETOPT_H + +/* On most systems, these are defined in unistd.h or stdlib.h, + * but some systems have no external definitions (UTS, SunOS 4.1), + * so we provide a declaration if needed. + */ + + extern int getopt(int, char *const *, const char *); + extern char *optarg; + extern int opterr, optind, optopt; + +#endif + +#ifdef __cplusplus +} +#endif diff --git a/ControlFlowGraph/DOT/glut32.dll b/ControlFlowGraph/DOT/glut32.dll new file mode 100644 index 0000000..106646f Binary files /dev/null and b/ControlFlowGraph/DOT/glut32.dll differ diff --git a/ControlFlowGraph/DOT/gml2gv.exe b/ControlFlowGraph/DOT/gml2gv.exe new file mode 100644 index 0000000..b6e9e77 Binary files /dev/null and b/ControlFlowGraph/DOT/gml2gv.exe differ diff --git a/ControlFlowGraph/DOT/graphml2gv.exe b/ControlFlowGraph/DOT/graphml2gv.exe new file mode 100644 index 0000000..bd29d5b Binary files /dev/null and b/ControlFlowGraph/DOT/graphml2gv.exe differ diff --git a/ControlFlowGraph/DOT/gts.lib b/ControlFlowGraph/DOT/gts.lib new file mode 100644 index 0000000..011a321 Binary files /dev/null and b/ControlFlowGraph/DOT/gts.lib differ diff --git a/ControlFlowGraph/DOT/gts.tgz b/ControlFlowGraph/DOT/gts.tgz new file mode 100644 index 0000000..a801c80 Binary files /dev/null and b/ControlFlowGraph/DOT/gts.tgz differ diff --git a/ControlFlowGraph/DOT/gv2gml.exe b/ControlFlowGraph/DOT/gv2gml.exe new file mode 100644 index 0000000..b6e9e77 Binary files /dev/null and b/ControlFlowGraph/DOT/gv2gml.exe differ diff --git a/ControlFlowGraph/DOT/gvc.dll b/ControlFlowGraph/DOT/gvc.dll new file mode 100644 index 0000000..0aa7952 Binary files /dev/null and b/ControlFlowGraph/DOT/gvc.dll differ diff --git a/ControlFlowGraph/DOT/gvcolor.exe b/ControlFlowGraph/DOT/gvcolor.exe new file mode 100644 index 0000000..541673e Binary files /dev/null and b/ControlFlowGraph/DOT/gvcolor.exe differ diff --git a/ControlFlowGraph/DOT/gvedit.exe b/ControlFlowGraph/DOT/gvedit.exe new file mode 100644 index 0000000..0bc74de Binary files /dev/null and b/ControlFlowGraph/DOT/gvedit.exe differ diff --git a/ControlFlowGraph/DOT/gvgen.exe b/ControlFlowGraph/DOT/gvgen.exe new file mode 100644 index 0000000..8250e1d Binary files /dev/null and b/ControlFlowGraph/DOT/gvgen.exe differ diff --git a/ControlFlowGraph/DOT/gvmap.exe b/ControlFlowGraph/DOT/gvmap.exe new file mode 100644 index 0000000..577d8ba Binary files /dev/null and b/ControlFlowGraph/DOT/gvmap.exe differ diff --git a/ControlFlowGraph/DOT/gvpack.exe b/ControlFlowGraph/DOT/gvpack.exe new file mode 100644 index 0000000..4108fcf Binary files /dev/null and b/ControlFlowGraph/DOT/gvpack.exe differ diff --git a/ControlFlowGraph/DOT/gvplugin_core.dll b/ControlFlowGraph/DOT/gvplugin_core.dll new file mode 100644 index 0000000..c703b89 Binary files /dev/null and b/ControlFlowGraph/DOT/gvplugin_core.dll differ diff --git a/ControlFlowGraph/DOT/gvplugin_dot_layout.dll b/ControlFlowGraph/DOT/gvplugin_dot_layout.dll new file mode 100644 index 0000000..93baf33 Binary files /dev/null and b/ControlFlowGraph/DOT/gvplugin_dot_layout.dll differ diff --git a/ControlFlowGraph/DOT/gvplugin_gd.dll b/ControlFlowGraph/DOT/gvplugin_gd.dll new file mode 100644 index 0000000..71283fb Binary files /dev/null and b/ControlFlowGraph/DOT/gvplugin_gd.dll differ diff --git a/ControlFlowGraph/DOT/gvplugin_gdiplus.dll b/ControlFlowGraph/DOT/gvplugin_gdiplus.dll new file mode 100644 index 0000000..01f1532 Binary files /dev/null and b/ControlFlowGraph/DOT/gvplugin_gdiplus.dll differ diff --git a/ControlFlowGraph/DOT/gvplugin_neato_layout.dll b/ControlFlowGraph/DOT/gvplugin_neato_layout.dll new file mode 100644 index 0000000..c1d7096 Binary files /dev/null and b/ControlFlowGraph/DOT/gvplugin_neato_layout.dll differ diff --git a/ControlFlowGraph/DOT/gvplugin_pango.dll b/ControlFlowGraph/DOT/gvplugin_pango.dll new file mode 100644 index 0000000..ea3bae9 Binary files /dev/null and b/ControlFlowGraph/DOT/gvplugin_pango.dll differ diff --git a/ControlFlowGraph/DOT/gvpr.exe b/ControlFlowGraph/DOT/gvpr.exe new file mode 100644 index 0000000..6a5a7d1 Binary files /dev/null and b/ControlFlowGraph/DOT/gvpr.exe differ diff --git a/ControlFlowGraph/DOT/gxl2gv.exe b/ControlFlowGraph/DOT/gxl2gv.exe new file mode 100644 index 0000000..45eff2c Binary files /dev/null and b/ControlFlowGraph/DOT/gxl2gv.exe differ diff --git a/ControlFlowGraph/DOT/iconv.dll b/ControlFlowGraph/DOT/iconv.dll new file mode 100644 index 0000000..d4e45f2 Binary files /dev/null and b/ControlFlowGraph/DOT/iconv.dll differ diff --git a/ControlFlowGraph/DOT/intl.dll b/ControlFlowGraph/DOT/intl.dll new file mode 100644 index 0000000..393e714 Binary files /dev/null and b/ControlFlowGraph/DOT/intl.dll differ diff --git a/ControlFlowGraph/DOT/jpeg62.dll b/ControlFlowGraph/DOT/jpeg62.dll new file mode 100644 index 0000000..5f78c3a Binary files /dev/null and b/ControlFlowGraph/DOT/jpeg62.dll differ diff --git a/ControlFlowGraph/DOT/lefty.exe b/ControlFlowGraph/DOT/lefty.exe new file mode 100644 index 0000000..e6898cd Binary files /dev/null and b/ControlFlowGraph/DOT/lefty.exe differ diff --git a/ControlFlowGraph/DOT/libatk-1.0-0.dll b/ControlFlowGraph/DOT/libatk-1.0-0.dll new file mode 100644 index 0000000..c5867bf Binary files /dev/null and b/ControlFlowGraph/DOT/libatk-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libcairo-2.dll b/ControlFlowGraph/DOT/libcairo-2.dll new file mode 100644 index 0000000..bc847ac Binary files /dev/null and b/ControlFlowGraph/DOT/libcairo-2.dll differ diff --git a/ControlFlowGraph/DOT/libexpat-1.dll b/ControlFlowGraph/DOT/libexpat-1.dll new file mode 100644 index 0000000..b3cf410 Binary files /dev/null and b/ControlFlowGraph/DOT/libexpat-1.dll differ diff --git a/ControlFlowGraph/DOT/libexpat.dll b/ControlFlowGraph/DOT/libexpat.dll new file mode 100644 index 0000000..fdbc758 Binary files /dev/null and b/ControlFlowGraph/DOT/libexpat.dll differ diff --git a/ControlFlowGraph/DOT/libfontconfig-1.dll b/ControlFlowGraph/DOT/libfontconfig-1.dll new file mode 100644 index 0000000..108875a Binary files /dev/null and b/ControlFlowGraph/DOT/libfontconfig-1.dll differ diff --git a/ControlFlowGraph/DOT/libfreetype-6.dll b/ControlFlowGraph/DOT/libfreetype-6.dll new file mode 100644 index 0000000..e35edc6 Binary files /dev/null and b/ControlFlowGraph/DOT/libfreetype-6.dll differ diff --git a/ControlFlowGraph/DOT/libgdk-win32-2.0-0.dll b/ControlFlowGraph/DOT/libgdk-win32-2.0-0.dll new file mode 100644 index 0000000..dbe96a7 Binary files /dev/null and b/ControlFlowGraph/DOT/libgdk-win32-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgdk_pixbuf-2.0-0.dll b/ControlFlowGraph/DOT/libgdk_pixbuf-2.0-0.dll new file mode 100644 index 0000000..936fddc Binary files /dev/null and b/ControlFlowGraph/DOT/libgdk_pixbuf-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgdkglext-win32-1.0-0.dll b/ControlFlowGraph/DOT/libgdkglext-win32-1.0-0.dll new file mode 100644 index 0000000..ad168b7 Binary files /dev/null and b/ControlFlowGraph/DOT/libgdkglext-win32-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgio-2.0-0.dll b/ControlFlowGraph/DOT/libgio-2.0-0.dll new file mode 100644 index 0000000..67f907a Binary files /dev/null and b/ControlFlowGraph/DOT/libgio-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libglade-2.0-0.dll b/ControlFlowGraph/DOT/libglade-2.0-0.dll new file mode 100644 index 0000000..0b4d91e Binary files /dev/null and b/ControlFlowGraph/DOT/libglade-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libglib-2.0-0.dll b/ControlFlowGraph/DOT/libglib-2.0-0.dll new file mode 100644 index 0000000..fbc3de9 Binary files /dev/null and b/ControlFlowGraph/DOT/libglib-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgmodule-2.0-0.dll b/ControlFlowGraph/DOT/libgmodule-2.0-0.dll new file mode 100644 index 0000000..3d1b53c Binary files /dev/null and b/ControlFlowGraph/DOT/libgmodule-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgobject-2.0-0.dll b/ControlFlowGraph/DOT/libgobject-2.0-0.dll new file mode 100644 index 0000000..d71b0fa Binary files /dev/null and b/ControlFlowGraph/DOT/libgobject-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgthread-2.0-0.dll b/ControlFlowGraph/DOT/libgthread-2.0-0.dll new file mode 100644 index 0000000..dc34747 Binary files /dev/null and b/ControlFlowGraph/DOT/libgthread-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgtk-win32-2.0-0.dll b/ControlFlowGraph/DOT/libgtk-win32-2.0-0.dll new file mode 100644 index 0000000..c8d8f67 Binary files /dev/null and b/ControlFlowGraph/DOT/libgtk-win32-2.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libgtkglext-win32-1.0-0.dll b/ControlFlowGraph/DOT/libgtkglext-win32-1.0-0.dll new file mode 100644 index 0000000..0dee86b Binary files /dev/null and b/ControlFlowGraph/DOT/libgtkglext-win32-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libltdl-3.dll b/ControlFlowGraph/DOT/libltdl-3.dll new file mode 100644 index 0000000..68bc5fb Binary files /dev/null and b/ControlFlowGraph/DOT/libltdl-3.dll differ diff --git a/ControlFlowGraph/DOT/libpango-1.0-0.dll b/ControlFlowGraph/DOT/libpango-1.0-0.dll new file mode 100644 index 0000000..3cd752b Binary files /dev/null and b/ControlFlowGraph/DOT/libpango-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libpangocairo-1.0-0.dll b/ControlFlowGraph/DOT/libpangocairo-1.0-0.dll new file mode 100644 index 0000000..af0d5bb Binary files /dev/null and b/ControlFlowGraph/DOT/libpangocairo-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libpangoft2-1.0-0.dll b/ControlFlowGraph/DOT/libpangoft2-1.0-0.dll new file mode 100644 index 0000000..6ce24d2 Binary files /dev/null and b/ControlFlowGraph/DOT/libpangoft2-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libpangowin32-1.0-0.dll b/ControlFlowGraph/DOT/libpangowin32-1.0-0.dll new file mode 100644 index 0000000..9d3bbda Binary files /dev/null and b/ControlFlowGraph/DOT/libpangowin32-1.0-0.dll differ diff --git a/ControlFlowGraph/DOT/libpng12.dll b/ControlFlowGraph/DOT/libpng12.dll new file mode 100644 index 0000000..865bcae Binary files /dev/null and b/ControlFlowGraph/DOT/libpng12.dll differ diff --git a/ControlFlowGraph/DOT/libpng14-14.dll b/ControlFlowGraph/DOT/libpng14-14.dll new file mode 100644 index 0000000..88bb48e Binary files /dev/null and b/ControlFlowGraph/DOT/libpng14-14.dll differ diff --git a/ControlFlowGraph/DOT/librsvg-2-2.dll b/ControlFlowGraph/DOT/librsvg-2-2.dll new file mode 100644 index 0000000..6016066 Binary files /dev/null and b/ControlFlowGraph/DOT/librsvg-2-2.dll differ diff --git a/ControlFlowGraph/DOT/libxml2.dll b/ControlFlowGraph/DOT/libxml2.dll new file mode 100644 index 0000000..035e9f3 Binary files /dev/null and b/ControlFlowGraph/DOT/libxml2.dll differ diff --git a/ControlFlowGraph/DOT/lneato.exe b/ControlFlowGraph/DOT/lneato.exe new file mode 100644 index 0000000..abebaaf Binary files /dev/null and b/ControlFlowGraph/DOT/lneato.exe differ diff --git a/ControlFlowGraph/DOT/ltdl.dll b/ControlFlowGraph/DOT/ltdl.dll new file mode 100644 index 0000000..68bc5fb Binary files /dev/null and b/ControlFlowGraph/DOT/ltdl.dll differ diff --git a/ControlFlowGraph/DOT/mingle.exe b/ControlFlowGraph/DOT/mingle.exe new file mode 100644 index 0000000..dcf6f46 Binary files /dev/null and b/ControlFlowGraph/DOT/mingle.exe differ diff --git a/ControlFlowGraph/DOT/mm2gv.exe b/ControlFlowGraph/DOT/mm2gv.exe new file mode 100644 index 0000000..2267dc1 Binary files /dev/null and b/ControlFlowGraph/DOT/mm2gv.exe differ diff --git a/ControlFlowGraph/DOT/neato.exe b/ControlFlowGraph/DOT/neato.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/neato.exe differ diff --git a/ControlFlowGraph/DOT/new.dot b/ControlFlowGraph/DOT/new.dot new file mode 100644 index 0000000..fd3fb25 --- /dev/null +++ b/ControlFlowGraph/DOT/new.dot @@ -0,0 +1,4 @@ +digraph Test{ + "x = y"-> "if(true)"; + 2 -> 3; +} \ No newline at end of file diff --git a/ControlFlowGraph/DOT/new.dot.png b/ControlFlowGraph/DOT/new.dot.png new file mode 100644 index 0000000..9bb6604 Binary files /dev/null and b/ControlFlowGraph/DOT/new.dot.png differ diff --git a/ControlFlowGraph/DOT/nop.exe b/ControlFlowGraph/DOT/nop.exe new file mode 100644 index 0000000..bed641e Binary files /dev/null and b/ControlFlowGraph/DOT/nop.exe differ diff --git a/ControlFlowGraph/DOT/osage.exe b/ControlFlowGraph/DOT/osage.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/osage.exe differ diff --git a/ControlFlowGraph/DOT/patchwork.exe b/ControlFlowGraph/DOT/patchwork.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/patchwork.exe differ diff --git a/ControlFlowGraph/DOT/props.txt b/ControlFlowGraph/DOT/props.txt new file mode 100644 index 0000000..8074142 --- /dev/null +++ b/ControlFlowGraph/DOT/props.txt @@ -0,0 +1,97 @@ +"Damping", "0.99", GRAPH, NEATO +"Epsilon", "", GRAPH, NEATO +"URL", "", ANY_ELEMENT, ALL_ENGINES +"arrowhead", "normal", EDGE, ALL_ENGINES +"arrowsize", "1.0", EDGE, ALL_ENGINES +"arrowtail", "normal", EDGE, ALL_ENGINES +"bb", "", GRAPH, ALL_ENGINES +"bgcolor", "", GRAPH Or CLUSTER, ALL_ENGINES +"bottomlabel", "", NODE, ALL_ENGINES +"center", "false", GRAPH, ALL_ENGINES +"clusterrank", "local", GRAPH, DOT +"color", "black", EDGE Or NODE Or CLUSTER, ALL_ENGINES +"comment", "", EDGE Or NODE Or GRAPH, ALL_ENGINES +"compound", "false", GRAPH, DOT +"concentrate", "false", GRAPH, DOT +"constraint", "true", EDGE, DOT +"decorate", "false", EDGE, ALL_ENGINES +"dir", "forward", EDGE, ALL_ENGINES +"distortion", "0.0", NODE, ALL_ENGINES +"fillcolor", "lightgrey", NODE Or CLUSTER, ALL_ENGINES +"fixedsize", "false", NODE, ALL_ENGINES +"fontcolor", "black", EDGE Or NODE Or GRAPH Or CLUSTER, ALL_ENGINES +"fontname", "Times-Roman", EDGE Or NODE Or GRAPH Or CLUSTER, ALL_ENGINES +"fontpath", "", GRAPH, ALL_ENGINES +"fontsize", "14.0", EDGE Or NODE Or GRAPH Or CLUSTER, ALL_ENGINES +"group", "", NODE, DOT +"headURL", "", EDGE, ALL_ENGINES +"headlabel", "", EDGE, ALL_ENGINES +"headport", "center", EDGE, ALL_ENGINES +"height", "0.5", NODE, ALL_ENGINES +"label", "", EDGE Or NODE Or GRAPH Or CLUSTER, ALL_ENGINES +"labelangle", "-25.0", EDGE, ALL_ENGINES +"labeldistance", "1.0", EDGE, ALL_ENGINES +"labelfloat", "false", EDGE, ALL_ENGINES +"labelfontcolor", "black", EDGE, ALL_ENGINES +"labelfontname", "Times-Roman", EDGE, ALL_ENGINES +"labelfontsize", "11.0", EDGE, ALL_ENGINES +"labeljust", "", ANY_ELEMENT, DOT +"labelloc", "t", GRAPH Or CLUSTER, DOT +"layer", "", EDGE Or NODE, ALL_ENGINES +"layers", "", GRAPH, ALL_ENGINES +"len", "1.0", EDGE, NEATO +"lhead", "", EDGE, DOT +"lp", "", EDGE Or GRAPH Or CLUSTER, ALL_ENGINES +"ltail", "", EDGE, DOT +"margin", "", GRAPH, ALL_ENGINES +"maxiter", "", GRAPH, NEATO +"mclimit", "1.0", GRAPH, DOT +"minlen", "1", EDGE, DOT +"model", "", GRAPH, NEATO +"nodesep", "0.25", GRAPH, DOT +"normalize", "false", GRAPH, NEATO +"nslimit", "", GRAPH, DOT +"ordering", "", GRAPH, DOT +"orientation", "0.0", NODE, ALL_ENGINES +"orientation", "", GRAPH, ALL_ENGINES +"overlap", "", GRAPH, NEATO +"pack", "false", GRAPH, NEATO +"page", "", GRAPH, ALL_ENGINES +"pagedir", "", GRAPH, ALL_ENGINES +"pencolor", "black", CLUSTER, ALL_ENGINES +"peripheries", "0", NODE, ALL_ENGINES +"pin", "false", NODE, NEATO +"pos", "", EDGE Or NODE, ALL_ENGINES +"quantum", "0.0", GRAPH, ALL_ENGINES +"rank", "", SUBGRAPH, DOT +"rankdir", "", GRAPH, DOT +"ranksep", "", GRAPH, ALL_ENGINES +"ratio", "", GRAPH, ALL_ENGINES +"rects", "", NODE, ALL_ENGINES +"regular", "false", NODE, ALL_ENGINES +"remincross", "false", GRAPH, DOT +"rotate", "0", GRAPH, ALL_ENGINES +"samehead", "", EDGE, DOT +"sametail", "", EDGE, DOT +"samplepoints", "8", GRAPH, ALL_ENGINES +"searchsize", "30", GRAPH, DOT +"sep", "0.01", GRAPH, NEATO +"shape", "ellipse", NODE, ALL_ENGINES +"shapefile", "", NODE, ALL_ENGINES +"showboxes", "0", EDGE Or NODE Or GRAPH, DOT +"sides", "4", NODE, ALL_ENGINES +"size", "", GRAPH, ALL_ENGINES +"skew", "0.0", NODE, ALL_ENGINES +"splines", "false", GRAPH, NEATO +"start", "", GRAPH, ALL_ENGINES +"style", "", EDGE Or NODE, ALL_ENGINES +"stylesheet", "", GRAPH, ALL_ENGINES +"tailURL", "", EDGE, ALL_ENGINES +"taillabel", "", EDGE, ALL_ENGINES +"tailport", "center", EDGE, ALL_ENGINES +"toplabel", "", NODE, ALL_ENGINES +"vertices", "", NODE, ALL_ENGINES +"voro_margin", "0.05", GRAPH, NEATO +"weight", "", EDGE, DOT Or NEATO +"width", "0.75", NODE, ALL_ENGINES +"z", "0.0", NODE, ALL_ENGINES diff --git a/ControlFlowGraph/DOT/prune.exe b/ControlFlowGraph/DOT/prune.exe new file mode 100644 index 0000000..e0c58e8 Binary files /dev/null and b/ControlFlowGraph/DOT/prune.exe differ diff --git a/ControlFlowGraph/DOT/sccmap.exe b/ControlFlowGraph/DOT/sccmap.exe new file mode 100644 index 0000000..fa1ab49 Binary files /dev/null and b/ControlFlowGraph/DOT/sccmap.exe differ diff --git a/ControlFlowGraph/DOT/sfdp.exe b/ControlFlowGraph/DOT/sfdp.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/sfdp.exe differ diff --git a/ControlFlowGraph/DOT/smyrna.exe b/ControlFlowGraph/DOT/smyrna.exe new file mode 100644 index 0000000..ca5502c Binary files /dev/null and b/ControlFlowGraph/DOT/smyrna.exe differ diff --git a/ControlFlowGraph/DOT/tred.exe b/ControlFlowGraph/DOT/tred.exe new file mode 100644 index 0000000..9be6478 Binary files /dev/null and b/ControlFlowGraph/DOT/tred.exe differ diff --git a/ControlFlowGraph/DOT/twopi.exe b/ControlFlowGraph/DOT/twopi.exe new file mode 100644 index 0000000..01a4ea7 Binary files /dev/null and b/ControlFlowGraph/DOT/twopi.exe differ diff --git a/ControlFlowGraph/DOT/unflatten.exe b/ControlFlowGraph/DOT/unflatten.exe new file mode 100644 index 0000000..b722738 Binary files /dev/null and b/ControlFlowGraph/DOT/unflatten.exe differ diff --git a/ControlFlowGraph/DOT/vmalloc.dll b/ControlFlowGraph/DOT/vmalloc.dll new file mode 100644 index 0000000..e4696f4 Binary files /dev/null and b/ControlFlowGraph/DOT/vmalloc.dll differ diff --git a/ControlFlowGraph/DOT/zlib1.dll b/ControlFlowGraph/DOT/zlib1.dll new file mode 100644 index 0000000..1cf8a47 Binary files /dev/null and b/ControlFlowGraph/DOT/zlib1.dll differ diff --git a/ControlFlowGraph/dotFile/Test.dot.png b/ControlFlowGraph/dotFile/Test.dot.png new file mode 100644 index 0000000..492f675 Binary files /dev/null and b/ControlFlowGraph/dotFile/Test.dot.png differ diff --git a/ControlFlowGraph/dotFile/test.dot b/ControlFlowGraph/dotFile/test.dot new file mode 100644 index 0000000..8b0481e --- /dev/null +++ b/ControlFlowGraph/dotFile/test.dot @@ -0,0 +1,8 @@ +digraph { +1 -> 2; +2 -> 3; +2 -> 4; +3 -> 4; +4 -> 5; +5 -> 1; +} \ No newline at end of file diff --git a/ControlFlowGraph/lib/jgraphx.jar b/ControlFlowGraph/lib/jgraphx.jar new file mode 100644 index 0000000..6ec4744 Binary files /dev/null and b/ControlFlowGraph/lib/jgraphx.jar differ diff --git a/ControlFlowGraph/src/Node.java b/ControlFlowGraph/src/Node.java new file mode 100644 index 0000000..c55cab2 --- /dev/null +++ b/ControlFlowGraph/src/Node.java @@ -0,0 +1,53 @@ +import java.util.ArrayList; + +public class Node { + private int lineNumber; + private String lineString; + private ArrayList connectedTo; + private int type; + + + public Node(){ + lineNumber = -1; + lineString = null; + connectedTo = new ArrayList(); + type = -1; + } + + public int getLineNumber(){ + return lineNumber; + } + + public void setLineNumber(int newNumber){ + lineNumber = newNumber; + } + + public String getLineString(){ + return lineString; + } + + public void setLineString(String newString){ + lineString = newString; + } + + public ArrayList getConnectedTo(){ + return connectedTo; + } + + public void setConnectedTo(ArrayList newList){ + connectedTo = newList; + } + + public int getType(){ + return type; + } + + public void setType(int newType){ + type = newType; + } + + + public void addConnected(Node newNode){ + connectedTo.add(newNode); + } +} diff --git a/ControlFlowGraph/src/com/cfg/vizualizer/Vizualizer.java b/ControlFlowGraph/src/com/cfg/vizualizer/Vizualizer.java new file mode 100644 index 0000000..f693c48 --- /dev/null +++ b/ControlFlowGraph/src/com/cfg/vizualizer/Vizualizer.java @@ -0,0 +1,88 @@ +package com.cfg.vizualizer; + +import java.awt.Image; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; + +import javax.swing.ImageIcon; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JScrollPane; + +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NodeList; + +import com.mxgraph.examples.swing.XMLtoViz; +import com.mxgraph.util.mxUtils; +import com.mxgraph.util.mxXmlUtils; + +import att.grappa.Graph; +import att.grappa.GrappaAdapter; +import att.grappa.GrappaPanel; + +public class Vizualizer extends JFrame{ + + public Vizualizer() throws IOException, InterruptedException{ + + // readXMLfile -> parseXML -> store in doc + String filename = "xml\\Nodes.xml"; + Document doc = mxXmlUtils.parseXml(mxUtils.readFile(filename)); + + + + Element cfg = (Element) doc.getDocumentElement(); + + NodeList graphList = cfg.getElementsByTagName("node"); + StringBuilder yeah = new StringBuilder(); + + //System.out.println("digraph { "); + yeah.append("digraph { \n"); + for(int i = 0; i < graphList.getLength(); i++){ + Element currentNode = (Element)graphList.item(i); + NodeList id = currentNode.getElementsByTagName("id"); + NodeList next =currentNode.getElementsByTagName("nextNode"); + + for(int j = 0; j < next.getLength(); j++){ + String src = id.item(0).getTextContent(); + String dest = next.item(j).getTextContent(); + String connection = src + " -> " + dest + ";"; + //System.out.println(src + "->" + dest +";"); + yeah.append(connection + "\n"); + } + + } + yeah.append("}"); + //System.out.println("}"); + System.out.println(yeah.toString()); + + File file = new File("dotFile\\test.dot"); + BufferedWriter writer = new BufferedWriter(new FileWriter(file)); + //writer.write(yeah.toString()); + writer.append(yeah.toString()); + writer.close(); + + Runtime rt = Runtime.getRuntime(); + String[] args = {"DOT\\dot.exe", "-Tpng", "-O", "dotFile\\test.dot"}; + Process p = rt.exec(args); + p.waitFor(); + add(new JLabel(new ImageIcon("dotFile\\test.dot.png"))); + + } + + + public static void main(String[] args) throws IOException, InterruptedException{ + + Vizualizer frame = new Vizualizer(); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + frame.setSize(800, 800); + frame.setVisible(true); + + + } + + + +} diff --git a/ControlFlowGraph/xml/Nodes.xml b/ControlFlowGraph/xml/Nodes.xml new file mode 100644 index 0000000..bb57b9c --- /dev/null +++ b/ControlFlowGraph/xml/Nodes.xml @@ -0,0 +1,35 @@ + + + + 1 + 7 + int y = 7; + 2 + + + 2 + 8 + int z = 7; + 3 + 4 + + + 3 + 10 + int n = 7; + 4 + + + 4 + 10 + int n = 7; + 5 + + + 5 + 10 + int n = 7; + 1 + + + \ No newline at end of file