- Timestamp:
- 04/19/10 10:18:15 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Instruction.cs
r3376 r3409 35 35 Div, 36 36 Call, 37 Arg, 37 38 Values, 38 39 Dynamic -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTree.cs
r3376 r3409 47 47 } 48 48 49 public SymbolicExpressionTreeNode ResultProducingExpression {50 get { return root.SubTrees[0].SubTrees[0]; }51 }52 53 49 public int Size { 54 50 get { -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeCompiler.cs
r3376 r3409 37 37 {typeof(Division), CodeSymbol.Div}, 38 38 {typeof(InvokeFunction), CodeSymbol.Call}, 39 {typeof(Argument), CodeSymbol.Arg}, 39 40 //{typeof(Values), CodeSymbol.Values} 40 41 }; … … 45 46 entryPoint.Clear(); 46 47 // compile main body 47 code.AddRange(Compile(tree.R esultProducingExpression));48 code.AddRange(Compile(tree.Root.SubTrees[0])); 48 49 // compile branches 49 50 var functionBranches = from node in tree.IterateNodesPrefix() … … 67 68 var invokeNode = (InvokeFunctionTreeNode)node; 68 69 instr.iArg0 = entryPoint[invokeNode.Symbol.FunctionName]; 70 } else if (instr.symbol == CodeSymbol.Arg) { 71 var argNode = (ArgumentTreeNode)node; 72 instr.iArg0 = (short)argNode.Symbol.ArgumentIndex; 69 73 } 70 74 } else {
Note: See TracChangeset
for help on using the changeset viewer.