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
f026e653
Commit
f026e653
authored
May 03, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings and errors.
parent
e149cdcd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/aig/gia/gia.h
+3
-0
src/aig/gia/giaResub.c
+2
-3
src/base/abci/abc.c
+2
-4
src/base/abci/abcNtbdd.c
+1
-1
No files found.
src/aig/gia/gia.h
View file @
f026e653
...
...
@@ -1557,6 +1557,9 @@ extern void Gia_ManIncrSimStart( Gia_Man_t * p, int nWords, int n
extern
void
Gia_ManIncrSimSet
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vObjLits
);
extern
int
Gia_ManIncrSimCheckOver
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
int
Gia_ManIncrSimCheckEqual
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
/*=== giaSimBase.c ============================================================*/
extern
Vec_Wrd_t
*
Gia_ManSimPatRead
(
char
*
pFileName
,
int
*
pnWords
);
extern
void
Gia_ManSimPatWrite
(
char
*
pFileName
,
Vec_Wrd_t
*
vSimsIn
,
int
nWords
);
/*=== giaSpeedup.c ============================================================*/
extern
float
Gia_ManDelayTraceLut
(
Gia_Man_t
*
p
);
extern
float
Gia_ManDelayTraceLutPrint
(
Gia_Man_t
*
p
,
int
fVerbose
);
...
...
src/aig/gia/giaResub.c
View file @
f026e653
...
...
@@ -942,7 +942,6 @@ Gia_Man_t * Gia_ManResub2( Gia_Man_t * pGia, int nNodes, int nSupp, int nDivs, i
}
Gia_Man_t
*
Gia_ManResub1
(
char
*
pFileName
,
int
nNodes
,
int
nSupp
,
int
nDivs
,
int
fVerbose
,
int
fVeryVerbose
)
{
extern
Vec_Wrd_t
*
Gia_ManSimPatRead
(
char
*
pFileName
,
int
*
pnWords
);
int
iTopLit
,
nWords
=
0
;
Gia_Man_t
*
pMan
=
NULL
;
Vec_Wrd_t
*
vSims
=
Gia_ManSimPatRead
(
pFileName
,
&
nWords
);
...
...
@@ -952,8 +951,8 @@ Gia_Man_t * Gia_ManResub1( char * pFileName, int nNodes, int nSupp, int nDivs, i
if
(
p
==
NULL
)
return
NULL
;
assert
(
Vec_PtrSize
(
vDivs
)
<
(
1
<<
15
)
);
printf
(
"OFF = %5d (%6.2f %%) "
,
Abc_TtCountOnesVec
(
Vec_PtrEntry
(
vDivs
,
0
),
nWords
),
100
.
0
*
Abc_TtCountOnesVec
(
Vec_PtrEntry
(
vDivs
,
0
),
nWords
)
/
(
64
*
nWords
)
);
printf
(
"ON = %5d (%6.2f %%)
\n
"
,
Abc_TtCountOnesVec
(
Vec_PtrEntry
(
vDivs
,
1
),
nWords
),
100
.
0
*
Abc_TtCountOnesVec
(
Vec_PtrEntry
(
vDivs
,
1
),
nWords
)
/
(
64
*
nWords
)
);
printf
(
"OFF = %5d (%6.2f %%) "
,
Abc_TtCountOnesVec
(
(
word
*
)
Vec_PtrEntry
(
vDivs
,
0
),
nWords
),
100
.
0
*
Abc_TtCountOnesVec
((
word
*
)
Vec_PtrEntry
(
vDivs
,
0
),
nWords
)
/
(
64
*
nWords
)
);
printf
(
"ON = %5d (%6.2f %%)
\n
"
,
Abc_TtCountOnesVec
(
(
word
*
)
Vec_PtrEntry
(
vDivs
,
1
),
nWords
),
100
.
0
*
Abc_TtCountOnesVec
((
word
*
)
Vec_PtrEntry
(
vDivs
,
1
),
nWords
)
/
(
64
*
nWords
)
);
if
(
Vec_PtrSize
(
vDivs
)
>
4000
)
{
printf
(
"Reducing all divs from %d to 4000.
\n
"
,
Vec_PtrSize
(
vDivs
)
);
...
...
src/base/abci/abc.c
View file @
f026e653
...
...
@@ -32841,7 +32841,6 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9ReadSim
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Vec_Wrd_t
*
Gia_ManSimPatRead
(
char
*
pFileName
);
int
c
,
fOutputs
=
0
,
nWords
=
4
,
fVerbose
=
0
;
char
**
pArgvNew
;
int
nArgcNew
;
...
...
@@ -32893,7 +32892,7 @@ int Abc_CommandAbc9ReadSim( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
fOutputs
)
{
Vec_WrdFreeP
(
&
pAbc
->
pGia
->
vSimsPo
);
pAbc
->
pGia
->
vSimsPo
=
Gia_ManSimPatRead
(
pArgvNew
[
0
]
);
pAbc
->
pGia
->
vSimsPo
=
Gia_ManSimPatRead
(
pArgvNew
[
0
]
,
NULL
);
if
(
Vec_WrdSize
(
pAbc
->
pGia
->
vSimsPo
)
%
Gia_ManCoNum
(
pAbc
->
pGia
)
!=
0
)
{
Vec_WrdFreeP
(
&
pAbc
->
pGia
->
vSimsPo
);
...
...
@@ -32907,7 +32906,7 @@ int Abc_CommandAbc9ReadSim( Abc_Frame_t * pAbc, int argc, char ** argv )
else
{
Vec_WrdFreeP
(
&
pAbc
->
pGia
->
vSimsPi
);
pAbc
->
pGia
->
vSimsPi
=
Gia_ManSimPatRead
(
pArgvNew
[
0
]
);
pAbc
->
pGia
->
vSimsPi
=
Gia_ManSimPatRead
(
pArgvNew
[
0
]
,
NULL
);
if
(
Vec_WrdSize
(
pAbc
->
pGia
->
vSimsPi
)
%
Gia_ManCiNum
(
pAbc
->
pGia
)
!=
0
)
{
Vec_WrdFreeP
(
&
pAbc
->
pGia
->
vSimsPi
);
...
...
@@ -32944,7 +32943,6 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9WriteSim
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Gia_ManSimPatWrite
(
char
*
pFileName
,
Vec_Wrd_t
*
vSimsIn
,
int
nWords
);
int
c
,
fOutputs
=
0
,
fVerbose
=
0
;
char
**
pArgvNew
;
int
nArgcNew
;
src/base/abci/abcNtbdd.c
View file @
f026e653
...
...
@@ -286,7 +286,7 @@ int Abc_NtkBddToMuxesPerformGlo( Abc_Ntk_t * pNtk, Abc_Ntk_t * pNtkNew, int Limi
// complement the global functions
Abc_NtkForEachCo
(
pNtk
,
pObj
,
i
)
{
DdNode
*
bFunc
=
Abc_ObjGlobalBdd
(
pObj
);
DdNode
*
bFunc
=
(
DdNode
*
)
Abc_ObjGlobalBdd
(
pObj
);
pObjNew
=
Abc_NodeBddToMuxes_rec
(
dd
,
Cudd_Regular
(
bFunc
),
pNtkNew
,
tBdd2Node
);
if
(
Cudd_IsComplement
(
bFunc
)
)
pObjNew
=
Abc_NtkCreateNodeInv
(
pNtkNew
,
pObjNew
);
...
...
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