summaryrefslogtreecommitdiffstats
path: root/src/aig/cnf/cnfMan.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2008-07-19 08:01:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2008-07-19 08:01:00 -0700
commitde978ced7b754706efaf18ae588e18eb05624faf (patch)
tree0180f1b83fe9a3492a754a91e1aa152024affc54 /src/aig/cnf/cnfMan.c
parent13f52980dae9821b3d7bec9ff6a0fa4e544607d7 (diff)
downloadabc-de978ced7b754706efaf18ae588e18eb05624faf.tar.gz
abc-de978ced7b754706efaf18ae588e18eb05624faf.tar.bz2
abc-de978ced7b754706efaf18ae588e18eb05624faf.zip
Version abc80719
Diffstat (limited to 'src/aig/cnf/cnfMan.c')
-rw-r--r--src/aig/cnf/cnfMan.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/aig/cnf/cnfMan.c b/src/aig/cnf/cnfMan.c
index f1c446fe..1e650a05 100644
--- a/src/aig/cnf/cnfMan.c
+++ b/src/aig/cnf/cnfMan.c
@@ -213,6 +213,22 @@ void Cnf_DataLift( Cnf_Dat_t * p, int nVarsPlus )
SeeAlso []
***********************************************************************/
+void Cnf_DataFlipLastLiteral( Cnf_Dat_t * p )
+{
+ p->pClauses[0][p->nLiterals-1] = lit_neg( p->pClauses[0][p->nLiterals-1] );
+}
+
+/**Function*************************************************************
+
+ Synopsis [Writes CNF into a file.]
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
void Cnf_DataPrint( Cnf_Dat_t * p, int fReadable )
{
FILE * pFile = stdout;