Commit 4ec5ee41 by Alan Mishchenko

Adding dump of trivial abstraction map at the beginning in &gla -m.

parent 7d5b1c57
...@@ -1544,21 +1544,31 @@ int Gia_ManPerformGla( Gia_Man_t * pAig, Abs_Par_t * pPars ) ...@@ -1544,21 +1544,31 @@ int Gia_ManPerformGla( Gia_Man_t * pAig, Abs_Par_t * pPars )
Ga2_GlaGetFileName(p, pPars->fDumpVabs) ); Ga2_GlaGetFileName(p, pPars->fDumpVabs) );
if ( pPars->fDumpMabs ) if ( pPars->fDumpMabs )
{ {
// create trivial abstraction map {
Gia_Obj_t * pObj; char Command[1000];
char * pFileName = Ga2_GlaGetFileName(p, 0); Abc_FrameSetStatus( -1 );
Vec_Int_t * vMap = pAig->vGateClasses; pAig->vGateClasses = NULL; Abc_FrameSetCex( NULL );
pAig->vGateClasses = Vec_IntStart( Gia_ManObjNum(pAig) ); Abc_FrameSetNFrames( -1 );
Vec_IntWriteEntry( pAig->vGateClasses, 0, 1 ); sprintf( Command, "write_status %s", Extra_FileNameGenericAppend((char *)(p->pPars->pFileVabs ? p->pPars->pFileVabs : "glabs.aig"), ".status"));
Gia_ManForEachAnd( pAig, pObj, i ) Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), Command );
Vec_IntWriteEntry( pAig->vGateClasses, i, 1 ); }
Gia_ManForEachRo( pAig, pObj, i ) {
Vec_IntWriteEntry( pAig->vGateClasses, Gia_ObjId(pAig, pObj), 1 ); // create trivial abstraction map
Gia_AigerWrite( pAig, pFileName, 0, 0 ); Gia_Obj_t * pObj;
Vec_IntFree( pAig->vGateClasses ); char * pFileName = Ga2_GlaGetFileName(p, 0);
pAig->vGateClasses = vMap; Vec_Int_t * vMap = pAig->vGateClasses; pAig->vGateClasses = NULL;
if ( p->pPars->fVerbose ) pAig->vGateClasses = Vec_IntStart( Gia_ManObjNum(pAig) );
Abc_Print( 1, "Dumping miter with abstraction map into file \"%s\"...\n", pFileName ); Vec_IntWriteEntry( pAig->vGateClasses, 0, 1 );
Gia_ManForEachAnd( pAig, pObj, i )
Vec_IntWriteEntry( pAig->vGateClasses, i, 1 );
Gia_ManForEachRo( pAig, pObj, i )
Vec_IntWriteEntry( pAig->vGateClasses, Gia_ObjId(pAig, pObj), 1 );
Gia_AigerWrite( pAig, pFileName, 0, 0 );
Vec_IntFree( pAig->vGateClasses );
pAig->vGateClasses = vMap;
if ( p->pPars->fVerbose )
Abc_Print( 1, "Dumping miter with abstraction map into file \"%s\"...\n", pFileName );
}
} }
Abc_Print( 1, " Frame %% Abs PPI FF LUT Confl Cex Vars Clas Lrns Time Mem\n" ); Abc_Print( 1, " Frame %% Abs PPI FF LUT Confl Cex Vars Clas Lrns Time Mem\n" );
} }
......
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