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
623b5e82
Commit
623b5e82
authored
Oct 02, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several corner-case bug fixes in scorr with constraints.
parent
cdabd42a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
src/base/abci/abc.c
+8
-0
src/proof/ssw/sswCore.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
623b5e82
...
@@ -21211,10 +21211,18 @@ int Abc_CommandSeqSweep2( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21211,10 +21211,18 @@ int Abc_CommandSeqSweep2( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
fConstrs
)
if
(
pPars
->
fConstrs
)
{
{
if
(
Abc_NtkConstrNum
(
pNtk
)
==
Abc_NtkPoNum
(
pNtk
)
)
{
Abc_Print
(
0
,
"Command cannot be applied because the network has only constraint outputs (no primary outputs).
\n
"
);
return
0
;
}
if
(
Abc_NtkConstrNum
(
pNtk
)
>
0
)
if
(
Abc_NtkConstrNum
(
pNtk
)
>
0
)
Abc_Print
(
0
,
"Performing scorr with %d constraints.
\n
"
,
Abc_NtkConstrNum
(
pNtk
)
);
Abc_Print
(
0
,
"Performing scorr with %d constraints.
\n
"
,
Abc_NtkConstrNum
(
pNtk
)
);
else
else
{
Abc_Print
(
0
,
"Performing constraint-based scorr without constraints.
\n
"
);
Abc_Print
(
0
,
"Performing constraint-based scorr without constraints.
\n
"
);
pPars
->
fConstrs
=
0
;
}
}
}
if
(
pPars
->
fEquivDump
&&
pPars
->
fEquivDump2
)
if
(
pPars
->
fEquivDump
&&
pPars
->
fEquivDump2
)
{
{
src/proof/ssw/sswCore.c
View file @
623b5e82
...
@@ -496,7 +496,7 @@ Aig_Man_t * Ssw_SignalCorrespondence( Aig_Man_t * pAig, Ssw_Pars_t * pPars )
...
@@ -496,7 +496,7 @@ Aig_Man_t * Ssw_SignalCorrespondence( Aig_Man_t * pAig, Ssw_Pars_t * pPars )
Ssw_ClassesSetData
(
p
->
ppClasses
,
p
->
pSml
,
(
unsigned
(
*
)(
void
*
,
Aig_Obj_t
*
))
Ssw_SmlObjHashWord
,
(
int
(
*
)(
void
*
,
Aig_Obj_t
*
))
Ssw_SmlObjIsConstWord
,
(
int
(
*
)(
void
*
,
Aig_Obj_t
*
,
Aig_Obj_t
*
))
Ssw_SmlObjsAreEqualWord
);
Ssw_ClassesSetData
(
p
->
ppClasses
,
p
->
pSml
,
(
unsigned
(
*
)(
void
*
,
Aig_Obj_t
*
))
Ssw_SmlObjHashWord
,
(
int
(
*
)(
void
*
,
Aig_Obj_t
*
))
Ssw_SmlObjIsConstWord
,
(
int
(
*
)(
void
*
,
Aig_Obj_t
*
,
Aig_Obj_t
*
))
Ssw_SmlObjsAreEqualWord
);
}
}
// allocate storage
// allocate storage
if
(
p
->
pPars
->
fLocalSim
)
if
(
p
->
pPars
->
fLocalSim
&&
p
->
pSml
)
p
->
pVisited
=
ABC_CALLOC
(
int
,
Ssw_SmlNumFrames
(
p
->
pSml
)
*
Aig_ManObjNumMax
(
p
->
pAig
)
);
p
->
pVisited
=
ABC_CALLOC
(
int
,
Ssw_SmlNumFrames
(
p
->
pSml
)
*
Aig_ManObjNumMax
(
p
->
pAig
)
);
// perform refinement of classes
// perform refinement of classes
pAigNew
=
Ssw_SignalCorrespondenceRefine
(
p
);
pAigNew
=
Ssw_SignalCorrespondenceRefine
(
p
);
...
...
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