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
901560bb
Commit
901560bb
authored
Dec 09, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deriving equivalent nets from proved equivalences.
parent
5b8e56b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletions
+28
-1
src/base/abci/abcDress2.c
+28
-1
No files found.
src/base/abci/abcDress2.c
View file @
901560bb
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include "base/abc/abc.h"
#include "base/abc/abc.h"
#include "aig/aig/aig.h"
#include "aig/aig/aig.h"
#include "proof/dch/dch.h"
#include "proof/dch/dch.h"
#include "aig/gia/giaAig.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -274,6 +275,32 @@ Vec_Ptr_t * Abc_NtkDressMapIds( Aig_Man_t * pMiter, Abc_Ntk_t * pNtk1, Abc_Ntk_t
...
@@ -274,6 +275,32 @@ Vec_Ptr_t * Abc_NtkDressMapIds( Aig_Man_t * pMiter, Abc_Ntk_t * pNtk1, Abc_Ntk_t
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Alternative way to compute equivalences.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Dch_ComputeEquivalences2
(
Aig_Man_t
*
pMiter
,
Dch_Pars_t
*
pPars
)
{
extern
Gia_Man_t
*
Cec4_ManSimulateTest3
(
Gia_Man_t
*
p
,
int
nBTLimit
,
int
fVerbose
);
Gia_Man_t
*
pGia
=
Gia_ManFromAigSimple
(
pMiter
);
Gia_Man_t
*
pNew
=
Cec4_ManSimulateTest3
(
pGia
,
pPars
->
nBTLimit
,
pPars
->
fVerbose
);
int
i
,
k
;
ABC_FREE
(
pMiter
->
pReprs
);
pMiter
->
pReprs
=
ABC_CALLOC
(
Aig_Obj_t
*
,
Aig_ManObjNumMax
(
pMiter
)
);
Gia_ManForEachClass
(
pGia
,
i
)
Gia_ClassForEachObj1
(
pGia
,
i
,
k
)
pMiter
->
pReprs
[
k
]
=
Aig_ManObj
(
pMiter
,
i
);
Gia_ManStop
(
pGia
);
Gia_ManStop
(
pNew
);
}
/**Function*************************************************************
Synopsis [Computes equivalence classes of objects in pNtk1 and pNtk2.]
Synopsis [Computes equivalence classes of objects in pNtk1 and pNtk2.]
Description [Returns the array (Vec_Ptr_t) of integer arrays (Vec_Int_t).
Description [Returns the array (Vec_Ptr_t) of integer arrays (Vec_Int_t).
...
@@ -307,7 +334,7 @@ Vec_Ptr_t * Abc_NtkDressComputeEquivs( Abc_Ntk_t * pNtk1, Abc_Ntk_t * pNtk2, int
...
@@ -307,7 +334,7 @@ Vec_Ptr_t * Abc_NtkDressComputeEquivs( Abc_Ntk_t * pNtk1, Abc_Ntk_t * pNtk2, int
pPars
->
nBTLimit
=
nConflictLimit
;
pPars
->
nBTLimit
=
nConflictLimit
;
pPars
->
fVerbose
=
fVerbose
;
pPars
->
fVerbose
=
fVerbose
;
// perform SAT sweeping
// perform SAT sweeping
Dch_ComputeEquivalences
(
pMiter
,
pPars
);
Dch_ComputeEquivalences
2
(
pMiter
,
pPars
);
// now, pMiter is annotated with the equivl class info
// now, pMiter is annotated with the equivl class info
// convert this info into the resulting array
// convert this info into the resulting array
vRes
=
Abc_NtkDressMapIds
(
pMiter
,
pNtk1
,
pNtk2
);
vRes
=
Abc_NtkDressMapIds
(
pMiter
,
pNtk1
,
pNtk2
);
...
...
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