diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-05-06 14:38:27 +0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-05-06 14:38:27 +0800 |
commit | 140fd9ad9fe78a7fde8168ddcc7750a8bbc03bfe (patch) | |
tree | ed86e6b73c8b92f76f0b7cc7bd9ecf68ae1b9b12 /src/aig | |
parent | 421362f70924e78468fc784ce388596dc9f4c062 (diff) | |
download | abc-140fd9ad9fe78a7fde8168ddcc7750a8bbc03bfe.tar.gz abc-140fd9ad9fe78a7fde8168ddcc7750a8bbc03bfe.tar.bz2 abc-140fd9ad9fe78a7fde8168ddcc7750a8bbc03bfe.zip |
Bug fix in the sweeper.
Diffstat (limited to 'src/aig')
-rw-r--r-- | src/aig/gia/giaSweeper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aig/gia/giaSweeper.c b/src/aig/gia/giaSweeper.c index 7059ba89..735abf30 100644 --- a/src/aig/gia/giaSweeper.c +++ b/src/aig/gia/giaSweeper.c @@ -757,6 +757,8 @@ static Vec_Int_t * Gia_ManGetCex( Gia_Man_t * pGia, Vec_Int_t * vId2Lit, sat_sol Vec_IntClear( vCex ); Gia_ManForEachPi( pGia, pObj, i ) { + if ( Gia_ObjId(pGia, pObj) >= Vec_IntSize(vId2Lit) ) + continue; LitSat = Vec_IntEntry( vId2Lit, Gia_ObjId(pGia, pObj) ); if ( LitSat == 0 ) { |