Commit 1ce537e9 by Alan Mishchenko

Misc changes.

parent 1a6354c2
...@@ -169,12 +169,20 @@ void Opa_ManPerform( Gia_Man_t * pGia ) ...@@ -169,12 +169,20 @@ void Opa_ManPerform( Gia_Man_t * pGia )
{ {
Opa_Man_t * p; Opa_Man_t * p;
Gia_Obj_t * pObj; Gia_Obj_t * pObj;
int i; int i, Limit, Count = 0;
p = Opa_ManStart( pGia ); p = Opa_ManStart( pGia );
Limit = Vec_IntSize(p->vFront);
//Opa_ManPrint2( p ); //Opa_ManPrint2( p );
Gia_ManForEachObjVec( p->vFront, pGia, pObj, i ) Gia_ManForEachObjVec( p->vFront, pGia, pObj, i )
{ {
if ( i == Limit )
{
printf( "%6d : %6d -> %6d\n", ++Count, i, p->nParts );
Limit = Vec_IntSize(p->vFront);
if ( Count > 1 )
Opa_ManPrint2( p );
}
// printf( "*** Object %d ", Gia_ObjId(pGia, pObj) ); // printf( "*** Object %d ", Gia_ObjId(pGia, pObj) );
if ( Gia_ObjIsAnd(pObj) ) if ( Gia_ObjIsAnd(pObj) )
{ {
...@@ -184,11 +192,12 @@ void Opa_ManPerform( Gia_Man_t * pGia ) ...@@ -184,11 +192,12 @@ void Opa_ManPerform( Gia_Man_t * pGia )
else if ( Gia_ObjIsCo(pObj) ) else if ( Gia_ObjIsCo(pObj) )
Opa_ManMoveOne( p, pObj, Gia_ObjFanin0(pObj) ); Opa_ManMoveOne( p, pObj, Gia_ObjFanin0(pObj) );
else assert( 0 ); else assert( 0 );
if ( i % 10 == 0 ) // if ( i % 10 == 0 )
printf( "%d ", p->nParts ); // printf( "%d ", p->nParts );
//Opa_ManPrint2( p );
if ( p->nParts == 1 ) if ( p->nParts == 1 )
break; break;
if ( Count == 5 )
break;
} }
printf( "\n" ); printf( "\n" );
Opa_ManStop( p ); Opa_ManStop( p );
......
...@@ -47,8 +47,8 @@ ABC_NAMESPACE_IMPL_START ...@@ -47,8 +47,8 @@ ABC_NAMESPACE_IMPL_START
***********************************************************************/ ***********************************************************************/
void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command ) void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
{ {
int nLastLooked = 10; // do not add history if the same entry appears among the last entries int nLastLooked = 10; // do not add history if the same entry appears among the last entries
int nLastSaved = 500; // when saving a file, save no more than this number of last entries int nLastSaved = 1000; // when saving a file, save no more than this number of last entries
char Buffer[ABC_MAX_STR]; char Buffer[ABC_MAX_STR];
int Len; int Len;
if ( p->fBatchMode ) if ( p->fBatchMode )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment