summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-03-16 19:38:43 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-03-16 19:38:43 +0700
commit7fe11c51cfb050dafef1cf875dc4eb4e65352465 (patch)
treeb27983a74456b0cac4561c537cb46e1f868763a0 /src/base
parent1e757a85670b295384e16fa9ce534ffceca6be71 (diff)
downloadabc-7fe11c51cfb050dafef1cf875dc4eb4e65352465.tar.gz
abc-7fe11c51cfb050dafef1cf875dc4eb4e65352465.tar.bz2
abc-7fe11c51cfb050dafef1cf875dc4eb4e65352465.zip
Several bug fixes and silencing requests.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c2
-rw-r--r--src/base/wlc/wlcReadSmt.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index de96b546..10a6f191 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -30301,7 +30301,7 @@ int Abc_CommandAbc9Fraig( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Abc_CommandAbc9Fraig(): There is no AIG.\n" );
return 1;
}
- pTemp = Cec_ManSatSweeping( pAbc->pGia, pPars );
+ pTemp = Cec_ManSatSweeping( pAbc->pGia, pPars, 0 );
Abc_FrameUpdateGia( pAbc, pTemp );
return 0;
diff --git a/src/base/wlc/wlcReadSmt.c b/src/base/wlc/wlcReadSmt.c
index 8143be6c..dcf018b7 100644
--- a/src/base/wlc/wlcReadSmt.c
+++ b/src/base/wlc/wlcReadSmt.c
@@ -706,12 +706,12 @@ static inline char * Smt_PrsLoadFile( char * pFileName, char ** ppLimit )
// move the file current reading position to the beginning
rewind( pFile );
// load the contents of the file into memory
- pBuffer = ABC_ALLOC( char, nFileSize + 3 );
+ pBuffer = ABC_ALLOC( char, nFileSize + 16 );
pBuffer[0] = '\n';
RetValue = fread( pBuffer+1, nFileSize, 1, pFile );
// terminate the string with '\0'
- pBuffer[nFileSize + 0] = '\n';
- pBuffer[nFileSize + 1] = '\0';
+ pBuffer[nFileSize + 1] = '\n';
+ pBuffer[nFileSize + 2] = '\0';
*ppLimit = pBuffer + nFileSize + 2;
return pBuffer;
}