00001 #ifndef __ASSERTION_H__
00002 #define __ASSERTION_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00027 #include <stdio.h>
00028
00029 #include "defines.h"
00030
00031
00033 void assertion_parse( const char* arg );
00034
00036 void assertion_parse_attr(
00037 attr_param* ap,
00038 const func_unit* funit,
00039 bool exclude
00040 );
00041
00043 void assertion_get_stats(
00044 const func_unit* funit,
00045 unsigned int* hit,
00046 unsigned int* excluded,
00047 unsigned int* total
00048 );
00049
00051 void assertion_report( FILE* ofile, bool verbose );
00052
00054 void assertion_get_funit_summary(
00055 func_unit* funit,
00056 unsigned int* hit,
00057 unsigned int* excluded,
00058 unsigned int* total
00059 );
00060
00062 void assertion_collect(
00063 func_unit* funit,
00064 int cov,
00065 char*** inst_names,
00066 int** excludes,
00067 unsigned int* inst_size
00068 );
00069
00071 void assertion_get_coverage(
00072 const func_unit* funit,
00073 const char* inst_name,
00074 char** assert_mod,
00075 str_link** cp_head,
00076 str_link** cp_tail
00077 );
00078
00079 #endif
00080