daikon
Class PptSlice0
Object
Ppt
PptSlice
PptSlice0
- All Implemented Interfaces:
- Serializable
public class PptSlice0
- extends PptSlice
- See Also:
- Serialized Form
| Methods inherited from class PptSlice |
allPrestate, contains_inv_exact, contains_inv, containsOnlyGuardingPredicates, copy_new_invs, find_inv_by_class, find_inv_exact, is_inv_true, log, name, processOmissions, remove_falsified, repCheck, toString, trimToSize, usesVar, usesVar, usesVarDerived |
arity
public final int arity()
- Specified by:
arity in class PptSlice
makeFakePrestate
public static PptSlice makeFakePrestate(PptSlice sliceTemplate)
checkRep
public void checkRep()
addInvariant
public void addInvariant(Invariant inv)
- The invariant is typically an Implication; but PptSlice0 can contain
other joiners than implications, such as "and" or "or". That feature
isn't used as of November 2003.
- Specified by:
addInvariant in class PptSlice
removeInvariant
public void removeInvariant(Invariant inv)
- Description copied from class:
PptSlice
- This method actually removes the invariant from its PptSlice.
- Overrides:
removeInvariant in class PptSlice
removeInvariants
public void removeInvariants(List<Invariant> to_remove)
- Overrides:
removeInvariants in class PptSlice
hasImplication
public boolean hasImplication(Implication imp)
num_samples
public int num_samples()
- Description copied from class:
PptSlice
- Return an approximation of the number of samples seen on this slice
- Specified by:
num_samples in class PptSlice
num_mod_samples
public int num_mod_samples()
num_values
public int num_values()
- Description copied from class:
PptSlice
- Return an approximation of the number of distinct values seen on
this slice
- Specified by:
num_values in class PptSlice
add
public List<Invariant> add(ValueTuple vt,
int count)
- Description copied from class:
PptSlice
- This procedure accepts a sample (a ValueTuple), extracts the values
from it, casts them to the proper types, and passes them along to the
invariants proper. (The invariants accept typed values rather than a
ValueTuple that encapsulates objects of any type whatever.)
- Returns:
- a List of Invariants that weakened due to the processing.