|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectPpt
PptSlice
PptSliceEquality
public class PptSliceEquality
Holds Equality invariants.
| Nested Class Summary | |
|---|---|
static class |
PptSliceEquality.EqualityComparator
Order Equality invariants by the indices of leaders. |
| Nested classes/interfaces inherited from class PptSlice |
|---|
PptSlice.ArityPptnameComparator, PptSlice.ArityVarnameComparator |
| Nested classes/interfaces inherited from class Ppt |
|---|
Ppt.NameComparator |
| Field Summary | |
|---|---|
static Logger |
debug
|
static Logger |
debugGlobal
|
static boolean |
dkconfig_set_per_var
If true, create one equality set for each variable. |
| Fields inherited from class PptSlice |
|---|
debugFlow, debugGeneral, debugGuarding, invs, lineSep, parent |
| Fields inherited from class Ppt |
|---|
emptyInvList, var_infos |
| Method Summary | |
|---|---|
List<Invariant> |
add(ValueTuple vt,
int count)
Returns a List of Invariants that have been weakened/destroyed. |
void |
addInvariant(Invariant inv)
|
int |
arity()
|
List<Invariant> |
copyInvsFromLeader(VarInfo leader,
List<VarInfo> newVis)
Instantiate invariants from each inv's leader. |
List<Equality> |
createEqualityInvs(List<VarInfo> vis,
Equality leader)
Create a List of Equality invariants based on the VarInfos in vis. |
VarInfo[] |
get_leaders_sorted()
Returns an array of all of the leaders sorted by varinfo_index for this equality view. |
void |
instantiate_from_pairs(Set<VarInfo.Pair> eset)
Instantiate the full equality sets from a set of variable pairs where each member of a pair is equal to the other. |
int |
num_mod_samples()
|
int |
num_samples()
Return an approximation of the number of samples seen on this slice |
int |
num_values()
Return an approximation of the number of distinct values seen on this slice |
void |
repCheck()
Check the internals of this slice. |
String |
toString()
For debugging only. |
| 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, removeInvariant, removeInvariants, trimToSize, usesVar, usesVar, usesVarDerived |
| Methods inherited from class Ppt |
|---|
containsVar, find_var_by_name, indexOf, varNames, varNames |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean dkconfig_set_per_var
public static final Logger debug
public static final Logger debugGlobal
| Method Detail |
|---|
public final int arity()
arity in class PptSlicepublic void addInvariant(Invariant inv)
addInvariant in class PptSlicepublic int num_samples()
PptSlice
num_samples in class PptSlicepublic int num_mod_samples()
public int num_values()
PptSlice
num_values in class PptSlicepublic void instantiate_from_pairs(Set<VarInfo.Pair> eset)
public List<Invariant> add(ValueTuple vt,
int count)
public List<Equality> createEqualityInvs(List<VarInfo> vis,
Equality leader)
vis - The VarInfos that were different from leaderleader - The original leader of VarInfos
public List<Invariant> copyInvsFromLeader(VarInfo leader,
List<VarInfo> newVis)
leader - the old leadernewVis - a List of new VarInfos that used to be equal to
leader. Actually, it's the list of canonical that were equal to
leader, representing their own newly-created equality sets.
post: Adds the newly instantiated invariants and slices to
this.parent.public void repCheck()
PptSlice
repCheck in class PptSlicepublic String toString()
PptSlice
toString in class PptSlicepublic VarInfo[] get_leaders_sorted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||