52 int LitSizeMax, LitSizeCur,
Pos, i;
55 if ( pNamesIn == NULL )
58 pNamesIn = (
char **)vNamesIn->pArray;
60 if ( pNameOut == NULL )
67 LitSizeCur =
strlen(pNamesIn[i]);
68 if ( LitSizeMax < LitSizeCur )
69 LitSizeMax = LitSizeCur;
71 if ( LitSizeMax > 50 )
90 fprintf( pFile,
"\n" );
123 fprintf( pFile,
"(" );
126 fprintf( pFile,
")" );
129 fprintf( pFile,
" " );
138 fprintf( pFile,
"(" );
141 fprintf( pFile,
")" );
149 fprintf( pFile,
" + " );
174 Dec_Node_t * pNode00, * pNode01, * pNode10, * pNode11;
188 if ( (pNode00 == pNode10 || pNode00 == pNode11) && (pNode01 == pNode10 || pNode01 == pNode11) )
190 fprintf( pFile,
"(" );
193 fprintf( pFile,
" # " );
196 fprintf( pFile,
")" );
203 fprintf( pFile,
"(" );
206 fprintf( pFile,
" + " );
209 fprintf( pFile,
")" );
214 fprintf( pFile,
"(" );
218 fprintf( pFile,
")" );
236 static char Buffer[100];
237 sprintf( Buffer,
"%s%s", fCompl?
"!" :
"", pNamesIn[iLeaf] );
238 fprintf( pFile,
"%s", Buffer );
256 if ( *pPos + LitSizeMax < 77 )
258 fprintf( pFile,
"\n" );
259 for ( i = 0; i < 10; i++ )
260 fprintf( pFile,
" " );
277 if ( pNameOut == NULL )
279 fprintf( pFile,
"%6s = ", pNameOut );
static int Dec_GraphVarInt(Dec_Graph_t *pGraph)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static int Dec_GraphNodeInt(Dec_Graph_t *pGraph, Dec_Node_t *pNode)
static void Dec_GraphPrintUpdatePos(FILE *pFile, int *pPos, int LitSizeMax)
static int Dec_GraphIsConst(Dec_Graph_t *pGraph)
void Dec_GraphPrint(FILE *pFile, Dec_Graph_t *pGraph, char *pNamesIn[], char *pNameOut)
FUNCTION DEFINITIONS ///.
static int Dec_GraphPrintOutputName(FILE *pFile, char *pNameOut)
ABC_DLL void Abc_NodeFreeNames(Vec_Ptr_t *vNames)
static int Dec_GraphIsComplement(Dec_Graph_t *pGraph)
ABC_DLL Vec_Ptr_t * Abc_NodeGetFakeNames(int nNames)
#define ABC_NAMESPACE_IMPL_END
static int Dec_GraphPrintGetLeafName(FILE *pFile, int iLeaf, int fCompl, char *pNamesIn[])
#define ABC_NAMESPACE_IMPL_START
static Dec_Node_t * Dec_GraphNodeLast(Dec_Graph_t *pGraph)
static int Dec_GraphLeaveNum(Dec_Graph_t *pGraph)
static int Dec_GraphIsVar(Dec_Graph_t *pGraph)
static int Dec_GraphNodeIsVar(Dec_Graph_t *pGraph, Dec_Node_t *pNode)
static Dec_Node_t * Dec_GraphNode(Dec_Graph_t *pGraph, int i)
static ABC_NAMESPACE_IMPL_START void Dec_GraphPrint_rec(FILE *pFile, Dec_Graph_t *pGraph, Dec_Node_t *pNode, int fCompl, char *pNamesIn[], int *pPos, int LitSizeMax)
DECLARATIONS ///.
void Dec_GraphPrint2_rec(FILE *pFile, Dec_Graph_t *pGraph, Dec_Node_t *pNode, int fCompl, char *pNamesIn[], int *pPos, int LitSizeMax)