|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectInvariant
BinaryInvariant
TwoSequenceFloat
SubSequenceFloat
public class SubSequenceFloat
Represents two sequences of double values where one sequence is a subsequence of the other. Prints as x[] is a subsequence of y[].
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Invariant |
|---|
Invariant.ClassVarnameComparator, Invariant.ClassVarnameFormulaComparator, Invariant.InvariantComparatorForPrinting, Invariant.Match |
| Field Summary | |
|---|---|
static boolean |
dkconfig_enabled
Boolean. |
| Fields inherited from class TwoSequenceFloat |
|---|
swap |
| Constructor Summary | |
|---|---|
protected |
SubSequenceFloat(PptSlice ppt)
|
| Method Summary | |
|---|---|
InvariantStatus |
add_modified(double[] a1,
double[] a2,
int count)
Default implementation simply calls check. |
InvariantStatus |
check_modified(double[] a1,
double[] a2,
int count)
|
protected double |
computeConfidence()
This method computes the confidence that this invariant occurred by chance. |
boolean |
enabled()
returns whether or not this invariant is enabled |
static SubSequenceFloat |
find(PptSlice ppt)
|
String |
format_daikon()
|
String |
format_simplify()
|
String |
format_using(OutputFormat format)
|
NISuppressionSet |
get_ni_suppressions()
returns the ni-suppressions for SubSequence |
static SubSequenceFloat |
get_proto()
Returns the prototype invariant for SubSequenceFloat |
protected SubSequenceFloat |
instantiate_dyn(PptSlice slice)
instantiates the invariant on the specified slice |
DiscardInfo |
isObviousDynamically(VarInfo[] vis)
Return non-null if this invariant is necessarily true from a fact that can be determined dynamically (after checking data) -- for the given varInfos rather than the varInfos of this. |
DiscardInfo |
isObviousStatically(VarInfo[] vis)
Return true if this invariant is necessarily true from a fact that can be determined statically -- for the given varInfos rather than the varInfos of this. |
static DiscardInfo |
isObviousSubSequence(Invariant inv,
VarInfo subvar,
VarInfo supervar)
|
static Pair<DiscardCode,String> |
isObviousSubSequence(VarInfo subvar,
VarInfo supervar)
|
static boolean |
isObviousSubSequenceDynamically(Invariant inv,
VarInfo subvar,
VarInfo supervar)
Returns true if the two original variables are related in a way that makes subsequence or subset detection not informative. |
boolean |
isSameFormula(Invariant inv)
Return true if both invariants are the same class and the order of the variables (swap) is the same. |
protected Invariant |
resurrect_done_swapped()
Swaps the variables by inverting the state of swap. |
| Methods inherited from class TwoSequenceFloat |
|---|
add_unmodified, add, check_unmodified, check, get_swap, repr, resurrect_done_unswapped, resurrect_done, valid_types, var1, var1, var2, var2 |
| Methods inherited from class BinaryInvariant |
|---|
add_unordered, check_unordered, find, is_symmetric |
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean dkconfig_enabled
| Constructor Detail |
|---|
protected SubSequenceFloat(PptSlice ppt)
| Method Detail |
|---|
public static SubSequenceFloat get_proto()
public boolean enabled()
enabled in class Invariantprotected SubSequenceFloat instantiate_dyn(PptSlice slice)
instantiate_dyn in class Invariantprotected Invariant resurrect_done_swapped()
TwoSequenceFloat
resurrect_done_swapped in class TwoSequenceFloatpublic String format_using(OutputFormat format)
format_using in class Invariantpublic String format_daikon()
public String format_simplify()
public InvariantStatus check_modified(double[] a1,
double[] a2,
int count)
check_modified in class TwoSequenceFloat
public InvariantStatus add_modified(double[] a1,
double[] a2,
int count)
TwoSequenceFloat
add_modified in class TwoSequenceFloatprotected double computeConfidence()
Invariant
computeConfidence in class TwoSequenceFloatInvariant.getConfidence()
public static DiscardInfo isObviousSubSequence(Invariant inv,
VarInfo subvar,
VarInfo supervar)
public static Pair<DiscardCode,String> isObviousSubSequence(VarInfo subvar,
VarInfo supervar)
public static SubSequenceFloat find(PptSlice ppt)
public DiscardInfo isObviousStatically(VarInfo[] vis)
Invariant
isObviousStatically in class Invariantvis - The VarInfos this invariant is obvious over. The
position and data type of the variables is the *same* as that of
this.ppt.var_infos.public DiscardInfo isObviousDynamically(VarInfo[] vis)
Invariant
isObviousDynamically in class Invariant
public static boolean isObviousSubSequenceDynamically(Invariant inv,
VarInfo subvar,
VarInfo supervar)
public boolean isSameFormula(Invariant inv)
TwoSequenceFloat
isSameFormula in class TwoSequenceFloatpublic NISuppressionSet get_ni_suppressions()
get_ni_suppressions in class Invariant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||