- Timestamp:
- 09/21/10 14:18:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
r4389 r4462 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.