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
7fd65344
Commit
7fd65344
authored
Jul 04, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvement in &gla.
parent
500c76d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
274 additions
and
7 deletions
+274
-7
src/aig/gia/giaAbsGla.c
+235
-3
src/aig/gia/giaAbsVta.c
+36
-4
src/sat/cnf/cnf.h
+1
-0
src/sat/cnf/cnfCore.c
+1
-0
src/sat/cnf/cnfMan.c
+1
-0
No files found.
src/aig/gia/giaAbsGla.c
View file @
7fd65344
This diff is collapsed.
Click to expand it.
src/aig/gia/giaAbsVta.c
View file @
7fd65344
...
...
@@ -647,6 +647,30 @@ void Vta_ManSatVerify( Vta_Man_t * p )
SeeAlso []
***********************************************************************/
void
Vta_ManProfileAddition
(
Vta_Man_t
*
p
,
Vec_Int_t
*
vTermsToAdd
)
{
Vta_Obj_t
*
pThis
;
Gia_Obj_t
*
pObj
;
// profile the added ones
int
i
,
*
pCounters
=
ABC_CALLOC
(
int
,
p
->
pPars
->
iFrame
+
1
);
Vta_ManForEachObjObjVec
(
vTermsToAdd
,
p
,
pThis
,
pObj
,
i
)
pCounters
[
pThis
->
iFrame
]
++
;
for
(
i
=
0
;
i
<=
p
->
pPars
->
iFrame
;
i
++
)
printf
(
"%2d"
,
pCounters
[
i
]
);
printf
(
"***
\n
"
);
}
/**Function*************************************************************
Synopsis [Refines abstraction.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Abc_Cex_t
*
Vta_ManRefineAbstraction
(
Vta_Man_t
*
p
,
int
f
)
{
int
fVerify
=
0
;
...
...
@@ -733,7 +757,12 @@ Abc_Cex_t * Vta_ManRefineAbstraction( Vta_Man_t * p, int f )
}
/*
// update priorities according to reconvergest counters
Vta_ManForEachObjObjVecReverse( vOrder, p, pThis, pObj, i )
if ( pThis->Prio > 0 )
pThis->Prio = 10;
*/
/*
// update priorities according to reconvergence counters
Vec_PtrForEachEntry( Vta_Obj_t *, vTermsUsed, pThis, i )
{
Vta_Obj_t * pThis0, * pThis1;
...
...
@@ -758,13 +787,13 @@ Abc_Cex_t * Vta_ManRefineAbstraction( Vta_Man_t * p, int f )
}
*/
/*
// update priorities according to reconverge
st
counters
// update priorities according to reconverge
nce
counters
Vec_PtrForEachEntry
(
Vta_Obj_t
*
,
vTermsUsed
,
pThis
,
i
)
pThis
->
Prio
=
pThis
->
iObj
;
Vec_PtrForEachEntry
(
Vta_Obj_t
*
,
vTermsUnused
,
pThis
,
i
)
pThis
->
Prio
=
pThis
->
iObj
;
*/
// objects with equal distance should receive priority based on number
// those objects whose prototypes have been added in other timeframes
...
...
@@ -943,6 +972,7 @@ Abc_Cex_t * Vta_ManRefineAbstraction( Vta_Man_t * p, int f )
//Vec_IntReverseOrder( vTermsToAdd );
//Vec_IntSort( vTermsToAdd, 1 );
// cleanup
Vec_PtrFree
(
vTermsUsed
);
Vec_PtrFree
(
vTermsUnused
);
...
...
@@ -1017,6 +1047,8 @@ Abc_Cex_t * Vta_ManRefineAbstraction( Vta_Man_t * p, int f )
pCex
=
Vga_ManDeriveCex
(
p
);
else
{
// Vta_ManProfileAddition( p, vTermsToAdd );
Vta_ManForEachObjObjVec
(
vTermsToAdd
,
p
,
pThis
,
pObj
,
i
)
if
(
!
Gia_ObjIsPi
(
p
->
pGia
,
pObj
)
)
Vga_ManAddClausesOne
(
p
,
pThis
->
iObj
,
pThis
->
iFrame
);
...
...
src/sat/cnf/cnf.h
View file @
7fd65344
...
...
@@ -64,6 +64,7 @@ struct Cnf_Dat_t_
int
*
pVarNums
;
// the number of CNF variable for each node ID (-1 if unused)
int
*
pObj2Clause
;
// the mapping of objects into clauses
int
*
pObj2Count
;
// the mapping of objects into clause number
Vec_Int_t
*
vMapping
;
// mapping of internal nodes
};
// the cut used to represent node in the AIG
...
...
src/sat/cnf/cnfCore.c
View file @
7fd65344
...
...
@@ -180,6 +180,7 @@ clk = clock();
Cnf_ManTransferCuts
(
p
);
vMapped
=
Cnf_ManScanMapping
(
p
,
1
,
1
);
pCnf
=
Cnf_ManWriteCnfOther
(
p
,
vMapped
);
pCnf
->
vMapping
=
Cnf_ManWriteCnfMapping
(
p
,
vMapped
);
Vec_PtrFree
(
vMapped
);
Aig_MmFixedStop
(
pMemCuts
,
0
);
p
->
timeSave
=
clock
()
-
clk
;
...
...
src/sat/cnf/cnfMan.c
View file @
7fd65344
...
...
@@ -181,6 +181,7 @@ void Cnf_DataFree( Cnf_Dat_t * p )
{
if
(
p
==
NULL
)
return
;
Vec_IntFreeP
(
&
p
->
vMapping
);
ABC_FREE
(
p
->
pObj2Clause
);
ABC_FREE
(
p
->
pObj2Count
);
ABC_FREE
(
p
->
pClauses
[
0
]
);
...
...
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