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
608fe4e3
Commit
608fe4e3
authored
Oct 09, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Towards better Boolean matching.
parent
51fb9e4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
src/base/abci/abc.c
+1
-0
src/base/abci/abcDec.c
+14
-1
No files found.
src/base/abci/abc.c
View file @
608fe4e3
...
@@ -5288,6 +5288,7 @@ usage:
...
@@ -5288,6 +5288,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
2: bi-decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
2: bi-decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
3: disjoint-support decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
3: disjoint-support decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
4: updated disjoint-support decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
4: updated disjoint-support decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
5: enumerating decomposable variable sets
\n
"
);
Abc_Print
(
-
2
,
"
\t
-N <num> : the number of support variables (binary files only) [default = unused]
\n
"
);
Abc_Print
(
-
2
,
"
\t
-N <num> : the number of support variables (binary files only) [default = unused]
\n
"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose printout [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose printout [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
src/base/abci/abcDec.c
View file @
608fe4e3
...
@@ -481,6 +481,8 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
...
@@ -481,6 +481,8 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
pAlgoName
=
"DSD"
;
pAlgoName
=
"DSD"
;
else
if
(
DecType
==
4
)
else
if
(
DecType
==
4
)
pAlgoName
=
"fast DSD"
;
pAlgoName
=
"fast DSD"
;
else
if
(
DecType
==
5
)
pAlgoName
=
"analysis"
;
if
(
pAlgoName
)
if
(
pAlgoName
)
printf
(
"Applying %-10s to %8d func%s of %2d vars... "
,
printf
(
"Applying %-10s to %8d func%s of %2d vars... "
,
...
@@ -558,6 +560,17 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
...
@@ -558,6 +560,17 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
nNodes
+=
Dau_DsdCountAnds
(
pDsd
);
nNodes
+=
Dau_DsdCountAnds
(
pDsd
);
}
}
}
}
else
if
(
DecType
==
5
)
{
for
(
i
=
0
;
i
<
p
->
nFuncs
;
i
++
)
{
extern
void
Dau_DecTrySets
(
word
*
pInit
,
int
nVars
);
if
(
fVerbose
)
printf
(
"%7d : "
,
i
);
Dau_DecTrySets
(
p
->
pFuncs
[
i
],
p
->
nVars
);
printf
(
"
\n
"
);
}
}
else
assert
(
0
);
else
assert
(
0
);
printf
(
"AIG nodes =%9d "
,
nNodes
);
printf
(
"AIG nodes =%9d "
,
nNodes
);
...
@@ -608,7 +621,7 @@ int Abc_DecTest( char * pFileName, int DecType, int nVarNum, int fVerbose )
...
@@ -608,7 +621,7 @@ int Abc_DecTest( char * pFileName, int DecType, int nVarNum, int fVerbose )
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
if
(
DecType
==
0
)
if
(
DecType
==
0
)
{
if
(
nVarNum
<
0
)
Abc_TtStoreTest
(
pFileName
);
}
{
if
(
nVarNum
<
0
)
Abc_TtStoreTest
(
pFileName
);
}
else
if
(
DecType
>=
1
&&
DecType
<=
4
)
else
if
(
DecType
>=
1
&&
DecType
<=
5
)
Abc_TruthDecTest
(
pFileName
,
DecType
,
nVarNum
,
fVerbose
);
Abc_TruthDecTest
(
pFileName
,
DecType
,
nVarNum
,
fVerbose
);
else
else
printf
(
"Unknown decomposition type value (%d).
\n
"
,
DecType
);
printf
(
"Unknown decomposition type value (%d).
\n
"
,
DecType
);
...
...
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