diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-06-27 10:35:36 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-06-27 10:35:36 -0700 |
commit | 86ba294dc89a07af93d1cb31a1137c2e11300b4f (patch) | |
tree | 12f9760c695ed4481b4f55c403d5b033e2eaaa60 /src/sat | |
parent | cab60501d079771a22e0414c06a3881ae0c6c0c5 (diff) | |
download | abc-86ba294dc89a07af93d1cb31a1137c2e11300b4f.tar.gz abc-86ba294dc89a07af93d1cb31a1137c2e11300b4f.tar.bz2 abc-86ba294dc89a07af93d1cb31a1137c2e11300b4f.zip |
The cube in PDR can have more than 2^15 literals.
Diffstat (limited to 'src/sat')
-rw-r--r-- | src/sat/pdr/pdrInt.h | 4 | ||||
-rw-r--r-- | src/sat/pdr/pdrUtil.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sat/pdr/pdrInt.h b/src/sat/pdr/pdrInt.h index 1eadcf93..b51731bf 100644 --- a/src/sat/pdr/pdrInt.h +++ b/src/sat/pdr/pdrInt.h @@ -45,8 +45,8 @@ struct Pdr_Set_t_ { word Sign; // signature int nRefs; // ref counter - short nTotal; // total literals - short nLits; // num flop literals + int nTotal; // total literals + int nLits; // num flop literals int Lits[0]; }; diff --git a/src/sat/pdr/pdrUtil.c b/src/sat/pdr/pdrUtil.c index a568a2d5..1107aec7 100644 --- a/src/sat/pdr/pdrUtil.c +++ b/src/sat/pdr/pdrUtil.c @@ -46,7 +46,7 @@ ABC_NAMESPACE_IMPL_START Pdr_Set_t * Pdr_SetAlloc( int nSize ) { Pdr_Set_t * p; - assert( nSize < (1<<15) ); + assert( nSize >= 0 && nSize < (1<<30) ); p = (Pdr_Set_t *)ABC_CALLOC( char, sizeof(Pdr_Set_t) + nSize * sizeof(int) ); return p; } @@ -66,7 +66,7 @@ Pdr_Set_t * Pdr_SetCreate( Vec_Int_t * vLits, Vec_Int_t * vPiLits ) { Pdr_Set_t * p; int i; - assert( Vec_IntSize(vLits) + Vec_IntSize(vPiLits) < (1<<15) ); + assert( Vec_IntSize(vLits) + Vec_IntSize(vPiLits) < (1<<30) ); p = (Pdr_Set_t *)ABC_ALLOC( char, sizeof(Pdr_Set_t) + (Vec_IntSize(vLits) + Vec_IntSize(vPiLits)) * sizeof(int) ); p->nLits = Vec_IntSize(vLits); p->nTotal = Vec_IntSize(vLits) + Vec_IntSize(vPiLits); |