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
4aa33e7d
Commit
4aa33e7d
authored
Oct 02, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Structural reparametrization.
parent
b71d4425
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
8 deletions
+34
-8
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaTruth.c
+10
-1
src/base/abci/abc.c
+23
-7
src/proof/abs/absRpm.c
+0
-0
No files found.
src/aig/gia/gia.h
View file @
4aa33e7d
...
...
@@ -888,6 +888,7 @@ extern word Gia_ObjComputeTruthTable6( Gia_Man_t * p, Gia_Obj_t *
extern
void
Gia_ObjCollectInternal
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
);
extern
unsigned
*
Gia_ObjComputeTruthTable
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
);
extern
void
Gia_ObjComputeTruthTableStart
(
Gia_Man_t
*
p
,
int
nVarsMax
);
extern
void
Gia_ObjComputeTruthTableStop
(
Gia_Man_t
*
p
);
extern
unsigned
*
Gia_ObjComputeTruthTableCut
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
,
Vec_Int_t
*
vLeaves
);
/*=== giaTsim.c ============================================================*/
extern
Gia_Man_t
*
Gia_ManReduceConst
(
Gia_Man_t
*
pAig
,
int
fVerbose
);
...
...
src/aig/gia/giaTruth.c
View file @
4aa33e7d
...
...
@@ -285,6 +285,15 @@ void Gia_ObjComputeTruthTableStart( Gia_Man_t * p, int nVarsMax )
p
->
vTtInputs
=
Vec_PtrAllocTruthTables
(
p
->
nTtVars
);
p
->
vTtMemory
=
Vec_WrdStart
(
p
->
nTtWords
*
256
);
}
void
Gia_ObjComputeTruthTableStop
(
Gia_Man_t
*
p
)
{
p
->
nTtVars
=
0
;
p
->
nTtWords
=
0
;
Vec_StrFreeP
(
&
p
->
vTtNums
);
Vec_IntFreeP
(
&
p
->
vTtNodes
);
Vec_PtrFreeP
(
&
p
->
vTtInputs
);
Vec_WrdFreeP
(
&
p
->
vTtMemory
);
}
/**Function*************************************************************
...
...
@@ -303,7 +312,7 @@ unsigned * Gia_ObjComputeTruthTableCut( Gia_Man_t * p, Gia_Obj_t * pRoot, Vec_In
word
*
pTruth
,
*
pTruthL
,
*
pTruth0
,
*
pTruth1
;
int
i
;
assert
(
p
->
vTtMemory
!=
NULL
);
assert
(
p
->
nTtVars
<=
Vec_IntSize
(
vLeaves
)
);
assert
(
Vec_IntSize
(
vLeaves
)
<=
p
->
nTtVars
);
// collect internal nodes
Gia_ObjCollectInternalCut
(
p
,
pRoot
,
vLeaves
);
// compute the truth table for internal nodes
...
...
src/base/abci/abc.c
View file @
4aa33e7d
...
...
@@ -26784,18 +26784,33 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Gia_Man_t
*
Abs_RpmPerform
(
Gia_Man_t
*
p
,
int
nCutMax
,
int
fVerbose
);
extern
Gia_Man_t
*
Abs_RpmPerform
(
Gia_Man_t
*
p
,
int
nCutMax
,
int
fVerbose
,
int
fVeryVerbose
);
Gia_Man_t
*
pTemp
;
int
nCutMax
=
6
;
int
c
,
fVerbose
=
0
;
int
c
,
nCutMax
=
6
;
int
fVerbose
=
0
;
int
fVeryVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
v
h"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
Cvw
h"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'C'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-C
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
nCutMax
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
nCutMax
<
0
)
goto
usage
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
case
'w'
:
fVeryVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
...
...
@@ -26807,16 +26822,17 @@ int Abc_CommandAbc9Rpm( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Abc_CommandAbc9Rpm(): There is no AIG.
\n
"
);
return
0
;
}
pTemp
=
Abs_RpmPerform
(
pAbc
->
pGia
,
nCutMax
,
fVerbose
);
pTemp
=
Abs_RpmPerform
(
pAbc
->
pGia
,
nCutMax
,
fVerbose
,
fVeryVerbose
);
if
(
pTemp
)
Abc_CommandUpdate9
(
pAbc
,
pTemp
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &rpm [-
K num] [-v
h]
\n
"
);
Abc_Print
(
-
2
,
"usage: &rpm [-
C num] [-vw
h]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs structural reparametrization
\n
"
);
Abc_Print
(
-
2
,
"
\t
-
K num : the max cut size used for testing
[default = %d]
\n
"
,
nCutMax
);
Abc_Print
(
-
2
,
"
\t
-
C num : max cut size for testing range equivalence
[default = %d]
\n
"
,
nCutMax
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing more verbose information [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
...
...
src/proof/abs/absRpm.c
View file @
4aa33e7d
This diff is collapsed.
Click to expand it.
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