|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectInvariant
BinaryInvariant
TwoFloat
FloatLessThan
public final class FloatLessThan
Represents an invariant of "<" between two double scalars.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Invariant |
|---|
Invariant.ClassVarnameComparator, Invariant.ClassVarnameFormulaComparator, Invariant.InvariantComparatorForPrinting, Invariant.Match |
| Field Summary | |
|---|---|
static Logger |
debug
|
static boolean |
dkconfig_enabled
Boolean. |
| Fields inherited from class TwoFloat |
|---|
swap |
| Constructor Summary | |
|---|---|
protected |
FloatLessThan()
|
protected |
FloatLessThan(PptSlice ppt)
|
| Method Summary | |
|---|---|
InvariantStatus |
add_modified(double v1,
double v2,
int count)
Default implementation simply calls check. |
InvariantStatus |
add(Object v1,
Object v2,
int mod_index,
int count)
|
InvariantStatus |
check_modified(double v1,
double v2,
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 |
double |
eq_confidence()
|
static FloatLessThan |
find(PptSlice ppt)
|
String |
format_using(OutputFormat format)
|
NISuppressionSet |
get_ni_suppressions()
Returns the non-instantiating suppressions for this invariant. |
static FloatLessThan |
get_proto()
Returns the prototype invariant for FloatLessThan |
protected FloatLessThan |
instantiate_dyn(PptSlice slice)
Instantiate an invariant on the specified slice |
boolean |
instantiate_ok(VarInfo[] vis)
Returns whether or not the specified var types are valid for FloatLessThan |
boolean |
isExact()
Subclasses should override. |
boolean |
isExclusiveFormula(Invariant other)
|
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. |
boolean |
isSameFormula(Invariant other)
Return true if both invariants are the same class and the order of the variables (swap) is the same. |
String |
repr()
Returns a representation of the class. |
protected Invariant |
resurrect_done_swapped()
Swaps the variables by inverting the state of swap. |
static Class<? extends Invariant> |
swap_class()
Returns the class that corresponds to this class with its variable order swapped |
| Methods inherited from class TwoFloat |
|---|
add_unmodified, check_unmodified, check, get_swap, 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
public static final Logger debug
| Constructor Detail |
|---|
protected FloatLessThan(PptSlice ppt)
protected FloatLessThan()
| Method Detail |
|---|
public static FloatLessThan get_proto()
public boolean enabled()
enabled in class Invariantpublic boolean instantiate_ok(VarInfo[] vis)
instantiate_ok in class InvariantInvariant.valid_types(VarInfo[])protected FloatLessThan instantiate_dyn(PptSlice slice)
instantiate_dyn in class Invariantprotected Invariant resurrect_done_swapped()
TwoFloat
resurrect_done_swapped in class TwoFloatpublic static Class<? extends Invariant> swap_class()
public static FloatLessThan find(PptSlice ppt)
public String repr()
TwoFloat
repr in class TwoFloatpublic String format_using(OutputFormat format)
format_using in class Invariant
public InvariantStatus check_modified(double v1,
double v2,
int count)
check_modified in class TwoFloat
public InvariantStatus add_modified(double v1,
double v2,
int count)
TwoFloat
add_modified in class TwoFloatprotected double computeConfidence()
Invariant
computeConfidence in class TwoFloatInvariant.getConfidence()public double eq_confidence()
public boolean isExact()
Invariant
isExact in class Invariant
public InvariantStatus add(Object v1,
Object v2,
int mod_index,
int count)
add in class TwoFloatpublic boolean isSameFormula(Invariant other)
TwoFloat
isSameFormula in class TwoFloatpublic boolean isExclusiveFormula(Invariant other)
isExclusiveFormula in class Invariantpublic DiscardInfo isObviousDynamically(VarInfo[] vis)
Invariant
isObviousDynamically in class Invariantpublic 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 | ||||||||