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
43d8b8be
Commit
43d8b8be
authored
Jul 30, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to enable smarter simulation.
parent
b8de7a28
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/aig/ssw/sswRarity.c
+8
-0
src/base/abci/abc.c
+6
-0
No files found.
src/aig/ssw/sswRarity.c
View file @
43d8b8be
...
...
@@ -833,7 +833,12 @@ static Vec_Int_t * Ssw_RarFindStartingState( Aig_Man_t * pAig, Abc_Cex_t * pCex
// record the new pattern
vInit
=
Vec_IntAlloc
(
Saig_ManRegNum
(
pAig
)
);
Saig_ManForEachLo
(
pAig
,
pObj
,
i
)
{
//printf( "%d", pObj->fMarkB );
Vec_IntPush
(
vInit
,
pObj
->
fMarkB
);
}
//printf( "\n" );
Aig_ManCleanMarkB
(
pAig
);
return
vInit
;
}
...
...
@@ -975,7 +980,10 @@ int Ssw_RarSignalFilter( Aig_Man_t * pAig, int nFrames, int nWords, int nBinSize
// compute starting state if needed
assert
(
p
->
vInits
==
NULL
);
if
(
pCex
)
{
p
->
vInits
=
Ssw_RarFindStartingState
(
pAig
,
pCex
);
printf
(
"Beginning simulation from the state derived using the counter-example.
\n
"
);
}
else
p
->
vInits
=
Vec_IntStart
(
Aig_ManRegNum
(
pAig
)
);
// duplicate the array
...
...
src/base/abci/abc.c
View file @
43d8b8be
...
...
@@ -25438,6 +25438,11 @@ int Abc_CommandAbc9Equiv3( Abc_Frame_t * pAbc, int argc, char ** argv )
}
if
(
fUseCex
)
{
if
(
pAbc
->
pCex
==
NULL
)
{
Abc_Print
(
0
,
"Abc_CommandAbc9Equiv3(): Counter-example is not available.
\n
"
);
return
0
;
}
if
(
pAbc
->
pCex
->
nPis
!=
Gia_ManPiNum
(
pAbc
->
pGia
)
)
{
Abc_Print
(
-
1
,
"Abc_CommandAbc9Equiv3(): The number of PIs differs in cex (%d) and in AIG (%d).
\n
"
,
...
...
@@ -25450,6 +25455,7 @@ int Abc_CommandAbc9Equiv3( Abc_Frame_t * pAbc, int argc, char ** argv )
// else
// pAbc->Status = Ssw_RarSignalFilterGia2( pAbc->pGia, nFrames, nWords, nBinSize, nRounds, TimeOut, fUseCex? pAbc->pCex: NULL, fLatchOnly, fVerbose );
// pAbc->nFrames = pAbc->pGia->pCexSeq->iFrame;
if
(
pAbc
->
pGia
->
pCexSeq
)
Abc_FrameReplaceCex
(
pAbc
,
&
pAbc
->
pGia
->
pCexSeq
);
return
0
;
...
...
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