summaryrefslogtreecommitdiffstats
path: root/src/map
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-06-17 21:00:51 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-06-17 21:00:51 -0700
commit85e23c84597c57d45c70125871fb3b6e1352aa90 (patch)
tree76fa0aa729f1bee955fb8f997f8e8a96aae409cf /src/map
parenta03a726de2580b5a58610c4435129d4af66f1c84 (diff)
downloadabc-85e23c84597c57d45c70125871fb3b6e1352aa90.tar.gz
abc-85e23c84597c57d45c70125871fb3b6e1352aa90.tar.bz2
abc-85e23c84597c57d45c70125871fb3b6e1352aa90.zip
Various changes to enable better CNF generation.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mpm/mpmDsd.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/map/mpm/mpmDsd.c b/src/map/mpm/mpmDsd.c
index 662c9bb4..4b25fcd6 100644
--- a/src/map/mpm/mpmDsd.c
+++ b/src/map/mpm/mpmDsd.c
@@ -629,6 +629,28 @@ static Mpm_Dsd_t s_DsdClass6[595] = {
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
+
+/**Function*************************************************************
+
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+Vec_Wrd_t * Mpm_ManGetTruthWithCnf( int Limit )
+{
+ Vec_Wrd_t * vRes = Vec_WrdAlloc( 1000 );
+ int i;
+ for ( i = 0; i < 595; i++ )
+ if ( s_DsdClass6[i].nClauses <= Limit )
+ Vec_WrdPush( vRes, s_DsdClass6[i].uTruth );
+ return vRes;
+}
+
/**Function*************************************************************
Synopsis []