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
15a1c4b9
Commit
15a1c4b9
authored
Feb 25, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g++ compiler errors.
parent
59bf6945
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
src/map/if/ifDsd.c
+3
-5
src/opt/dau/dau.h
+2
-1
src/opt/dau/dauDsd.c
+9
-1
src/opt/dau/dauNonDsd.c
+1
-1
No files found.
src/map/if/ifDsd.c
View file @
15a1c4b9
...
...
@@ -105,8 +105,6 @@ static inline If_DsdObj_t * If_DsdObjFanin( Vec_Ptr_t * p, If_DsdObj_t * pObj, i
#define If_DsdObjForEachFaninLit( vVec, pObj, iLit, i ) \
for ( i = 0; (i < If_DsdObjFaninNum(pObj)) && ((iLit) = If_DsdObjFaninLit(pObj, i)); i++ )
extern
void
Kit_DsdPrintFromTruth
(
unsigned
*
pTruth
,
int
nVars
);
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
...
...
@@ -404,7 +402,7 @@ void If_DsdManDump( If_DsdMan_t * p )
Abc_TtPrintHexRev
(
pFile
,
If_DsdObjTruth
(
p
,
pObj
),
p
->
nVars
);
fprintf
(
pFile
,
"
\n
"
);
printf
(
" "
);
Kit_DsdPrintFromTruth
(
(
unsigned
*
)
If_DsdObjTruth
(
p
,
pObj
),
p
->
nVars
);
Dau_DsdPrintFromTruth
(
If_DsdObjTruth
(
p
,
pObj
),
p
->
nVars
);
printf
(
"
\n
"
);
}
fclose
(
pFile
);
...
...
@@ -899,8 +897,8 @@ int If_DsdManCompute( If_DsdMan_t * p, word * pTruth, int nLeaves, unsigned char
// If_DsdManPrint( p, NULL );
printf
(
"
\n
"
);
printf
(
"Verification failed!
\n
"
);
Kit_DsdPrintFromTruth
(
(
unsigned
*
)
pTruth
,
nLeaves
);
printf
(
"
\n
"
);
Kit_DsdPrintFromTruth
(
(
unsigned
*
)
pRes
,
nLeaves
);
printf
(
"
\n
"
);
Dau_DsdPrintFromTruth
(
pTruth
,
nLeaves
);
printf
(
"
\n
"
);
Dau_DsdPrintFromTruth
(
pRes
,
nLeaves
);
printf
(
"
\n
"
);
If_DsdManPrintOne
(
stdout
,
p
,
Abc_Lit2Var
(
iDsd
),
pPerm
);
printf
(
"
\n
"
);
}
...
...
src/opt/dau/dau.h
View file @
15a1c4b9
...
...
@@ -80,7 +80,8 @@ extern unsigned Abc_TtCanonicizePhase( word * pTruth, int nVars );
/*=== dauDsd.c ==========================================================*/
extern
int
*
Dau_DsdComputeMatches
(
char
*
p
);
extern
int
Dau_DsdDecompose
(
word
*
pTruth
,
int
nVarsInit
,
int
fSplitPrime
,
int
fWriteTruth
,
char
*
pRes
);
extern
void
Dau_DsdPrintFromTruth
(
FILE
*
pFile
,
word
*
pTruth
,
int
nVarsInit
);
extern
void
Dau_DsdPrintFromTruthFile
(
FILE
*
pFile
,
word
*
pTruth
,
int
nVarsInit
);
extern
void
Dau_DsdPrintFromTruth
(
word
*
pTruth
,
int
nVarsInit
);
extern
word
*
Dau_DsdToTruth
(
char
*
p
,
int
nVars
);
extern
word
Dau_Dsd6ToTruth
(
char
*
p
);
extern
void
Dau_DsdNormalize
(
char
*
p
);
...
...
src/opt/dau/dauDsd.c
View file @
15a1c4b9
...
...
@@ -1897,7 +1897,7 @@ int Dau_DsdDecompose( word * pTruth, int nVarsInit, int fSplitPrime, int fWriteT
// assert( p->nSizeNonDec == 0 );
return
p
->
nSizeNonDec
;
}
void
Dau_DsdPrintFromTruth
(
FILE
*
pFile
,
word
*
pTruth
,
int
nVarsInit
)
void
Dau_DsdPrintFromTruth
File
(
FILE
*
pFile
,
word
*
pTruth
,
int
nVarsInit
)
{
char
pRes
[
DAU_MAX_STR
];
word
pTemp
[
DAU_MAX_WORD
];
...
...
@@ -1905,6 +1905,14 @@ void Dau_DsdPrintFromTruth( FILE * pFile, word * pTruth, int nVarsInit )
Dau_DsdDecompose
(
pTemp
,
nVarsInit
,
0
,
1
,
pRes
);
fprintf
(
pFile
,
"%s
\n
"
,
pRes
);
}
void
Dau_DsdPrintFromTruth
(
word
*
pTruth
,
int
nVarsInit
)
{
char
pRes
[
DAU_MAX_STR
];
word
pTemp
[
DAU_MAX_WORD
];
Abc_TtCopy
(
pTemp
,
pTruth
,
Abc_TtWordNum
(
nVarsInit
),
0
);
Dau_DsdDecompose
(
pTemp
,
nVarsInit
,
0
,
1
,
pRes
);
fprintf
(
stdout
,
"%s
\n
"
,
pRes
);
}
void
Dau_DsdTest44
()
{
...
...
src/opt/dau/dauNonDsd.c
View file @
15a1c4b9
...
...
@@ -828,7 +828,7 @@ void Dau_DecTrySets( word * pInit, int nVars )
assert
(
nVars
<=
16
);
memcpy
(
p
,
pInit
,
sizeof
(
word
)
*
Abc_TtWordNum
(
nVars
)
);
vSets
=
Dau_DecFindSets
(
p
,
nVars
);
Dau_DsdPrintFromTruth
(
stdout
,
p
,
nVars
);
Dau_DsdPrintFromTruth
(
p
,
nVars
);
printf
(
"This %d-variable function has %d decomposable variable sets:
\n
"
,
nVars
,
Vec_IntSize
(
vSets
)
);
Vec_IntForEachEntry
(
vSets
,
Entry
,
i
)
{
...
...
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