Skip to content

Commit

Permalink
Merge pull request #350 from wjrforcyber/put_bug_on_choice
Browse files Browse the repository at this point in the history
Fix(&put): &put bug with choices
  • Loading branch information
alanminko authored Dec 23, 2024
2 parents 733d2cd + a8c65f1 commit 01c6102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/abci/abc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 2 additions & 0 deletions src/base/abci/abcDar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 01c6102

Please sign in to comment.