summaryrefslogtreecommitdiffstats
path: root/src/aig
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2017-10-06 17:16:16 +0300
committerAlan Mishchenko <alanmi@berkeley.edu>2017-10-06 17:16:16 +0300
commitf97b8d2882bc69d37e6559a12b9e31a988a7eb97 (patch)
tree2673a43f17559b71c4d71562bb175fc82517175f /src/aig
parent02972e53c21d99c98c3c7f818669fb006cb81b40 (diff)
downloadabc-f97b8d2882bc69d37e6559a12b9e31a988a7eb97.tar.gz
abc-f97b8d2882bc69d37e6559a12b9e31a988a7eb97.tar.bz2
abc-f97b8d2882bc69d37e6559a12b9e31a988a7eb97.zip
Improvements to SAT based SOP computation.
Diffstat (limited to 'src/aig')
-rw-r--r--src/aig/gia/gia.h1
-rw-r--r--src/aig/gia/giaHash.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/aig/gia/gia.h b/src/aig/gia/gia.h
index cbb98d1c..591dd419 100644
--- a/src/aig/gia/gia.h
+++ b/src/aig/gia/gia.h
@@ -1353,6 +1353,7 @@ extern void Gia_ManHashProfile( Gia_Man_t * p );
extern int Gia_ManHashLookupInt( Gia_Man_t * p, int iLit0, int iLit1 );
extern int Gia_ManHashLookup( Gia_Man_t * p, Gia_Obj_t * p0, Gia_Obj_t * p1 );
extern int Gia_ManHashAndMulti( Gia_Man_t * p, Vec_Int_t * vLits );
+extern int Gia_ManHashAndMulti2( Gia_Man_t * p, Vec_Int_t * vLits );
/*=== giaIf.c ===========================================================*/
extern void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile );
extern void Gia_ManPrintPackingStats( Gia_Man_t * p );
diff --git a/src/aig/gia/giaHash.c b/src/aig/gia/giaHash.c
index c80f9e07..c6067312 100644
--- a/src/aig/gia/giaHash.c
+++ b/src/aig/gia/giaHash.c
@@ -798,6 +798,13 @@ int Gia_ManHashAndMulti( Gia_Man_t * p, Vec_Int_t * vLits )
assert( Vec_IntSize(vLits) == 1 );
return Vec_IntEntry(vLits, 0);
}
+int Gia_ManHashAndMulti2( Gia_Man_t * p, Vec_Int_t * vLits )
+{
+ int i, iLit, iRes = 1;
+ Vec_IntForEachEntry( vLits, iLit, i )
+ iRes = Gia_ManHashAnd( p, iRes, iLit );
+ return iRes;
+}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///