Ignore:
Timestamp:
01/04/17 14:49:12 (6 years ago)
Author:
gkronber
Message:

#2650: fixed bugs in simplifier (causing multiple references to the same tree nodes within a tree)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/SymbolicExpressionImporter.cs

    r14539 r14540  
    237237      var t = (BinaryFactorVariableTreeNode)binFactorVar.CreateTreeNode();
    238238      var varNameTok = tokens.Dequeue();
    239       Debug.Assert(tok.Symbol == TokenSymbol.SYMB);
     239      Debug.Assert(varNameTok.Symbol == TokenSymbol.SYMB);
    240240      t.VariableName = varNameTok.StringValue;
    241241
    242242      var varValTok = tokens.Dequeue();
    243       Debug.Assert(tok.Symbol == TokenSymbol.SYMB);
     243      Debug.Assert(varValTok.Symbol == TokenSymbol.SYMB);
    244244      t.VariableValue = varValTok.StringValue;
    245245
    246246      var weightTok = tokens.Dequeue();
    247       Debug.Assert(tok.Symbol == TokenSymbol.NUMBER);
     247      Debug.Assert(weightTok.Symbol == TokenSymbol.NUMBER);
    248248      t.Weight = weightTok.DoubleValue;
    249249
Note: See TracChangeset for help on using the changeset viewer.