Package org.checkerframework.dataflow.cfg.node

Examples of org.checkerframework.dataflow.cfg.node.LocalVariableNode


    NullnessValue equalBranchValue = leftVal.greatestLowerBound(rightVal);
    LocalVariableUpdates equalBranchUpdates = equalTo ? thenUpdates : elseUpdates;
    LocalVariableUpdates notEqualBranchUpdates = equalTo ? elseUpdates : thenUpdates;

    if (leftNode instanceof LocalVariableNode) {
      LocalVariableNode localVar = (LocalVariableNode) leftNode;
      equalBranchUpdates.set(localVar, equalBranchValue);
      notEqualBranchUpdates.set(
          localVar, leftVal.greatestLowerBound(rightVal.deducedValueWhenNotEqual()));
    }

    if (rightNode instanceof LocalVariableNode) {
      LocalVariableNode localVar = (LocalVariableNode) rightNode;
      equalBranchUpdates.set(localVar, equalBranchValue);
      notEqualBranchUpdates.set(
          localVar, rightVal.greatestLowerBound(leftVal.deducedValueWhenNotEqual()));
    }
  }
View Full Code Here

TOP

Related Classes of org.checkerframework.dataflow.cfg.node.LocalVariableNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.