diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2018-08-30 20:21:37 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2018-08-30 20:21:37 +0700 |
commit | 922c3415b0b8d03a3e645acf2f846da3063fa558 (patch) | |
tree | 3e8edcbb721890c722fd55fbdccf4a8eb362213d /src/opt/dau | |
parent | 6d1fc80fa9efd671a9a77cc90bef497d7b764d1a (diff) | |
download | abc-922c3415b0b8d03a3e645acf2f846da3063fa558.tar.gz abc-922c3415b0b8d03a3e645acf2f846da3063fa558.tar.bz2 abc-922c3415b0b8d03a3e645acf2f846da3063fa558.zip |
Expriments with functions (compiler warnings).
Diffstat (limited to 'src/opt/dau')
-rw-r--r-- | src/opt/dau/dauNpn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opt/dau/dauNpn.c b/src/opt/dau/dauNpn.c index 33937b5e..fb3d5db1 100644 --- a/src/opt/dau/dauNpn.c +++ b/src/opt/dau/dauNpn.c @@ -122,6 +122,7 @@ void Dau_TruthEnum() { FILE * pFile = fopen( pFileName, "wb" ); int RetValue = fwrite( pTable, 8, nSizeW, pFile ); + RetValue = 0; fclose( pFile ); ABC_FREE( pTable ); } @@ -145,6 +146,7 @@ unsigned * Dau_ReadFile( char * pFileName, int nSizeW ) FILE * pFile = fopen( pFileName, "rb" ); unsigned * p = (unsigned *)ABC_CALLOC(word, nSizeW); int RetValue = pFile ? fread( p, sizeof(word), nSizeW, pFile ) : 0; + RetValue = 0; if ( pFile ) { printf( "Finished reading file \"%s\".\n", pFileName ); @@ -178,7 +180,7 @@ void Dau_NetworkEnum() { abctime clk = Abc_Clock(); int Limit = 2; - int UseTwo = 1; + int UseTwo = 0; #ifdef USE4VARS int nVars = 4; int nSizeW = 1 << 14; @@ -191,7 +193,7 @@ void Dau_NetworkEnum() unsigned * pTable = Dau_ReadFile( pFileName, nSizeW ); Vec_Wec_t * vNpns = Vec_WecStart( 32 ); Vec_Wec_t * vNpns_ = Vec_WecStart( 32 ); - int i, v, u, g, k, m, n, Res, Entry, iPrev = 0, iLast = 1; + int i, v, u, g, k, m, n, Res, Entry; unsigned Inv = (unsigned)Abc_Tt6Mask(1 << (nVars-1)); // create constant function and buffer/inverter function pTable[0] |= (1 << 31); |