mirror of https://github.com/YosysHQ/abc.git
Merge pull request #350 from wjrforcyber/put_bug_on_choice
Fix(&put): &put bug with choices
This commit is contained in:
commit
01c6102ca7
|
|
@ -32560,7 +32560,7 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv )
|
|||
else
|
||||
{
|
||||
Abc_Ntk_t * pNtkNoCh;
|
||||
Abc_Print( -1, "Transforming AIG with %d choice nodes.\n", Gia_ManEquivCountClasses(pAbc->pGia) );
|
||||
Abc_Print( 0, "Transforming AIG with %d choice nodes.\n", Gia_ManEquivCountClasses(pAbc->pGia) );
|
||||
// create network without choices
|
||||
pMan = Gia_ManToAig( pAbc->pGia, 0 );
|
||||
pNtkNoCh = Abc_NtkFromAigPhase( pMan );
|
||||
|
|
|
|||
|
|
@ -1221,6 +1221,8 @@ Abc_Ntk_t * Abc_NtkFromDarChoices( Abc_Ntk_t * pNtkOld, Aig_Man_t * pMan )
|
|||
Aig_ManForEachNode( pMan, pObj, i )
|
||||
{
|
||||
pObj->pData = Abc_AigAnd( (Abc_Aig_t *)pNtkNew->pManFunc, (Abc_Obj_t *)Aig_ObjChild0Copy(pObj), (Abc_Obj_t *)Aig_ObjChild1Copy(pObj) );
|
||||
}
|
||||
Aig_ManForEachNode( pMan, pObj, i ) {
|
||||
if ( (pTemp = Aig_ObjEquiv(pMan, pObj)) )
|
||||
{
|
||||
assert( pTemp->pData != NULL );
|
||||
|
|
|
|||
Loading…
Reference in New Issue