91 int LitCounterControl = 0;
95 LitCounterControl +=
p->a;
114 if ( LitCounterControl != LitCounter )
115 printf(
"Warning! The recorded number of literals (%d) differs from the actual number (%d)\n", LitCounterControl, LitCounter );
123 int QCostControl = 0;
126 QCostControl +=
p->q;
153 fprintf( pFile,
"0" );
155 fprintf( pFile,
"1" );
157 fprintf( pFile,
"-" );
161 fprintf( pFile,
" " );
166 WordSize = 8*
sizeof( unsigned );
168 for ( v = 0; v < WordSize; v++ )
170 if (
p->pCubeDataOut[w] & (1<<v) )
171 fprintf( pFile,
"1" );
173 fprintf( pFile,
"0" );
174 if ( ++cOutputs == nOutput )
177 fprintf( pFile,
"\n" );
189 pFile = fopen( pFileName,
"w" );
192 fprintf( stderr,
"\n\nCannot open the output file\n" );
198 TimeStr = asctime( localtime( <ime ) );
202 fprintf( pFile,
"# EXORCISM-4 output for command line arguments: " );
204 fprintf( pFile,
"# Minimization performed %s", TimeStr );
205 fprintf( pFile,
"# Initial statistics: " );
207 fprintf( pFile,
"# Final statistics: " );
209 fprintf( pFile,
"# File reading and reordering time = %.2f sec\n", TICKS_TO_SECONDS(
g_CoverInfo.TimeRead) );
210 fprintf( pFile,
"# Starting cover generation time = %.2f sec\n", TICKS_TO_SECONDS(
g_CoverInfo.TimeStart) );
211 fprintf( pFile,
"# Pure ESOP minimization time = %.2f sec\n", TICKS_TO_SECONDS(
g_CoverInfo.TimeMin) );
214 fprintf( pFile,
".p %d\n",
g_CoverInfo.nCubesInUse );
215 fprintf( pFile,
".type esop\n" );
217 fprintf( pFile,
".e\n" );
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
int CountLiterals()
FUNCTION DECLARATIONS ///.
int WriteResultIntoFile(char *pFileName)
varvalue GetVar(Cube *pC, int Var)
INLINE FUNCTION DEFINITIONS ///.
void WriteTableIntoFile(FILE *pFile)
Cube * IterCubeSetStart()
EXTERNAL FUNCTIONS ///.
int ComputeQCostBits(Cube *p)
ABC_NAMESPACE_IMPL_START cinfo g_CoverInfo
GLOBAL VARIABLES ///.
varvalue
VARVALUE and CUBEDIST enum typedefs ///.