********************************************************************************************
******************************** REVISION HISTORY ******************************************
********************************************************************************************
Revision: 38
Date: 10:36:48 PM, Thursday, November 06, 2008
Message:
TedVars holds the name of a variable and its value.
----
Revision: 37
Date: 10:42:40 PM, Thursday, October 30, 2008
Message:
Class Mark is a template class now - so multiple classes can use it.
Improved documentation of the code with doxygen.
----
Revision: 36
Date: 11:17:10 PM, Saturday, October 25, 2008
Message:
Order of includes were modified producing errors, fixed.
----
Revision: 35
Date: 10:25:12 PM, Saturday, October 25, 2008
Message:
Working on the use of namespaces. It doesn't compile yet
----
Revision: 34
Date: 10:02:42 PM, Saturday, October 25, 2008
Message:
Adding Mark property for easy tree traversals
----
Revision: 33
Date: 2:08:12 PM, Saturday, October 25, 2008
Message:
command remapShifter added, now we can automatically generate the shifter representation from a DFG graph
----
Revision: 32
Date: 9:27:08 PM, Wednesday, October 22, 2008
Message:
Conforming functions' name to lowerCaseActionVerb
----
Revision: 31
Date: 10:46:24 PM, Tuesday, October 21, 2008
Message:
The nodes in the DFG use a enumaration type rather than a char value to indetify its node type
----
Revision: 30
Date: 12:55:49 AM, Saturday, October 18, 2008
Message:
Improved help for each command on the shell. Added "man" command. Added shifter operator "<<" or "@" for the polynomials; 
at the moment the shift only accept at its right hand side an integer value.
----
REVISION: 29
Date: 12:20:06 AM, Wednesday, October 15, 2008
Message:
util functions use const char *, instead of char* whenever possible
----
REVISION: 28
Date: 11:27:04 PM, Tuesday, October 14, 2008
Message:
Cosmetic changes on the indentation of the source files. Some compiler pragmas for MSC_VER has been included to avoid warning on deprecated functions strncpy and strtock 
----
REVISION: 27
Date: 12:09:46 AM, Tuesday, October 14, 2008
Message:
Enhanced checking of parsed expressions in the polynomial. Now it detects if an expression is missing an operator, if the brackets are properly open and close, etc.
----
REVISION: 26
Date: 6:00:23 PM, Monday, October 13, 2008
Message:
Errors are handled through exceptions, the command time was added.
----
REVISION: 25
Date: 6:24:33 PM, Saturday, October 11, 2008
Message:
Improved shell, now it accepts a word as an option not just one letter. The help command is more descriptive.
----
REVISION: 24
Date: 9:55:33 PM, Monday, September 29, 2008
Message:
The re-size of the dot fonts were missing the "
----
REVISION: 23
Date: 8:59:56 PM, Monday, September 29, 2008
Message:
A lazy declaration of a variable, is jumped by a goto instruction. This turns as a compilation error. If we use a goto instruction we need to declare the variables used in the method before the usage of the goto instruction.
We have increase the size of the text inside the TED dot graph. 
----
REVISION: 22
Date: 3:48:31 AM, Wednesday, June 11, 2008
Message:
Definition of a variable in cmdPrint could be jumped by the usage label.
----
REVISION: 21
Date: 3:42:52 AM, Wednesday, June 11, 2008
Message:
bug reported by MC in cheby_dfactor has been fixed.
 - print -e|-f refers to factorized variables DF when available
 - print -s shows the latency of the DFG
 - command flatten added to merge poly f=a*b and poly a=c+d , as one poly f=(c+d)*b
 - WriteCDFG outputs Co_value when value is negative, and Covalue if value is positive
 - read -c option takes into account the new notation of Co_value for negative values
 - TedMan::DFactorize algorithm doesn't send to the top the variables just grouped, to enable to factorize as much as possible under a given order; before trying out others. This is also the behavior of DFG algorithm used by print -e.
----
REVISION: 20
Date: 12:22:24 AM, Thursday, June 05, 2008
Message:
bug reported by MC in cheby_sub_error has been fixed. Main problem was that we were not doing a greedy substitution but only substituting the first encounter of the expression; if there were more occurrences of the expression, we were stopping at the first one.
bug found after doing the substitution the number of variables were doubling. The problem was that we were using GetVars(const char*) and as reported in revision 9 this is risky. The pointers were left dangling after deletion of _pTedMan; so when we were calling RegisterVar we were registering garbage. And while parsing the poly, we were registering the correct variables, this double registration was incresing the size of the registered variables.
The factorizations counter now resets to 1 after we purge the ted.
The method GetCandidatelist has been upgraded by Jeremie for performance.
----
REVISION: 19
Date: 9:45:45 AM, Tuesday, May 20, 2008
Message:
WriteCDFG bug fixed; some variables were not being printed and some operations had mistakenly equal operands. The problem was that both left and right operands were pointing to the left operand only. 
This explain why the operands of the right were equal to the operands of the left; but why does the above also solves the missing variable definitions?
----
REVISION: 18
Date: 12:19:25 AM, Tuesday, May 20, 2008
Message:
Problems in the _MSC_VER scandir method have been resolved (tested on windows vista32 only)
----
REVISION: 17
Date: 12:16:17 AM, Tuesday, May 20, 2008
Message:
dfactor substitutions start with "DF" instead of "S" 
----
REVISION: 16
Date: 12:06:21 AM, Tuesday, May 20, 2008
Message:
Update made by Jeremie
command lcse added
methods searchDecompNode, searchmpyclass, searchadditiveNode, lcse, maxdcse added in Tedman
----
REVISION: 15
Date: 1:11:49 AM, Wednesday, May 14, 2008
Message:
flip -e has been corrected to always return at least the best result obtained with flip (no option)
----
REVISION: 14
Date: 12:56:18 AM, Wednesday, May 14, 2008
Message:
Bug in DfgMan::WriteCDfg has been fixed.
The command flip now does reversing of variables by default, previous behavior has been placed into flip -e
Better help comments for some commands have been done.
----
REVISION: 13
Date: 1:23:26 AM, Monday, May 12, 2008
Message:
any polynomial now can generate a CDFG through a DfgMan command WriteCDFG
flip command added so the best order of a grouped variable is found
----
REVISION: 12
Date: 2:01:59 PM, Monday, April 28, 2008
Message:
Fixing case in filename completer - which prevents compilation on unix systems
----
REVISION: 11
Date: 8:09:48 AM, Monday, April 28, 2008
Message:
fixing help and quit command with tab completion, compare only the first 4 letters
----
REVISION: 10
Date: 5:21:25 PM, Friday, April 25, 2008
Message:
Adding completer to the shell command (for compilers with readline - all gcc based)
----
REVISION: 9
Date: 10:15:51 AM, Friday, April 25, 2008
Message:
BUG fixed from "for loops" 
BUG fixed from GetVars(const char*) which deleted var names upon deletion of the ted manager; a new safer method added GetVars(string) which vars are persistent.
UNPORTABLE code fixed:
   _mNodes[v] = pair<unsigned int, set <TedNode *> *>(_mNodes.size(), sNodes); 
lets say that _mNodes is empty; therefore _mNodes.size() is 0 - not true for all standard libraries as the operator [] at failure to find the element with key v (as _mNodes is still empty) will insert a raw member; in this case the evaluation of _mNodes.size() will give 1.
Renaming:
Amg* should not have been renamed to Cdfg* as noted by prof Ciesielski, but to Dfg* 
Fixes above annotated solve the crash reported by prof Ciesielski on quartic_print_problem. It doesn't address the problem of the discrepance between the graph and the print -e command - the latter are other issues.
----
REVISION: 8
Date: 9:42:41 AM, Thursday, April 24, 2008
Message:
CodeBlock project files added
----
REVISION: 7
Date: 6:57:12 AM, Thursday, April 24, 2008
Message:
visual studio project reflects the naming convention cdfg rather than amg
----
REVISION: 6
Date: 6:55:44 AM, Thursday, April 24, 2008
Message:
NASTY BUGS found.. "for loops" in maps and sets were erasing elements - this invalidates their own iterators, so next iterator to be fetch is not deterministic - although the problem doesn't show on linux rigth away, if we run the same code in windows it will crash; the reason linux seems to reuse the free memory when needed while windows goes ahead and reuses it earlier. methods SetKid change for ReplaceKid.
Also some code was reusing macro expansion FOREACH_EKID_OF_NODE twice, the problem being that the macro defines a variable within so the inner loop was overwriting the outer loop variable; and somewhere alone those lines we were removing elements on the for loop which is bad
The actual code, compiles and runs on linux, cygwin and msys - still fails on visual as not all the ripples from those bugs have been successfully fix.
----
REVISION: 5
Date: 4:00:57 PM, Wednesday, April 23, 2008
Message:
renaming AMG files, classes and functions to CDFG as to reflect a better naming convention
----
REVISION: 4
Date: 3:08:30 PM, Wednesday, April 23, 2008
Message:
Adds vs2008 solution and project files
List of major changes:
AmgMan.cc set<>::iterator changed to multiset<>::iterator 
Amgnode.cc bInit==true changed to bInit=true
           this->_type=='-' changed to this->_type='-'
main.c handles case when CURDATE is not defined
Node.h _arrtime and _reqTime are int instead of unsigned int
shel.cc handles case when readline is not defined
system.cc defines getTime and scandir for MSC_VER and MING32
----
REVISION: 3
Date: 9:38:10 PM, Monday, April 21, 2008
Message:
Factorization upgrades made by Jeremie
----
REVISION: 2
Date: 7:26:40 PM, Monday, April 21, 2008
Message:
Modifications to allow group ordering
----
REVISION: 1
Date: 9:21:31 AM, Wednesday, April 16, 2008
Message:
Initial import as of last version work by Qian on his PhD thesis
----
