Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
f79d8e4b
Commit
f79d8e4b
authored
Jun 23, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to CNF generation.
parent
e19d21a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
src/aig/gia/giaMf.c
+9
-0
src/base/io/io.c
+1
-1
No files found.
src/aig/gia/giaMf.c
View file @
f79d8e4b
...
...
@@ -455,6 +455,15 @@ Cnf_Dat_t * Mf_ManDeriveCnf( Mf_Man_t * p, int fCnfObjIds, int fAddOrCla )
pCnf
->
pVarNums
[
Id
]
=
pCnfIds
[
Gia_ManCiIdToId
(
p
->
pGia
,
i
)];
Gia_ManForEachCoId
(
p
->
pGia0
,
Id
,
i
)
pCnf
->
pVarNums
[
Id
]
=
pCnfIds
[
Gia_ManCoIdToId
(
p
->
pGia
,
i
)];
/*
// transform polarity of the internal nodes
Gia_ManSetPhase( p->pGia );
Gia_ManForEachCo( p->pGia, pObj, i )
pObj->fPhase = 0;
for ( i = 0; i < pCnf->nLiterals; i++ )
if ( Gia_ManObj(p->pGia, Abc_Lit2Var(pCnf->pClauses[0][i]))->fPhase )
pCnf->pClauses[0][i] = Abc_LitNot( pCnf->pClauses[0][i] );
*/
}
else
pCnf
->
pVarNums
=
Vec_IntReleaseArray
(
vCnfIds
);
...
...
src/base/io/io.c
View file @
f79d8e4b
...
...
@@ -1914,7 +1914,7 @@ int IoCommandWriteCnf( Abc_Frame_t * pAbc, int argc, char **argv )
usage:
fprintf
(
pAbc
->
Err
,
"usage: write_cnf [-nfpcvh] <file>
\n
"
);
fprintf
(
pAbc
->
Err
,
"
\t
writes the miter cone into a CNF file
\n
"
);
fprintf
(
pAbc
->
Err
,
"
\t
generated CNF for the miter (see also
\"
&write_cnf
\"
)
\n
"
);
fprintf
(
pAbc
->
Err
,
"
\t
-n : toggle using new algorithm [default = %s]
\n
"
,
fNewAlgo
?
"yes"
:
"no"
);
fprintf
(
pAbc
->
Err
,
"
\t
-f : toggle using fast algorithm [default = %s]
\n
"
,
fFastAlgo
?
"yes"
:
"no"
);
fprintf
(
pAbc
->
Err
,
"
\t
-p : toggle using all primes to enhance implicativity [default = %s]
\n
"
,
fAllPrimes
?
"yes"
:
"no"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment