Adding new line (\n) after 'c' at the beginning of the comment section in AIGER format.

This commit is contained in:
Alan Mishchenko 2013-08-29 16:25:55 -07:00
parent 009cc92e05
commit 44a83bde28
1 changed files with 4 additions and 1 deletions

View File

@ -509,6 +509,9 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
Vec_Str_t * vStr;
unsigned char * pCurTemp;
pCur++;
// skip new line if present
if ( *pCur == '\n' )
pCur++;
while ( pCur < (unsigned char *)pContents + nFileSize )
{
// read extra AIG
@ -1119,7 +1122,7 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
}
// write the comment
fprintf( pFile, "c" );
fprintf( pFile, "c\n" );
// write additional AIG
if ( p->pAigExtra )