- Timestamp:
- 05/10/10 16:35:17 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Compiler/SymbolicExpressionTreeCompiler.cs
r3462 r3747 68 68 instr.nArguments = (byte)node.SubTrees.Count; 69 69 instr.opCode = opCodeMapper(node); 70 if ( branch.Symbol is Argument) {70 if (node.Symbol is Argument) { 71 71 var argNode = (ArgumentTreeNode)node; 72 72 instr.iArg0 = (ushort)argNode.Symbol.ArgumentIndex; -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SimpleArithmeticExpressionInterpreter.cs
r3733 r3747 81 81 var variableTreeNode = instr.dynamicNode as VariableTreeNode; 82 82 instr.iArg0 = (ushort)dataset.GetVariableIndex(variableTreeNode.VariableName); 83 } 83 } 84 84 return instr; 85 85 } … … 138 138 for (int i = 0; i < currentInstr.nArguments; i++) { 139 139 argumentStack[argStackPointer + currentInstr.nArguments - i] = Evaluate(); 140 argStackPointer++;141 140 } 141 argStackPointer += currentInstr.nArguments; 142 142 143 143 // save the pc
Note: See TracChangeset
for help on using the changeset viewer.