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
3592078d
Commit
3592078d
authored
Jul 21, 2023
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partitioned &scorr.
parent
55ed1e66
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
323 additions
and
7 deletions
+323
-7
src/base/abci/abc.c
+33
-5
src/proof/cec/cec.h
+2
-0
src/proof/ssw/ssw.h
+1
-0
src/proof/ssw/sswPart.c
+287
-2
No files found.
src/base/abci/abc.c
View file @
3592078d
...
...
@@ -37232,13 +37232,15 @@ int Abc_CommandAbc9Scorr( Abc_Frame_t * pAbc, int argc, char ** argv )
{
extern
Gia_Man_t
*
Cec_ManScorrCorrespondence
(
Gia_Man_t
*
p
,
Cec_ParCor_t
*
pPars
);
extern
Gia_Man_t
*
Gia_ManScorrDivideTest
(
Gia_Man_t
*
p
,
Cec_ParCor_t
*
pPars
);
extern
Gia_Man_t
*
Gia_SignalCorrespondencePart
(
Gia_Man_t
*
p
,
Cec_ParCor_t
*
pPars
);
Cec_ParCor_t
Pars
,
*
pPars
=
&
Pars
;
Gia_Man_t
*
pTemp
;
int
fPartition
=
0
;
int
fUseOld
=
0
,
c
;
Cec_ManCorSetDefaultParams
(
pPars
);
pPars
->
nProcs
=
1
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FC
PX
pkrecqowvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FC
GXPS
pkrecqowvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -37264,7 +37266,7 @@ int Abc_CommandAbc9Scorr( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
nBTLimit
<
0
)
goto
usage
;
break
;
case
'
P
'
:
case
'
G
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-P
\"
should be followed by an integer.
\n
"
);
...
...
@@ -37286,6 +37288,28 @@ int Abc_CommandAbc9Scorr( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
nLimitMax
<
0
)
goto
usage
;
break
;
case
'P'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-P
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nProcs
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nProcs
<
0
)
goto
usage
;
break
;
case
'S'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-S
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nPartSize
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nPartSize
<
0
)
goto
usage
;
break
;
case
'p'
:
fPartition
^=
1
;
break
;
...
...
@@ -37338,7 +37362,9 @@ int Abc_CommandAbc9Scorr( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
0
,
"The network is combinational.
\n
"
);
return
0
;
}
if
(
fUseOld
)
if
(
pPars
->
nPartSize
>
0
)
pTemp
=
Gia_SignalCorrespondencePart
(
pAbc
->
pGia
,
pPars
);
else
if
(
fUseOld
)
pTemp
=
Cec_ManScorrCorrespondence
(
pAbc
->
pGia
,
pPars
);
else
if
(
fPartition
)
pTemp
=
Gia_ManScorrDivideTest
(
pAbc
->
pGia
,
pPars
);
...
...
@@ -37348,12 +37374,14 @@ int Abc_CommandAbc9Scorr( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &scorr [-FC
PX
num] [-pkrecqowvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &scorr [-FC
GXPS
num] [-pkrecqowvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs signal correpondence computation
\n
"
);
Abc_Print
(
-
2
,
"
\t
-C num : the max number of conflicts at a node [default = %d]
\n
"
,
pPars
->
nBTLimit
);
Abc_Print
(
-
2
,
"
\t
-F num : the number of timeframes in inductive case [default = %d]
\n
"
,
pPars
->
nFrames
);
Abc_Print
(
-
2
,
"
\t
-
P
num : the number of timeframes in the prefix [default = %d]
\n
"
,
pPars
->
nPrefix
);
Abc_Print
(
-
2
,
"
\t
-
G
num : the number of timeframes in the prefix [default = %d]
\n
"
,
pPars
->
nPrefix
);
Abc_Print
(
-
2
,
"
\t
-X num : the number of iterations of little or no improvement [default = %d]
\n
"
,
pPars
->
nLimitMax
);
Abc_Print
(
-
2
,
"
\t
-P num : the number of concurrent processes [default = %d]
\n
"
,
pPars
->
nProcs
);
Abc_Print
(
-
2
,
"
\t
-S num : the number of flops in one partition [default = %d]
\n
"
,
pPars
->
nPartSize
);
Abc_Print
(
-
2
,
"
\t
-p : toggle using partitioning for the input AIG [default = %s]
\n
"
,
fPartition
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-k : toggle using constant correspondence [default = %s]
\n
"
,
pPars
->
fConstCorr
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle using implication rings during refinement [default = %s]
\n
"
,
pPars
->
fUseRings
?
"yes"
:
"no"
);
src/proof/cec/cec.h
View file @
3592078d
...
...
@@ -147,6 +147,8 @@ struct Cec_ParCor_t_
int
nFrames
;
// the number of time frames
int
nPrefix
;
// the number of time frames in the prefix
int
nBTLimit
;
// conflict limit at a node
int
nProcs
;
// the number of processes
int
nPartSize
;
// the partition size
int
nLevelMax
;
// (scorr only) the max number of levels
int
nStepsMax
;
// (scorr only) the max number of induction steps
int
nLimitMax
;
// (scorr only) stop after this many iterations if little or no improvement
...
...
src/proof/ssw/ssw.h
View file @
3592078d
...
...
@@ -42,6 +42,7 @@ struct Ssw_Pars_t_
{
int
nPartSize
;
// size of the partition
int
nOverSize
;
// size of the overlap between partitions
int
nProcs
;
// the number of processors
int
nFramesK
;
// the induction depth
int
nFramesAddSim
;
// the number of additional frames to simulate
int
fConstrs
;
// treat the last nConstrs POs as seq constraints
...
...
src/proof/ssw/sswPart.c
View file @
3592078d
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