diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-08-29 16:25:55 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-08-29 16:25:55 -0700 |
commit | 44a83bde2856053ad1e600f75a6a145dca0994b5 (patch) | |
tree | 35671436e5930bed21fbc277ef683b1f61515bf6 /src/aig | |
parent | 009cc92e0544b69b0591394b3645de74eb513a8c (diff) | |
download | abc-44a83bde2856053ad1e600f75a6a145dca0994b5.tar.gz abc-44a83bde2856053ad1e600f75a6a145dca0994b5.tar.bz2 abc-44a83bde2856053ad1e600f75a6a145dca0994b5.zip |
Adding new line (\n) after 'c' at the beginning of the comment section in AIGER format.
Diffstat (limited to 'src/aig')
-rw-r--r-- | src/aig/gia/giaAiger.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aig/gia/giaAiger.c b/src/aig/gia/giaAiger.c index 8f199f43..8987eea9 100644 --- a/src/aig/gia/giaAiger.c +++ b/src/aig/gia/giaAiger.c @@ -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 ) |