|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectNIS
public class NIS
Main class for non-instantiating suppression. Handles setup and other overall functions.
| Nested Class Summary | |
|---|---|
static class |
NIS.SuppressionProcessor
Enum. |
| Field Summary | |
|---|---|
static boolean |
antecedent_method
Boolean. |
static int |
created_invs_cnt
Number of invariants actually created |
static Logger |
debug
Debug tracer. |
static Logger |
debugAnt
Debug Tracer for antecedent method |
static boolean |
dkconfig_enabled
Boolean. |
static int |
dkconfig_hybrid_threshhold
Int. |
static boolean |
dkconfig_skip_hashcode_type
Boolean. |
static NIS.SuppressionProcessor |
dkconfig_suppression_processor
Specifies the algorithm that NIS uses to process suppressions. |
static boolean |
dkconfig_suppressor_list
Boolean. |
static int |
false_cnts
Number of falsified invariants in the program point |
static int |
false_invs
Number of falsified invariants in the program point that are potential suppressors |
static int |
false_invs_cnt
Number of new_invs_cnt that are falsified by the sample |
static boolean |
hybrid_method
Boolean. |
static boolean |
keep_stats
Whether or not to keep statistics |
static List<Invariant> |
new_invs
List of invariants that are unsuppressed by the current sample. |
static List<Invariant> |
newly_falsified
List of invariants that are unsuppressed and then falsified by the current sample. |
static int |
suppressions_processed
Number of suppressions processed |
static int |
suppressions_processed_falsified
Number of suppressions processed by the falsified method |
static Map<Class<? extends Invariant>,List<NISuppressionSet>> |
suppressor_map
Map from invariant class to a list of all of the suppression sets that contain a suppressor of that class. |
static Map<Class<? extends Invariant>,Integer> |
suppressor_map_suppression_count
Map from invariant class to the number of suppressions that contain a suppressor of that class. |
static List<Invariant> |
suppressor_proto_invs
List of suppressor invariant prototypes |
static Stopwatch |
watch
Total time spent in NIS processing |
| Constructor Summary | |
|---|---|
NIS()
|
|
| Method Summary | |
|---|---|
static void |
apply_samples(ValueTuple vt,
int count)
Applies sample values to all of the newly created invariants (kept in new_invs). |
static void |
clear_sample_stats()
|
static void |
clear_stats()
Clears the current NIS statistics and enables the keeping of statistics |
static List<Invariant> |
create_suppressed_invs(PptTopLevel ppt)
Creates all suppressed invariants for the specified ppt and places them in their associated slices. |
static void |
dump_stats(Logger log,
PptTopLevel ppt)
dump statistics on NIS to the specified logger |
static void |
dump(Logger log)
Dump out the suppressor map. |
static void |
falsified(Invariant inv)
Instantiates any invariants that are no longer suppressed because inv has been falsified. |
static void |
init_ni_suppression()
Sets up non-instantiation suppression. |
static boolean |
is_suppressor(Class<? extends Invariant> cls)
Returns true if the specified class is an antecedent in any NI suppression |
static void |
process_falsified_invs(PptTopLevel ppt,
ValueTuple vt)
Creates any invariants that were previously suppressed, but are no longer suppressed. |
static void |
remove_suppressed_invs(PptTopLevel ppt)
Removes any invariants in the specified ppt that are suppressed |
static void |
stats_header(Logger log)
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Logger debug
public static final Logger debugAnt
public static boolean dkconfig_enabled
public static NIS.SuppressionProcessor dkconfig_suppression_processor
public static boolean antecedent_method
public static boolean hybrid_method
public static int dkconfig_hybrid_threshhold
public static boolean dkconfig_suppressor_list
public static boolean dkconfig_skip_hashcode_type
public static Map<Class<? extends Invariant>,List<NISuppressionSet>> suppressor_map
public static Map<Class<? extends Invariant>,Integer> suppressor_map_suppression_count
public static List<Invariant> suppressor_proto_invs
public static List<Invariant> new_invs
public static List<Invariant> newly_falsified
public static boolean keep_stats
public static int false_cnts
public static int false_invs
public static int suppressions_processed
public static int suppressions_processed_falsified
public static int false_invs_cnt
public static int created_invs_cnt
public static Stopwatch watch
| Constructor Detail |
|---|
public NIS()
| Method Detail |
|---|
public static void init_ni_suppression()
public static void falsified(Invariant inv)
public static void apply_samples(ValueTuple vt,
int count)
public static void clear_stats()
public static void clear_sample_stats()
public static void stats_header(Logger log)
public static void dump_stats(Logger log,
PptTopLevel ppt)
public static void process_falsified_invs(PptTopLevel ppt,
ValueTuple vt)
public static List<Invariant> create_suppressed_invs(PptTopLevel ppt)
public static void remove_suppressed_invs(PptTopLevel ppt)
public static boolean is_suppressor(Class<? extends Invariant> cls)
public static void dump(Logger log)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||