Changeset 4477 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
- Timestamp:
- 09/23/10 17:12:30 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
-
Property
svn:mergeinfo
set to
/branches/DataAnalysis merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis merged: 4459,4462
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
r4398 r4477 44 44 // macro expand (initially no argument trees) 45 45 var macroExpandedTree = MacroExpand(clone, clone.SubTrees[0], new List<SymbolicExpressionTreeNode>()); 46 return new SymbolicExpressionTree(GetSimplifiedTree(macroExpandedTree)); 46 SymbolicExpressionTreeNode rootNode = (new ProgramRootSymbol()).CreateTreeNode(); 47 rootNode.AddSubTree(GetSimplifiedTree(macroExpandedTree)); 48 return new SymbolicExpressionTree(rootNode); 47 49 } 48 50 … … 63 65 // return the correct argument sub-tree (already macro-expanded) 64 66 return (SymbolicExpressionTreeNode)argumentTrees[argSym.ArgumentIndex].Clone(); 65 } else if (node.Symbol is StartSymbol) {66 return MacroExpand(root, subtrees[0], argumentTrees);67 67 } else { 68 68 // recursive application
Note: See TracChangeset
for help on using the changeset viewer.