diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2016-05-20 20:38:43 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2016-05-20 20:38:43 -0700 |
commit | 34c5ac88d4c2ca440a716892c9fd0045b78662c9 (patch) | |
tree | 3d3efa059def153ef549451bde4ed93771bb85a3 /src/base/wlc/wlcNtk.c | |
parent | 7b570b62414f2482eed19af05a591803ff9315c5 (diff) | |
download | abc-34c5ac88d4c2ca440a716892c9fd0045b78662c9.tar.gz abc-34c5ac88d4c2ca440a716892c9fd0045b78662c9.tar.bz2 abc-34c5ac88d4c2ca440a716892c9fd0045b78662c9.zip |
Improving SMT-LIB parser.
Diffstat (limited to 'src/base/wlc/wlcNtk.c')
-rw-r--r-- | src/base/wlc/wlcNtk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/wlc/wlcNtk.c b/src/base/wlc/wlcNtk.c index 442ddb83..c4f9ac70 100644 --- a/src/base/wlc/wlcNtk.c +++ b/src/base/wlc/wlcNtk.c @@ -50,6 +50,8 @@ static char * Wlc_Names[WLC_OBJ_NUMBER+1] = { "&", // 16: bitwise AND "|", // 17: bitwise OR "^", // 18: bitwise XOR + "~&", // 16: bitwise NAND + "~|", // 17: bitwise NOR "~^", // 19: bitwise NXOR "[:]", // 20: bit selection "{,}", // 21: bit concatenation @@ -362,6 +364,10 @@ void Wlc_NtkPrintDistrib( Wlc_Ntk_t * p, int fVerbose ) Vec_IntAddToEntry( vAnds, WLC_OBJ_BIT_OR, Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) ); else if ( pObj->Type == WLC_OBJ_BIT_XOR ) Vec_IntAddToEntry( vAnds, WLC_OBJ_BIT_XOR, 3 * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) ); + else if ( pObj->Type == WLC_OBJ_BIT_NAND ) + Vec_IntAddToEntry( vAnds, WLC_OBJ_BIT_NAND, Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) ); + else if ( pObj->Type == WLC_OBJ_BIT_NOR ) + Vec_IntAddToEntry( vAnds, WLC_OBJ_BIT_NOR, Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) ); else if ( pObj->Type == WLC_OBJ_BIT_NXOR ) Vec_IntAddToEntry( vAnds, WLC_OBJ_BIT_NXOR, 3 * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) ); else if ( pObj->Type == WLC_OBJ_BIT_SELECT ) |