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
853222ee
Commit
853222ee
authored
Jan 25, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a corner-case when 'sim3 -a' does not work for costant POs.
parent
edd4b2a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
src/base/abci/abc.c
+5
-0
src/proof/ssw/sswRarity.c
+27
-5
No files found.
src/base/abci/abc.c
View file @
853222ee
...
...
@@ -17884,6 +17884,11 @@ int Abc_CommandSim3( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Only works for strashed networks.
\n
"
);
return
1
;
}
if
(
Abc_NtkLatchNum
(
pNtk
)
==
0
)
{
Abc_Print
(
-
1
,
"Only works for sequential networks.
\n
"
);
return
1
;
}
ABC_FREE
(
pNtk
->
pSeqModel
);
pAbc
->
Status
=
Abc_NtkDarSeqSim3
(
pNtk
,
nFrames
,
nWords
,
nBinSize
,
nRounds
,
nRestart
,
nRandSeed
,
TimeOut
,
fSolveAll
,
fVerbose
,
fNotVerbose
);
// pAbc->nFrames = pAbc->pCex->iFrame;
...
...
src/proof/ssw/sswRarity.c
View file @
853222ee
...
...
@@ -432,6 +432,28 @@ void Ssw_RarManInitialize( Ssw_RarMan_t * p, Vec_Int_t * vInit )
SeeAlso []
***********************************************************************/
int
Ssw_RarManPoIsConst0
(
void
*
pMan
,
Aig_Obj_t
*
pObj
)
{
Ssw_RarMan_t
*
p
=
(
Ssw_RarMan_t
*
)
pMan
;
word
*
pSim
=
Ssw_RarObjSim
(
p
,
Aig_ObjId
(
pObj
)
);
int
w
;
for
(
w
=
0
;
w
<
p
->
nWords
;
w
++
)
if
(
pSim
[
w
]
)
return
0
;
return
1
;
}
/**Function*************************************************************
Synopsis [Returns 1 if simulation info is composed of all zeros.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Ssw_RarManObjIsConst
(
void
*
pMan
,
Aig_Obj_t
*
pObj
)
{
Ssw_RarMan_t
*
p
=
(
Ssw_RarMan_t
*
)
pMan
;
...
...
@@ -558,7 +580,7 @@ int Ssw_RarManCheckNonConstOutputs( Ssw_RarMan_t * p, int * pnSolvedNow, int iFr
break
;
if
(
p
->
vCexes
&&
Vec_PtrEntry
(
p
->
vCexes
,
i
)
)
continue
;
if
(
Ssw_RarMan
ObjIsConst
(
p
,
pObj
)
)
if
(
Ssw_RarMan
PoIsConst0
(
p
,
pObj
)
)
continue
;
RetValue
=
1
;
p
->
iFailPo
=
i
;
...
...
@@ -936,11 +958,11 @@ int Ssw_RarSimulate( Aig_Man_t * pAig, int nFrames, int nWords, int nBinSize, in
assert
(
Aig_ManConstrNum
(
pAig
)
==
0
);
ABC_FREE
(
pAig
->
pSeqModel
);
// consider the case of empty AIG
if
(
Aig_ManNodeNum
(
pAig
)
==
0
)
return
-
1
;
//
if ( Aig_ManNodeNum(pAig) == 0 )
//
return -1;
// check trivially SAT miters
if
(
fMiter
&&
Ssw_RarCheckTrivial
(
pAig
,
fVerbose
)
)
return
0
;
//
if ( fMiter && Ssw_RarCheckTrivial( pAig, fVerbose ) )
//
return 0;
if
(
fVerbose
)
Abc_Print
(
1
,
"Rarity simulation with %d words, %d frames, %d rounds, %d seed, and %d sec timeout.
\n
"
,
nWords
,
nFrames
,
nRounds
,
nRandSeed
,
TimeOut
);
...
...
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