Hello,
I noticed a potential bug with the hasVar() method for level 1 nodes. Here is a code snipped where hasVar() on level 1 returns false but if I transform the same node to a level 0 node and check if it contains the same variable it returns true:
Texpr1VarNode x = new Texpr1VarNode("x");
Environment environment = new Environment(new String[]{"x"},new String[]{});
Preconditions.checkArgument(!x.hasVar("x")); \\ I would expect true for x.hasVar("x")
Texpr0Node xZero = x.toTexpr0Node(environment);
Preconditions.checkArgument(xZero.hasDim(environment.dimOfVar("x")));
Thanks!
Hello,
I noticed a potential bug with the hasVar() method for level 1 nodes. Here is a code snipped where hasVar() on level 1 returns false but if I transform the same node to a level 0 node and check if it contains the same variable it returns true:
Texpr1VarNode x = new Texpr1VarNode("x");Environment environment = new Environment(new String[]{"x"},new String[]{});Preconditions.checkArgument(!x.hasVar("x")); \\ I would expect true for x.hasVar("x")Texpr0Node xZero = x.toTexpr0Node(environment);Preconditions.checkArgument(xZero.hasDim(environment.dimOfVar("x")));Thanks!