Changeset 15060 for stable/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/SymbolicExpressionGenerator.cs
- Timestamp:
- 06/25/17 15:59:39 (7 years ago)
- Location:
- stable
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13645,13648,13650-13652,13654,13657-13659,13661-13662,13669,13708,14142
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.DataAnalysis merged: 13645,13650-13652,13657-13659,13661-13662,13669,14142
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/SymbolicExpressionGenerator.cs
r13645 r15060 2 2 /* HeuristicLab 3 3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * and the BEACON Center for the Study of Evolution in Action.5 4 * 6 5 * This file is part of HeuristicLab. … … 114 113 break; 115 114 case OpCodes.Add: { 116 var t1 = stack[topOfStack ];117 var t2 = stack[topOfStack - 1];115 var t1 = stack[topOfStack - 1]; 116 var t2 = stack[topOfStack]; 118 117 topOfStack--; 119 if (t 2.Symbol is Addition) {120 t 2.AddSubtree(t1);118 if (t1.Symbol is Addition) { 119 t1.AddSubtree(t2); 121 120 } else { 122 121 var addNode = addSy.CreateTreeNode(); … … 128 127 } 129 128 case OpCodes.Mul: { 130 var t1 = stack[topOfStack ];131 var t2 = stack[topOfStack - 1];129 var t1 = stack[topOfStack - 1]; 130 var t2 = stack[topOfStack]; 132 131 topOfStack--; 133 if (t 2.Symbol is Multiplication) {134 t 2.AddSubtree(t1);132 if (t1.Symbol is Multiplication) { 133 t1.AddSubtree(t2); 135 134 } else { 136 135 var mulNode = mulSy.CreateTreeNode(); … … 177 176 s = 0; 178 177 if (op == OpCodes.LoadVar) { 179 s = (short)(( (short)code[pc] << 8) | (short)code[pc + 1]);178 s = (short)((code[pc] << 8) | code[pc + 1]); 180 179 pc += 2; 181 180 }
Note: See TracChangeset
for help on using the changeset viewer.