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
15cc374f
Commit
15cc374f
authored
Jun 25, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated 'iprove' to generate seq CEX when CEC fails.
parent
4669839b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
src/base/abci/abc.c
+7
-0
src/base/abci/abcIvy.c
+1
-2
src/misc/util/utilCex.c
+25
-0
src/misc/util/utilCex.h
+1
-0
No files found.
src/base/abci/abc.c
View file @
15cc374f
...
@@ -10633,6 +10633,13 @@ int Abc_CommandIProve( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -10633,6 +10633,13 @@ int Abc_CommandIProve( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_PrintTime
(
1
,
"Time"
,
clock
()
-
clk
);
Abc_PrintTime
(
1
,
"Time"
,
clock
()
-
clk
);
// replace the current network
// replace the current network
Abc_FrameReplaceCurrentNetwork
(
pAbc
,
pNtkTemp
);
Abc_FrameReplaceCurrentNetwork
(
pAbc
,
pNtkTemp
);
// update counter example
if
(
RetValue
==
0
&&
Abc_NtkLatchNum
(
pNtkTemp
)
==
0
)
{
Abc_Cex_t
*
pCex
=
Abc_CexDeriveFromCombModel
(
pNtkTemp
->
pModel
,
Abc_NtkPiNum
(
pNtkTemp
),
0
,
iOut
);
Abc_FrameReplaceCex
(
pAbc
,
&
pCex
);
}
return
0
;
return
0
;
usage:
usage:
...
...
src/base/abci/abcIvy.c
View file @
15cc374f
...
@@ -520,8 +520,7 @@ int Abc_NtkIvyProve( Abc_Ntk_t ** ppNtk, void * pPars )
...
@@ -520,8 +520,7 @@ int Abc_NtkIvyProve( Abc_Ntk_t ** ppNtk, void * pPars )
pFanin
=
Abc_ObjFanin0
(
pObj
);
pFanin
=
Abc_ObjFanin0
(
pObj
);
if
(
Abc_ObjFanin0
(
pObj
)
->
fPhase
!=
(
unsigned
)
Abc_ObjFaninC0
(
pObj
)
)
if
(
Abc_ObjFanin0
(
pObj
)
->
fPhase
!=
(
unsigned
)
Abc_ObjFaninC0
(
pObj
)
)
{
{
pNtk
->
pModel
=
ABC_ALLOC
(
int
,
Abc_NtkPiNum
(
pNtk
)
);
pNtk
->
pModel
=
ABC_CALLOC
(
int
,
Abc_NtkCiNum
(
pNtk
)
);
memset
(
pNtk
->
pModel
,
0
,
sizeof
(
int
)
*
Abc_NtkPiNum
(
pNtk
)
);
return
0
;
return
0
;
}
}
...
...
src/misc/util/utilCex.c
View file @
15cc374f
...
@@ -152,6 +152,30 @@ Abc_Cex_t * Abc_CexDup( Abc_Cex_t * p, int nRegsNew )
...
@@ -152,6 +152,30 @@ Abc_Cex_t * Abc_CexDup( Abc_Cex_t * p, int nRegsNew )
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Derives CEX from comb model.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Abc_Cex_t
*
Abc_CexDeriveFromCombModel
(
int
*
pModel
,
int
nPis
,
int
nRegs
,
int
iPo
)
{
Abc_Cex_t
*
pCex
;
int
i
;
pCex
=
Abc_CexAlloc
(
nRegs
,
nPis
,
1
);
pCex
->
iPo
=
iPo
;
pCex
->
iFrame
=
0
;
for
(
i
=
0
;
i
<
nPis
;
i
++
)
if
(
pModel
[
i
]
)
pCex
->
pData
[
i
>>
5
]
|=
(
1
<<
(
i
&
31
));
return
pCex
;
}
/**Function*************************************************************
Synopsis [Prints out the counter-example.]
Synopsis [Prints out the counter-example.]
Description []
Description []
...
@@ -196,6 +220,7 @@ void Abc_CexFree( Abc_Cex_t * p )
...
@@ -196,6 +220,7 @@ void Abc_CexFree( Abc_Cex_t * p )
ABC_FREE
(
p
);
ABC_FREE
(
p
);
}
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
...
src/misc/util/utilCex.h
View file @
15cc374f
...
@@ -60,6 +60,7 @@ extern Abc_Cex_t * Abc_CexAlloc( int nRegs, int nTruePis, int nFrames );
...
@@ -60,6 +60,7 @@ extern Abc_Cex_t * Abc_CexAlloc( int nRegs, int nTruePis, int nFrames );
extern
Abc_Cex_t
*
Abc_CexMakeTriv
(
int
nRegs
,
int
nTruePis
,
int
nTruePos
,
int
iFrameOut
);
extern
Abc_Cex_t
*
Abc_CexMakeTriv
(
int
nRegs
,
int
nTruePis
,
int
nTruePos
,
int
iFrameOut
);
extern
Abc_Cex_t
*
Abc_CexCreate
(
int
nRegs
,
int
nTruePis
,
int
*
pArray
,
int
iFrame
,
int
iPo
,
int
fSkipRegs
);
extern
Abc_Cex_t
*
Abc_CexCreate
(
int
nRegs
,
int
nTruePis
,
int
*
pArray
,
int
iFrame
,
int
iPo
,
int
fSkipRegs
);
extern
Abc_Cex_t
*
Abc_CexDup
(
Abc_Cex_t
*
p
,
int
nRegsNew
);
extern
Abc_Cex_t
*
Abc_CexDup
(
Abc_Cex_t
*
p
,
int
nRegsNew
);
extern
Abc_Cex_t
*
Abc_CexDeriveFromCombModel
(
int
*
pModel
,
int
nPis
,
int
nRegs
,
int
iPo
);
extern
void
Abc_CexPrint
(
Abc_Cex_t
*
p
);
extern
void
Abc_CexPrint
(
Abc_Cex_t
*
p
);
extern
void
Abc_CexFree
(
Abc_Cex_t
*
p
);
extern
void
Abc_CexFree
(
Abc_Cex_t
*
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