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
970200b9
Commit
970200b9
authored
Apr 25, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made testcex reset the number of the PO that failed.
parent
3eae30a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
src/base/abci/abc.c
+14
-4
No files found.
src/base/abci/abc.c
View file @
970200b9
...
...
@@ -19822,9 +19822,14 @@ int Abc_CommandTestCex( Abc_Frame_t * pAbc, int argc, char ** argv )
extern
Aig_Man_t
*
Abc_NtkToDar
(
Abc_Ntk_t
*
pNtk
,
int
fExors
,
int
fRegisters
);
Aig_Man_t
*
pAig
=
Abc_NtkToDar
(
pNtk
,
0
,
1
);
Gia_Man_t
*
pGia
=
Gia_ManFromAigSimple
(
pAig
);
if
(
!
Gia_ManVerifyCex
(
pGia
,
pAbc
->
pCex
,
0
)
)
// if ( !Gia_ManVerifyCex( pGia, pAbc->pCex, 0 ) )
int
iPoOld
=
pAbc
->
pCex
->
iPo
;
pAbc
->
pCex
->
iPo
=
Gia_ManFindFailedPoCex
(
pGia
,
pAbc
->
pCex
);
if
(
pAbc
->
pCex
->
iPo
==
-
1
)
Abc_Print
(
1
,
"Main AIG: The cex does not fail any outputs.
\n
"
);
else
else
if
(
iPoOld
!=
pAbc
->
pCex
->
iPo
)
Abc_Print
(
1
,
"Main AIG: The cex refined PO %d instead of PO %d.
\n
"
,
pAbc
->
pCex
->
iPo
,
iPoOld
);
else
Abc_Print
(
1
,
"Main AIG: The cex is correct.
\n
"
);
Gia_ManStop
(
pGia
);
Aig_ManStop
(
pAig
);
...
...
@@ -19841,9 +19846,14 @@ int Abc_CommandTestCex( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
1
,
"And AIG: The number of POs (%d) is less than the PO index in cex (%d).
\n
"
,
Gia_ManPoNum
(
pAbc
->
pGia
),
pAbc
->
pCex
->
iPo
);
else
{
if
(
!
Gia_ManVerifyCex
(
pAbc
->
pGia
,
pAbc
->
pCex
,
0
)
)
// if ( !Gia_ManVerifyCex( pAbc->pGia, pAbc->pCex, 0 ) )
int
iPoOld
=
pAbc
->
pCex
->
iPo
;
pAbc
->
pCex
->
iPo
=
Gia_ManFindFailedPoCex
(
pAbc
->
pGia
,
pAbc
->
pCex
);
if
(
pAbc
->
pCex
->
iPo
==
-
1
)
Abc_Print
(
1
,
"And AIG: The cex does not fail any outputs.
\n
"
);
else
else
if
(
iPoOld
!=
pAbc
->
pCex
->
iPo
)
Abc_Print
(
1
,
"And AIG: The cex refined PO %d instead of PO %d.
\n
"
,
pAbc
->
pCex
->
iPo
,
iPoOld
);
else
Abc_Print
(
1
,
"And AIG: The cex is correct.
\n
"
);
}
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