|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectInvariant
UnaryInvariant
SingleSequence
SingleFloatSequence
CommonFloatSequence
public class CommonFloatSequence
Represents sequences of double values that contain a common subset. Prints as {e1, e2, e3, ...} subset of x[].
| 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. |
static boolean |
dkconfig_hashcode_seqs
Boolean. |
| Fields inherited from class SingleSequence |
|---|
dkconfig_SeqIndexDisableAll |
| Constructor Summary | |
|---|---|
protected |
CommonFloatSequence(PptSlice ppt)
|
| Method Summary | |
|---|---|
InvariantStatus |
add_modified(double[] a,
int count)
This method need not check for falsified; that is done by the caller. |
InvariantStatus |
check_modified(double[] a,
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 |
String |
format_daikon()
|
String |
format_using(OutputFormat format)
|
static CommonFloatSequence |
get_proto()
Returns the prototype invariant for CommonFloatSequence |
protected CommonFloatSequence |
instantiate_dyn(PptSlice slice)
instantiate an invariant on the specified slice |
boolean |
instantiate_ok(VarInfo[] vis)
Sequences of hashcode values won't be consistent and are thus not printed by default. |
boolean |
isSameFormula(Invariant other)
|
String |
repr()
For printing invariants, there are two interfaces: repr gives a low-level representation (repr_prop also prints the confidence), and format gives a high-level representation for user output. |
| Methods inherited from class SingleFloatSequence |
|---|
add_unmodified, add, check_unmodified, check, valid_types |
| Methods inherited from class SingleSequence |
|---|
var |
| Methods inherited from class UnaryInvariant |
|---|
resurrect_done |
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean dkconfig_enabled
public static boolean dkconfig_hashcode_seqs
| Constructor Detail |
|---|
protected CommonFloatSequence(PptSlice ppt)
| Method Detail |
|---|
public static CommonFloatSequence get_proto()
public boolean enabled()
enabled in class Invariantpublic boolean instantiate_ok(VarInfo[] vis)
instantiate_ok in class InvariantInvariant.valid_types(VarInfo[])protected CommonFloatSequence instantiate_dyn(PptSlice slice)
instantiate_dyn in class Invariantpublic String repr()
Invariant
repr in class Invariantpublic String format_using(OutputFormat format)
format_using in class Invariantpublic String format_daikon()
public InvariantStatus check_modified(double[] a,
int count)
check_modified in class SingleFloatSequence
public InvariantStatus add_modified(double[] a,
int count)
SingleFloatSequence
add_modified in class SingleFloatSequenceprotected double computeConfidence()
Invariant
computeConfidence in class InvariantInvariant.getConfidence()public boolean isSameFormula(Invariant other)
isSameFormula in class Invariant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||