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
5b80d704
Commit
5b80d704
authored
Aug 09, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved abstraction refinement.
parent
d01c0807
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
src/aig/gia/giaAbsGla2.c
+5
-7
src/aig/gia/giaAbsRef.c
+0
-0
src/aig/gia/giaAbsRef2.c
+0
-0
src/misc/vec/vecInt.h
+6
-4
No files found.
src/aig/gia/giaAbsGla2.c
View file @
5b80d704
...
...
@@ -20,7 +20,7 @@
#include "gia.h"
#include "giaAbsRef.h"
#include "giaAbsRef2.h"
//
#include "giaAbsRef2.h"
#include "sat/cnf/cnf.h"
#include "sat/bsat/satSolver2.h"
#include "base/main/main.h"
...
...
@@ -52,7 +52,7 @@ struct Ga2_Man_t_
int
nMarked
;
// total number of marked nodes and flops
// refinement
Rnm_Man_t
*
pRnm
;
// refinement manager
Rf2_Man_t
*
pRf2
;
// refinement manager
//
Rf2_Man_t * pRf2; // refinement manager
// SAT solver and variables
Vec_Ptr_t
*
vId2Lit
;
// mapping, for each timeframe, of object ID into SAT literal
sat_solver2
*
pSat
;
// incremental SAT solver
...
...
@@ -396,7 +396,7 @@ Ga2_Man_t * Ga2_ManStart( Gia_Man_t * pGia, Gia_ParVta_t * pPars )
Vec_IntPush
(
p
->
vAbs
,
0
);
// refinement
p
->
pRnm
=
Rnm_ManStart
(
pGia
);
p
->
pRf2
=
Rf2_ManStart
(
pGia
);
//
p->pRf2 = Rf2_ManStart( pGia );
// SAT solver and variables
p
->
vId2Lit
=
Vec_PtrAlloc
(
1000
);
// temporaries
...
...
@@ -459,7 +459,7 @@ void Ga2_ManStop( Ga2_Man_t * p )
Vec_IntFree
(
p
->
vLits
);
Vec_IntFree
(
p
->
vIsopMem
);
Rnm_ManStop
(
p
->
pRnm
,
p
->
pPars
->
fVerbose
);
Rf2_ManStop
(
p
->
pRf2
,
p
->
pPars
->
fVerbose
);
//
Rf2_ManStop( p->pRf2, p->pPars->fVerbose );
ABC_FREE
(
p
->
pTable
);
ABC_FREE
(
p
->
pSopSizes
);
ABC_FREE
(
p
->
pSops
[
1
]
);
...
...
@@ -1224,11 +1224,9 @@ Vec_Int_t * Ga2_ManRefine( Ga2_Man_t * p )
Gia_Obj_t
*
pObj
;
int
i
;
Ga2_GlaPrepareCexAndMap
(
p
,
&
pCex
,
&
vMap
);
// Rf2_ManRefine( p->pRf2, pCex, vMap, p->pPars->fPropFanout, 1 );
// Rf2_ManRefine( p->pRf2, pCex, vMap, p->pPars->fPropFanout, 1 );
vVec
=
Rnm_ManRefine
(
p
->
pRnm
,
pCex
,
vMap
,
p
->
pPars
->
fPropFanout
,
1
);
// printf( "Refinement %d\n", Vec_IntSize(vVec) );
Abc_CexFree
(
pCex
);
if
(
Vec_IntSize
(
vVec
)
==
0
)
{
...
...
src/aig/gia/giaAbsRef.c
View file @
5b80d704
This diff is collapsed.
Click to expand it.
src/aig/gia/giaAbsRef2.c
View file @
5b80d704
This diff is collapsed.
Click to expand it.
src/misc/vec/vecInt.h
View file @
5b80d704
...
...
@@ -1170,23 +1170,25 @@ static inline void Vec_IntSort( Vec_Int_t * p, int fReverse )
Synopsis [Leaves only unique entries.]
Description []
Description [
Returns the number of duplicated entried found.
]
SideEffects []
SeeAlso []
***********************************************************************/
static
inline
void
Vec_IntUniqify
(
Vec_Int_t
*
p
)
static
inline
int
Vec_IntUniqify
(
Vec_Int_t
*
p
)
{
int
i
,
k
;
int
i
,
k
,
RetValue
;
if
(
p
->
nSize
<
2
)
return
;
return
0
;
Vec_IntSort
(
p
,
0
);
for
(
i
=
k
=
1
;
i
<
p
->
nSize
;
i
++
)
if
(
p
->
pArray
[
i
]
!=
p
->
pArray
[
i
-
1
]
)
p
->
pArray
[
k
++
]
=
p
->
pArray
[
i
];
RetValue
=
p
->
nSize
-
k
;
p
->
nSize
=
k
;
return
RetValue
;
}
/**Function*************************************************************
...
...
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