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
c59121f4
Commit
c59121f4
authored
Oct 03, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix and performance improvement in &iso.
parent
755e0995
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
src/aig/gia/gia.h
+1
-1
src/aig/gia/giaIso2.c
+0
-0
src/base/abci/abc.c
+8
-4
No files found.
src/aig/gia/gia.h
View file @
c59121f4
...
@@ -1093,7 +1093,7 @@ extern Gia_Man_t * Jf_ManPerformMapping( Gia_Man_t * pGia, Jf_Par_t * pP
...
@@ -1093,7 +1093,7 @@ extern Gia_Man_t * Jf_ManPerformMapping( Gia_Man_t * pGia, Jf_Par_t * pP
/*=== giaIso.c ===========================================================*/
/*=== giaIso.c ===========================================================*/
extern
Gia_Man_t
*
Gia_ManIsoCanonicize
(
Gia_Man_t
*
p
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_ManIsoCanonicize
(
Gia_Man_t
*
p
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_ManIsoReduce
(
Gia_Man_t
*
p
,
Vec_Ptr_t
**
pvPosEquivs
,
Vec_Ptr_t
**
pvPiPerms
,
int
fEstimate
,
int
fDualOut
,
int
fVerbose
,
int
fVeryVerbose
);
extern
Gia_Man_t
*
Gia_ManIsoReduce
(
Gia_Man_t
*
p
,
Vec_Ptr_t
**
pvPosEquivs
,
Vec_Ptr_t
**
pvPiPerms
,
int
fEstimate
,
int
fDualOut
,
int
fVerbose
,
int
fVeryVerbose
);
extern
Gia_Man_t
*
Gia_ManIsoReduce2
(
Gia_Man_t
*
p
,
Vec_Ptr_t
**
pvPosEquivs
,
Vec_Ptr_t
**
pvPiPerms
,
int
fEstimate
,
int
fDualOut
,
int
fVerbose
,
int
fVeryVerbose
);
extern
Gia_Man_t
*
Gia_ManIsoReduce2
(
Gia_Man_t
*
p
,
Vec_Ptr_t
**
pvPosEquivs
,
Vec_Ptr_t
**
pvPiPerms
,
int
fEstimate
,
int
f
BetterQual
,
int
f
DualOut
,
int
fVerbose
,
int
fVeryVerbose
);
/*=== giaLogic.c ===========================================================*/
/*=== giaLogic.c ===========================================================*/
extern
void
Gia_ManTestDistance
(
Gia_Man_t
*
p
);
extern
void
Gia_ManTestDistance
(
Gia_Man_t
*
p
);
extern
void
Gia_ManSolveProblem
(
Gia_Man_t
*
pGia
,
Emb_Par_t
*
pPars
);
extern
void
Gia_ManSolveProblem
(
Gia_Man_t
*
pGia
,
Emb_Par_t
*
pPars
);
...
...
src/aig/gia/giaIso2.c
View file @
c59121f4
This diff is collapsed.
Click to expand it.
src/base/abci/abc.c
View file @
c59121f4
...
@@ -31542,9 +31542,9 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -31542,9 +31542,9 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
Gia_Man_t
*
pAig
;
Gia_Man_t
*
pAig
;
Vec_Ptr_t
*
vPosEquivs
;
Vec_Ptr_t
*
vPosEquivs
;
// Vec_Ptr_t * vPiPerms;
// Vec_Ptr_t * vPiPerms;
int
c
,
fNewAlgo
=
1
,
fEstimate
=
0
,
fDualOut
=
0
,
fVerbose
=
0
,
fVeryVerbose
=
0
;
int
c
,
fNewAlgo
=
1
,
fEstimate
=
0
,
f
BetterQual
=
0
,
f
DualOut
=
0
,
fVerbose
=
0
,
fVeryVerbose
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"nedvwh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"ne
q
dvwh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
...
@@ -31554,6 +31554,9 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -31554,6 +31554,9 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'e'
:
case
'e'
:
fEstimate
^=
1
;
fEstimate
^=
1
;
break
;
break
;
case
'q'
:
fBetterQual
^=
1
;
break
;
case
'd'
:
case
'd'
:
fDualOut
^=
1
;
fDualOut
^=
1
;
break
;
break
;
...
@@ -31580,7 +31583,7 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -31580,7 +31583,7 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
return
1
;
}
}
if
(
fNewAlgo
)
if
(
fNewAlgo
)
pAig
=
Gia_ManIsoReduce2
(
pAbc
->
pGia
,
&
vPosEquivs
,
NULL
,
fEstimate
,
fDualOut
,
fVerbose
,
fVeryVerbose
);
pAig
=
Gia_ManIsoReduce2
(
pAbc
->
pGia
,
&
vPosEquivs
,
NULL
,
fEstimate
,
f
BetterQual
,
f
DualOut
,
fVerbose
,
fVeryVerbose
);
else
else
pAig
=
Gia_ManIsoReduce
(
pAbc
->
pGia
,
&
vPosEquivs
,
NULL
,
fEstimate
,
fDualOut
,
fVerbose
,
fVeryVerbose
);
pAig
=
Gia_ManIsoReduce
(
pAbc
->
pGia
,
&
vPosEquivs
,
NULL
,
fEstimate
,
fDualOut
,
fVerbose
,
fVeryVerbose
);
// pAig = Gia_ManIsoReduce( pAbc->pGia, &vPosEquivs, &vPiPerms, 0, fDualOut, fVerbose, fVeryVerbose );
// pAig = Gia_ManIsoReduce( pAbc->pGia, &vPosEquivs, &vPiPerms, 0, fDualOut, fVerbose, fVeryVerbose );
...
@@ -31597,10 +31600,11 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -31597,10 +31600,11 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: &iso [-nedvwh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &iso [-ne
q
dvwh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
removes POs with isomorphic sequential COI
\n
"
);
Abc_Print
(
-
2
,
"
\t
removes POs with isomorphic sequential COI
\n
"
);
Abc_Print
(
-
2
,
"
\t
-n : toggle using new fast algorithm [default = %s]
\n
"
,
fNewAlgo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-n : toggle using new fast algorithm [default = %s]
\n
"
,
fNewAlgo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-e : toggle computing lower bound on equivalence classes [default = %s]
\n
"
,
fEstimate
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-e : toggle computing lower bound on equivalence classes [default = %s]
\n
"
,
fEstimate
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-q : toggle improving quality at the expense of runtime [default = %s]
\n
"
,
fBetterQual
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle treating the current AIG as a dual-output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle treating the current AIG as a dual-output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing very verbose information [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing very verbose information [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
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