Package daikon.diff

Class XorInvariantsVisitor

  • All Implemented Interfaces:
    Visitor

    public class XorInvariantsVisitor
    extends PrintDifferingInvariantsVisitor
    XorInvariantsVisitor is a visitor that performs a standard Diff on two PptMaps, that is, finds the set of Invariants in the XOR set of two PptMaps. However, while those XOR Invariants were the end product of standard diff, this visitor is useful when the XOR set is a means to an end, since you get back a data structure containing the XOR set.

    Currently, this visitor actually modifies the first of the two PptMaps. This might be an undesirable design call, but creating a PptMap from scratch is difficult given the constraining creational pattern in place.