toggle.h

Go to the documentation of this file.
00001 #ifndef __TOGGLE_H__
00002 #define __TOGGLE_H__
00003 
00004 /*
00005  Copyright (c) 2006-2010 Trevor Williams
00006 
00007  This program is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by the Free Software
00009  Foundation; either version 2 of the License, or (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00012  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00013  See the GNU General Public License for more details.
00014 
00015  You should have received a copy of the GNU General Public License along with this program;
00016  if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00026 #include <stdio.h>
00027 
00028 #include "defines.h"
00029 
00030 
00032 void toggle_get_stats(
00033             func_unit*    funit,
00034   /*@out@*/ unsigned int* hit01,
00035   /*@out@*/ unsigned int* hit10,
00036   /*@out@*/ unsigned int* excluded,
00037   /*@out@*/ unsigned int* total,
00038   /*@out@*/ bool*         cov_found
00039 );
00040 
00042 void toggle_collect(
00043             func_unit*  funit,
00044             int         cov,
00045   /*@out@*/ sig_link**  sig_head,
00046   /*@out@*/ sig_link**  sig_tail
00047 );
00048 
00050 void toggle_get_coverage(
00051             func_unit* funit,
00052             char*      sig_name,
00053   /*@out@*/ int*       msb,
00054   /*@out@*/ int*       lsb,
00055   /*@out@*/ char**     tog01,
00056   /*@out@*/ char**     tog10,
00057   /*@out@*/ int*       excluded,
00058   /*@out@*/ char**     reason
00059 );
00060 
00062 void toggle_get_funit_summary(
00063             func_unit*    funit,
00064   /*@out@*/ unsigned int* hit,
00065   /*@out@*/ unsigned int* excluded,
00066   /*@out@*/ unsigned int* total
00067 );
00068 
00070 void toggle_get_inst_summary(
00071             funit_inst*   inst,
00072   /*@out@*/ unsigned int* hit,
00073   /*@out@*/ unsigned int* excluded,
00074   /*@out@*/ unsigned int* total
00075 );
00076 
00078 void toggle_report(
00079   FILE* ofile,
00080   bool  verbose
00081 );
00082 
00083 #endif
00084 
Generated on Sun Nov 21 00:55:36 2010 for Covered by  doxygen 1.6.3