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
e0f27f5a
Commit
e0f27f5a
authored
Nov 10, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved DSD.
parent
fdcbb2cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
5 deletions
+17
-5
abclib.dsp
+4
-0
src/base/abci/abcDec.c
+2
-2
src/opt/dau/dau.h
+9
-2
src/opt/dau/dauDsd.c
+0
-0
src/opt/dau/dauMerge.c
+0
-0
src/opt/dau/module.make
+2
-1
No files found.
abclib.dsp
View file @
e0f27f5a
...
@@ -1997,6 +1997,10 @@ SOURCE=.\src\opt\dau\dauEnum.c
...
@@ -1997,6 +1997,10 @@ SOURCE=.\src\opt\dau\dauEnum.c
SOURCE=.\src\opt\dau\dauInt.h
SOURCE=.\src\opt\dau\dauInt.h
# End Source File
# End Source File
# Begin Source File
SOURCE=.\src\opt\dau\dauMerge.c
# End Source File
# End Group
# End Group
# End Group
# End Group
# Begin Group "map"
# Begin Group "map"
...
...
src/base/abci/abcDec.c
View file @
e0f27f5a
...
@@ -541,7 +541,7 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
...
@@ -541,7 +541,7 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
}
}
else
if
(
DecType
==
4
)
else
if
(
DecType
==
4
)
{
{
extern
void
Dau_DsdTestOne
(
word
t
,
int
i
);
//
extern void Dau_DsdTestOne( word t, int i );
if
(
p
->
nVars
!=
6
)
if
(
p
->
nVars
!=
6
)
{
{
printf
(
"Currently only works for 6 variables.
\n
"
);
printf
(
"Currently only works for 6 variables.
\n
"
);
...
@@ -554,7 +554,7 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
...
@@ -554,7 +554,7 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
{
{
if
(
fVerbose
)
if
(
fVerbose
)
printf
(
"%7d : "
,
i
);
printf
(
"%7d : "
,
i
);
Dau_DsdTestOne
(
*
p
->
pFuncs
[
i
],
i
);
//
Dau_DsdTestOne( *p->pFuncs[i], i );
}
}
}
}
else
assert
(
0
);
else
assert
(
0
);
...
...
src/opt/dau/dau.h
View file @
e0f27f5a
...
@@ -37,9 +37,11 @@
...
@@ -37,9 +37,11 @@
/// PARAMETERS ///
/// PARAMETERS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
ABC_NAMESPACE_HEADER_START
ABC_NAMESPACE_HEADER_START
#define DAU_MAX_VAR 16 // should be 6 or more
#define DAU_MAX_STR 256
#define DAU_MAX_WORD (1<<(DAU_MAX_VAR-6))
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// BASIC TYPES ///
/// BASIC TYPES ///
...
@@ -56,9 +58,14 @@ ABC_NAMESPACE_HEADER_START
...
@@ -56,9 +58,14 @@ ABC_NAMESPACE_HEADER_START
/*=== dauCanon.c ==========================================================*/
/*=== dauCanon.c ==========================================================*/
extern
unsigned
Abc_TtCanonicize
(
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
);
extern
unsigned
Abc_TtCanonicize
(
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
);
/*=== dauDsd.c ==========================================================*/
/*=== dauDsd.c ==========================================================*/
extern
char
*
Dau_DsdDecompose
(
word
*
pTruth
,
int
nVarsInit
,
int
*
pnSizeNonDec
);
extern
int
Dau_DsdDecompose
(
word
*
pTruth
,
int
nVarsInit
,
int
fSplitPrime
,
char
*
pRes
);
extern
word
*
Dau_DsdToTruth
(
char
*
p
,
int
nVars
);
extern
word
*
Dau_DsdToTruth
(
char
*
p
,
int
nVars
);
extern
word
Dau_Dsd6ToTruth
(
char
*
p
);
extern
void
Dau_DsdNormalize
(
char
*
p
);
/*=== dauMerge.c ==========================================================*/
extern
void
Dau_DsdRemoveBraces
(
char
*
pDsd
,
int
*
pMatches
);
extern
char
*
Dau_DsdMerge
(
char
*
pDsd0i
,
int
*
pPerm0
,
char
*
pDsd1i
,
int
*
pPerm1
,
int
fCompl0
,
int
fCompl1
);
ABC_NAMESPACE_HEADER_END
ABC_NAMESPACE_HEADER_END
...
...
src/opt/dau/dauDsd.c
View file @
e0f27f5a
This diff is collapsed.
Click to expand it.
src/opt/dau/dauMerge.c
0 → 100644
View file @
e0f27f5a
This diff is collapsed.
Click to expand it.
src/opt/dau/module.make
View file @
e0f27f5a
...
@@ -2,4 +2,5 @@ SRC += src/opt/dau/dau.c \
...
@@ -2,4 +2,5 @@ SRC += src/opt/dau/dau.c \
src/opt/dau/dauCanon.c
\
src/opt/dau/dauCanon.c
\
src/opt/dau/dauCore.c
\
src/opt/dau/dauCore.c
\
src/opt/dau/dauDsd.c
\
src/opt/dau/dauDsd.c
\
src/opt/dau/dauEnum.c
src/opt/dau/dauEnum.c
\
src/opt/dau/dauMerge.c
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