|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectNISuppressor
public class NISuppressor
Class that defines a suppressor invariant for use in non-instantiating suppressions. In non-instantiating suppressions, suppressor invariants are defined independent of specific variables. Instead, arguments are identified by their variable index in the suppressee.
| Field Summary | |
|---|---|
static Logger |
debug
Debug tracer. |
| Constructor Summary | |
|---|---|
NISuppressor(int v1_index,
Class<? extends Invariant> cls)
Defines a unary suppressor. |
|
NISuppressor(int v1_index,
int v2_index,
Class<? extends Invariant> cls)
Defines a binary suppressor. |
|
| Method Summary | |
|---|---|
String |
check(PptTopLevel ppt,
VarInfo[] vis,
Invariant inv)
Sets the status of this suppressor with regards to the specified vis and falsified invariant. |
void |
clear_state()
clears the state of this suppressor to NIS.none |
Class<? extends Invariant> |
get_inv_class()
Returns the invariant class of this suppressor |
boolean |
instantiate_ok(VarInfo[] vis)
Returns whether or not this suppressor invariant could be instantiated over the specified variables. |
boolean |
is_enabled()
Returns whether or not this suppressor is enabled. |
boolean |
match_true(Invariant inv)
Returns true if inv matches this suppressor and the invariant is not falsified. |
boolean |
match(Invariant inv)
Returns true if inv matches this suppressor. |
boolean |
match(NISuppressee sse)
Returns true if the suppressee matches this suppressor. |
NISuppressor |
swap()
Returns a new suppressor that is the same as this one except with its variables swapped. |
String |
toString()
Returns a string representation of the suppressor. |
NISuppressor |
translate(NISuppressor sor)
Returns a copy of this suppressor translated to match the variable order in sor. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Logger debug
| Constructor Detail |
|---|
public NISuppressor(int v1_index,
Class<? extends Invariant> cls)
public NISuppressor(int v1_index,
int v2_index,
Class<? extends Invariant> cls)
| Method Detail |
|---|
public NISuppressor swap()
public boolean is_enabled()
public boolean instantiate_ok(VarInfo[] vis)
public String check(PptTopLevel ppt,
VarInfo[] vis,
Invariant inv)
ppt - The top level program pointvis - The slice of the suppressee. Thus, if the suppressee is
ternary, vis, should specify three variables.inv - The falsified invariant. inv_match indicates whether
or not inv matches this suppressor
public boolean match_true(Invariant inv)
match(Invariant)public boolean match(Invariant inv)
public boolean match(NISuppressee sse)
public NISuppressor translate(NISuppressor sor)
public Class<? extends Invariant> get_inv_class()
public void clear_state()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||