diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2010-11-01 01:35:04 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2010-11-01 01:35:04 -0700 |
commit | 6130e39b18b5f53902e4eab14f6d5cdde5219563 (patch) | |
tree | 0db0628479a1b750e9af1f66cb8379ebd0913d31 /src/sat/msat/msatRead.c | |
parent | f0e77f6797c0504b0da25a56152b707d3357f386 (diff) | |
download | abc-6130e39b18b5f53902e4eab14f6d5cdde5219563.tar.gz abc-6130e39b18b5f53902e4eab14f6d5cdde5219563.tar.bz2 abc-6130e39b18b5f53902e4eab14f6d5cdde5219563.zip |
initial commit of public abc
Diffstat (limited to 'src/sat/msat/msatRead.c')
-rw-r--r-- | src/sat/msat/msatRead.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/sat/msat/msatRead.c b/src/sat/msat/msatRead.c index ba33278c..b2cae898 100644 --- a/src/sat/msat/msatRead.c +++ b/src/sat/msat/msatRead.c @@ -20,6 +20,9 @@ #include "msatInt.h" +ABC_NAMESPACE_IMPL_START + + //////////////////////////////////////////////////////////////////////// /// DECLARATIONS /// //////////////////////////////////////////////////////////////////////// @@ -133,7 +136,7 @@ static void skipLine( char ** pIn ) static int Msat_ReadInt( char ** pIn ) { int val = 0; - bool neg = 0; + int neg = 0; Msat_ReadWhitespace( pIn ); if ( **pIn == '-' ) @@ -194,7 +197,7 @@ static void Msat_ReadClause( char ** pIn, Msat_Solver_t * p, Msat_IntVec_t * pLi SeeAlso [] ***********************************************************************/ -static bool Msat_ReadDimacs( char * pText, Msat_Solver_t ** pS, bool fVerbose ) +static int Msat_ReadDimacs( char * pText, Msat_Solver_t ** pS, int fVerbose ) { Msat_Solver_t * p = NULL; // Suppress "might be used uninitialized" Msat_IntVec_t * pLits = NULL; // Suppress "might be used uninitialized" @@ -251,10 +254,10 @@ static bool Msat_ReadDimacs( char * pText, Msat_Solver_t ** pS, bool fVerbose ) SeeAlso [] ***********************************************************************/ -bool Msat_SolverParseDimacs( FILE * pFile, Msat_Solver_t ** p, int fVerbose ) +int Msat_SolverParseDimacs( FILE * pFile, Msat_Solver_t ** p, int fVerbose ) { char * pText; - bool Value; + int Value; pText = Msat_FileRead( pFile ); Value = Msat_ReadDimacs( pText, p, fVerbose ); ABC_FREE( pText ); @@ -266,3 +269,5 @@ bool Msat_SolverParseDimacs( FILE * pFile, Msat_Solver_t ** p, int fVerbose ) //////////////////////////////////////////////////////////////////////// +ABC_NAMESPACE_IMPL_END + |