Corner-case bug in MiniLUT.

This commit is contained in:
Alan Mishchenko 2017-01-25 14:58:06 -08:00
parent 32288c6964
commit a02bdebcc4
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ Mini_Lut_t * Gia_ManToMiniLut( Gia_Man_t * pGia )
word Truth;
assert( Gia_ManHasMapping(pGia) );
LutSize = Gia_ManLutSizeMax( pGia );
LutSize = Abc_MaxInt( LutSize, 2 );
assert( LutSize >= 2 );
// create the manager
p = Mini_LutStart( LutSize );