13 template <
typename Ntk>
17 pNtk->Reserve(Gia_ManObjNum(pGia));
18 Gia_ManConst0(pGia)->Value = pNtk->GetConst0();
20 if(Gia_ObjIsCi(pObj)) {
21 pObj->
Value = pNtk->AddPi();
22 }
else if(Gia_ObjIsCo(pObj)) {
23 pNtk->AddPo(Gia_ObjFanin0(pObj)->Value, Gia_ObjFaninC0(pObj));
26 pObj->
Value = pNtk->AddAnd(Gia_ObjFanin0(pObj)->Value, Gia_ObjFanin1(pObj)->Value, Gia_ObjFaninC0(pObj), Gia_ObjFaninC1(pObj));
31 template <
typename Ntk>
37 std::vector<int> v(pNtk->GetNumNodes());
38 v[0] = Gia_ManConst0Lit();
39 pNtk->ForEachPi([&](
int id) {
40 v[id] = Gia_ManAppendCi(pGia);
42 pNtk->ForEachInt([&](
int id) {
45 pNtk->ForEachFanin(
id, [&](
int fi,
bool c) {
47 x = Abc_LitNotCond(v[fi], c);
51 x = Gia_ManAppendAnd(pGia, x, Abc_LitNotCond(v[fi], c));
59 pNtk->ForEachPoDriver([&](
int fi,
bool c) {
60 Gia_ManAppendCo(pGia, Abc_LitNotCond(v[fi], c));
68 template <
typename Ntk>
void Abc_FrameUpdateGia(Abc_Frame_t *pAbc, Gia_Man_t *pNew)
#define ABC_NAMESPACE_CXX_HEADER_START
#define ABC_NAMESPACE_CXX_HEADER_END
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
ABC_DLL Abc_Frame_t * Abc_FrameGetGlobalFrame()
ABC_DLL void Abc_FrameSetBatchMode(int Mode)
ABC_DLL Gia_Man_t * Abc_FrameReadGia(Abc_Frame_t *p)
ABC_DLL int Abc_FrameIsBatchMode()
ABC_DLL int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
void Gia_ManHashStart(Gia_Man_t *p)
Gia_Man_t * Gia_ManStart(int nObjsMax)
FUNCTION DEFINITIONS ///.
struct Gia_Obj_t_ Gia_Obj_t
struct Gia_Man_t_ Gia_Man_t
#define Gia_ManForEachObj1(p, pObj, i)
int Gia_ManHashAnd(Gia_Man_t *p, int iLit0, int iLit1)
void Gia_ManHashStop(Gia_Man_t *p)
void Abc9Execute(Ntk *pNtk, std::string Command)
void GiaReader(Gia_Man_t *pGia, Ntk *pNtk)
Gia_Man_t * CreateGia(Ntk *pNtk, bool fHash=true)