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
1f16b97c
Commit
1f16b97c
authored
Sep 29, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing default values.
parent
73861998
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
abc.rc
+1
-0
src/aig/gia/giaBalance.c
+3
-2
src/misc/vec/vecHash.h
+13
-0
src/opt/dau/dauGia.c
+1
-1
No files found.
abc.rc
View file @
1f16b97c
...
...
@@ -123,6 +123,7 @@ alias blif2aig "undc; strash; zero"
alias v2p "&vta_gla; &ps; &gla_derive; &put; w 1.aig; pdr -v"
alias g2p "&ps; &gla_derive; &put; w 2.aig; pdr -v"
alias &fx_ "&put; sweep; sop; fx; st; &get"
alias &sw_ "&put; sweep; st; &get"
# resubstitution scripts for the IWLS paper
alias src_rw "st; rw -l; rwz -l; rwz -l"
...
...
src/aig/gia/giaBalance.c
View file @
1f16b97c
...
...
@@ -491,7 +491,7 @@ void Dam_ManCreatePairs( Dam_Man_t * p, int fVerbose )
Dam_ManCollectSets
(
p
);
vSuper
=
p
->
pGia
->
vSuper
;
vDivs
=
Vec_IntAlloc
(
Gia_ManObjNum
(
p
->
pGia
)
);
vHash
=
Hash_IntManStart
(
Gia_ManObjNum
(
p
->
pGia
)
);
vHash
=
Hash_IntManStart
(
Gia_ManObjNum
(
p
->
pGia
)
/
2
);
Dam_ManCreateMultiRefs
(
p
,
&
vRefsAnd
,
&
vRefsXor
);
Gia_ManForEachAnd
(
p
->
pGia
,
pObj
,
i
)
{
...
...
@@ -537,8 +537,9 @@ void Dam_ManCreatePairs( Dam_Man_t * p, int fVerbose )
}
Vec_IntFree
(
vRefsAnd
);
Vec_IntFree
(
vRefsXor
);
// Hash_IntManProfile( vHash );
// remove entries that appear only once
p
->
vHash
=
Hash_IntManStart
(
2
*
nDivsUsed
);
p
->
vHash
=
Hash_IntManStart
(
3
*
nDivsUsed
/
2
);
p
->
vCounts
=
Vec_FltAlloc
(
2
*
nDivsUsed
);
Vec_FltPush
(
p
->
vCounts
,
ABC_INFINITY
);
p
->
vQue
=
Vec_QueAlloc
(
Vec_FltCap
(
p
->
vCounts
)
);
Vec_QueSetCosts
(
p
->
vQue
,
Vec_FltArrayP
(
p
->
vCounts
)
);
...
...
src/misc/vec/vecHash.h
View file @
1f16b97c
...
...
@@ -102,6 +102,19 @@ static inline int Hash_IntManEntryNum( Hash_IntMan_t * p )
{
return
Vec_IntSize
(
p
->
vObjs
)
/
4
-
1
;
}
static
inline
void
Hash_IntManProfile
(
Hash_IntMan_t
*
p
)
{
Hash_IntObj_t
*
pObj
;
int
i
,
Count
,
Entry
;
Vec_IntForEachEntry
(
p
->
vTable
,
Entry
,
i
)
{
Count
=
0
;
for
(
pObj
=
Hash_IntObj
(
p
,
Entry
);
pObj
;
pObj
=
Hash_IntObj
(
p
,
pObj
->
iNext
)
)
Count
++
;
printf
(
"%d "
,
Count
);
}
printf
(
"
\n
"
);
}
/**Function*************************************************************
...
...
src/opt/dau/dauGia.c
View file @
1f16b97c
...
...
@@ -217,7 +217,7 @@ int Dsm_ManDeriveGia( void * p, word uTruth, Vec_Int_t * vLeaves, Vec_Int_t * vC
int
nSizeNonDec
;
m_Calls
++
;
// static int Counter = 0; Counter++;
nSizeNonDec
=
Dau_DsdDecompose
(
&
uTruth
,
Vec_IntSize
(
vLeaves
),
1
,
1
,
pDsd
);
nSizeNonDec
=
Dau_DsdDecompose
(
&
uTruth
,
Vec_IntSize
(
vLeaves
),
0
,
1
,
pDsd
);
if
(
nSizeNonDec
)
m_NonDsd
++
;
// printf( "%s\n", pDsd );
...
...
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