Abc_Print(-1,"The PI count (%d) of the first network is not equal to PI count (%d) of the second network.\n",Abc_NtkPiNum(pNtk),Abc_NtkPiNum(pNtk2));
return0;
}
// compare inputs/outputs
if(Abc_NtkPoNum(pNtk)!=Abc_NtkPoNum(pNtk2))
{
Abc_NtkDelete(pNtk2);
Abc_Print(-1,"The PO count (%d) of the first network is not equal to PO count (%d) of the second network.\n",Abc_NtkPoNum(pNtk),Abc_NtkPoNum(pNtk2));
return0;
}
// compare inputs/outputs
if(Abc_NtkLatchNum(pNtk)!=Abc_NtkLatchNum(pNtk2))
{
Abc_NtkDelete(pNtk2);
Abc_Print(-1,"The flop count (%d) of the first network is not equal to flop count (%d) of the second network.\n",Abc_NtkLatchNum(pNtk),Abc_NtkLatchNum(pNtk2));
return0;
}
Abc_NtkMoveNames(pNtk,pNtk2);
Abc_NtkDelete(pNtk2);
return0;
usage:
Abc_Print(-2,"usage: move_names [-h] <file>\n");
Abc_Print(-2,"\t moves PI/PO/latch names from the other network\n");
Abc_Print(-2,"\t-h : print the command usage\n");
Abc_Print(-2,"\t<file> : file names with network that has required names\n");