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
a595fa85
Commit
a595fa85
authored
Sep 30, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Structural reparametrization.
parent
7fab7fd1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
0 deletions
+57
-0
abclib.dsp
+4
-0
src/base/abci/abc.c
+52
-0
src/proof/abs/absRpm.c
+0
-0
src/proof/abs/module.make
+1
-0
No files found.
abclib.dsp
View file @
a595fa85
...
...
@@ -4411,6 +4411,10 @@ SOURCE=.\src\proof\abs\absRefSelect.c
# End Source File
# Begin Source File
SOURCE=.\src\proof\abs\absRpm.c
# End Source File
# Begin Source File
SOURCE=.\src\proof\abs\absUtil.c
# End Source File
# Begin Source File
...
...
src/base/abci/abc.c
View file @
a595fa85
...
...
@@ -343,6 +343,7 @@ static int Abc_CommandAbc9Speedup ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandAbc9Era
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Dch
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Reparam
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9BackReach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Posplit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9ReachM
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -791,6 +792,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&era"
,
Abc_CommandAbc9Era
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&dch"
,
Abc_CommandAbc9Dch
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reparam"
,
Abc_CommandAbc9Reparam
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&rpm"
,
Abc_CommandAbc9Rpm
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&back_reach"
,
Abc_CommandAbc9BackReach
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&posplit"
,
Abc_CommandAbc9Posplit
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachm"
,
Abc_CommandAbc9ReachM
,
0
);
...
...
@@ -26780,6 +26782,56 @@ usage:
SeeAlso []
***********************************************************************/
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
);
Gia_Man_t
*
pTemp
;
int
nCutMax
=
6
;
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'v'
:
fVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
goto
usage
;
}
}
if
(
pAbc
->
pGia
==
NULL
)
{
Abc_Print
(
-
1
,
"Abc_CommandAbc9Rpm(): There is no AIG.
\n
"
);
return
0
;
}
pTemp
=
Abs_RpmPerform
(
pAbc
->
pGia
,
nCutMax
,
fVerbose
);
if
(
pTemp
)
Abc_CommandUpdate9
(
pAbc
,
pTemp
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &rpm [-K num] [-vh]
\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
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandAbc9BackReach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Gia_Man_t
*
Gia_ManCofTest
(
Gia_Man_t
*
pGia
,
int
nFrameMax
,
int
nConfMax
,
int
nTimeMax
,
int
fVerbose
);
...
...
src/proof/abs/absRpm.c
0 → 100644
View file @
a595fa85
This diff is collapsed.
Click to expand it.
src/proof/abs/module.make
View file @
a595fa85
...
...
@@ -11,5 +11,6 @@ SRC += src/proof/abs/abs.c \
src/proof/abs/absPth.c
\
src/proof/abs/absRef.c
\
src/proof/abs/absRefSelect.c
\
src/proof/abs/absRpm.c
\
src/proof/abs/absVta.c
\
src/proof/abs/absUtil.c
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