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
da0f4ef3
Commit
da0f4ef3
authored
Mar 01, 2017
by
Yen-Sheng Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
%pdra: now checks if cex is real before refinement
parent
b71d2ab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
src/base/wlc/wlcAbs.c
+44
-0
No files found.
src/base/wlc/wlcAbs.c
View file @
da0f4ef3
...
...
@@ -302,6 +302,40 @@ Wlc_Ntk_t * Wlc_NtkIntroduceChoices( Wlc_Ntk_t * pNtk, Vec_Int_t * vBlacks )
return
pNew
;
}
static
int
Wlc_NtkCexIsReal
(
Wlc_Ntk_t
*
pOrig
,
Abc_Cex_t
*
pCex
)
{
Gia_Man_t
*
pGiaOrig
=
Wlc_NtkBitBlast
(
pOrig
,
NULL
,
-
1
,
0
,
0
,
0
,
0
);
int
f
,
i
;
Gia_Obj_t
*
pObj
,
*
pObjRi
;
Gia_ManConst0
(
pGiaOrig
)
->
Value
=
0
;
Gia_ManForEachRi
(
pGiaOrig
,
pObj
,
i
)
pObj
->
Value
=
0
;
for
(
f
=
0
;
f
<=
pCex
->
iFrame
;
f
++
)
{
for
(
i
=
0
;
i
<
Gia_ManPiNum
(
pGiaOrig
);
i
++
)
Gia_ManPi
(
pGiaOrig
,
i
)
->
Value
=
Abc_InfoHasBit
(
pCex
->
pData
,
pCex
->
nRegs
+
pCex
->
nPis
*
f
+
i
);
Gia_ManForEachRiRo
(
pGiaOrig
,
pObjRi
,
pObj
,
i
)
pObj
->
Value
=
pObjRi
->
Value
;
Gia_ManForEachAnd
(
pGiaOrig
,
pObj
,
i
)
pObj
->
Value
=
Gia_ObjFanin0Copy
(
pObj
)
&
Gia_ObjFanin1Copy
(
pObj
);
Gia_ManForEachCo
(
pGiaOrig
,
pObj
,
i
)
pObj
->
Value
=
Gia_ObjFanin0Copy
(
pObj
);
Gia_ManForEachPo
(
pGiaOrig
,
pObj
,
i
)
{
if
(
pObj
->
Value
==
1
)
{
Abc_Print
(
1
,
"CEX is real on the original model.
\n
"
);
Gia_ManStop
(
pGiaOrig
);
return
1
;
}
}
}
// Abc_Print( 1, "CEX is spurious.\n" );
Gia_ManStop
(
pGiaOrig
);
return
0
;
}
static
Wlc_Ntk_t
*
Wlc_NtkAbs2
(
Wlc_Ntk_t
*
pNtk
,
Vec_Int_t
*
vBlacks
,
Vec_Int_t
**
pvFlops
)
{
Vec_Int_t
*
vFlops
=
Vec_IntAlloc
(
100
);
...
...
@@ -1107,6 +1141,16 @@ int Wlc_NtkPdrAbs( Wlc_Ntk_t * p, Wlc_Par_t * pPars )
break
;
}
// verify CEX
if
(
Wlc_NtkCexIsReal
(
p
,
pCex
)
)
{
vRefine
=
NULL
;
Abc_CexFree
(
pCex
);
// return CEX in the future
Pdr_ManStop
(
pPdr
);
Aig_ManStop
(
pAig
);
break
;
}
// perform refinement
if
(
pPars
->
fHybrid
||
!
pPars
->
fProofRefine
)
{
...
...
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