ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
mvcPrint.c File Reference
#include "mvc.h"
Include dependency graph for mvcPrint.c:

Go to the source code of this file.

Functions

void Mvc_CoverPrint (Mvc_Cover_t *pCover)
 FUNCTION DEFINITIONS ///.
 
void Mvc_CubePrint (Mvc_Cover_t *pCover, Mvc_Cube_t *pCube)
 
void Mvc_CoverPrintBinary (Mvc_Cover_t *pCover)
 

Function Documentation

◆ Mvc_CoverPrint()

void Mvc_CoverPrint ( Mvc_Cover_t * pCover)

FUNCTION DEFINITIONS ///.

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 47 of file mvcPrint.c.

48{
49 Mvc_Cube_t * pCube;
50 int i;
51 // print general statistics
52 printf( "The cover contains %d cubes (%d bits and %d words)\n",
53 pCover->lCubes.nItems, pCover->nBits, pCover->nWords );
54 // iterate through the cubes
55 Mvc_CoverForEachCube( pCover, pCube )
56 Mvc_CubePrint( pCover, pCube );
57
58 if ( pCover->pLits )
59 {
60 for ( i = 0; i < pCover->nBits; i++ )
61 printf( " %d", pCover->pLits[i] );
62 printf( "\n" );
63 }
64 printf( "End of cover printout\n" );
65}
void Mvc_CubePrint(Mvc_Cover_t *pCover, Mvc_Cube_t *pCube)
Definition mvcPrint.c:79
struct MvcCubeStruct Mvc_Cube_t
Definition mvc.h:56
#define Mvc_CoverForEachCube(Cover, Cube)
Definition mvc.h:528
int nBits
Definition mvc.h:87
int nWords
Definition mvc.h:85
int * pLits
Definition mvc.h:91
Mvc_List_t lCubes
Definition mvc.h:88
int nItems
Definition mvc.h:79
Here is the call graph for this function:

◆ Mvc_CoverPrintBinary()

void Mvc_CoverPrintBinary ( Mvc_Cover_t * pCover)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 101 of file mvcPrint.c.

102{
103 Mvc_Cube_t * pCube;
104 int i;
105 // print general statistics
106 printf( "The cover contains %d cubes (%d bits and %d words)\n",
107 pCover->lCubes.nItems, pCover->nBits, pCover->nWords );
108 // iterate through the cubes
109 Mvc_CoverForEachCube( pCover, pCube )
110 Mvc_CubePrintBinary( pCover, pCube );
111
112 if ( pCover->pLits )
113 {
114 for ( i = 0; i < pCover->nBits; i++ )
115 printf( " %d", pCover->pLits[i] );
116 printf( "\n" );
117 }
118 printf( "End of cover printout\n" );
119}

◆ Mvc_CubePrint()

void Mvc_CubePrint ( Mvc_Cover_t * pCover,
Mvc_Cube_t * pCube )

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 79 of file mvcPrint.c.

80{
81 int iBit, Value;
82 // iterate through the literals
83// printf( "Size = %2d ", Mvc_CubeReadSize(pCube) );
84 Mvc_CubeForEachBit( pCover, pCube, iBit, Value )
85 printf( "%c", '0' + Value );
86 printf( "\n" );
87}
#define Mvc_CubeForEachBit(Cover, Cube, iBit, Value)
Definition mvc.h:553
Here is the caller graph for this function: