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
4aa434ad
Commit
4aa434ad
authored
Jan 25, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated CEX code to handle trivial CEX of the type (Abc_Cex_t*)1.
parent
55744840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/misc/util/utilCex.c
+19
-0
No files found.
src/misc/util/utilCex.c
View file @
4aa434ad
...
...
@@ -146,6 +146,8 @@ Abc_Cex_t * Abc_CexDup( Abc_Cex_t * p, int nRegsNew )
{
Abc_Cex_t
*
pCex
;
int
i
;
if
(
p
==
(
Abc_Cex_t
*
)(
ABC_PTRINT_T
)
1
)
return
p
;
if
(
nRegsNew
==
-
1
)
nRegsNew
=
p
->
nRegs
;
pCex
=
Abc_CexAlloc
(
nRegsNew
,
p
->
nPis
,
p
->
iFrame
+
1
);
...
...
@@ -259,6 +261,11 @@ void Abc_CexPrintStats( Abc_Cex_t * p )
printf
(
"The counter example is NULL.
\n
"
);
return
;
}
if
(
p
==
(
Abc_Cex_t
*
)(
ABC_PTRINT_T
)
1
)
{
printf
(
"The counter example is present but not available (pointer has value
\"
1
\"
).
\n
"
);
return
;
}
for
(
k
=
0
;
k
<
p
->
nBits
;
k
++
)
Counter
+=
Abc_InfoHasBit
(
p
->
pData
,
k
);
printf
(
"CEX: Po =%4d Frame =%4d FF = %d PI = %d Bit =%8d 1s =%8d (%5.2f %%)
\n
"
,
...
...
@@ -273,6 +280,11 @@ void Abc_CexPrintStatsInputs( Abc_Cex_t * p, int nInputs )
printf
(
"The counter example is NULL.
\n
"
);
return
;
}
if
(
p
==
(
Abc_Cex_t
*
)(
ABC_PTRINT_T
)
1
)
{
printf
(
"The counter example is present but not available (pointer has value
\"
1
\"
).
\n
"
);
return
;
}
for
(
k
=
0
;
k
<
p
->
nBits
;
k
++
)
{
Counter
+=
Abc_InfoHasBit
(
p
->
pData
,
k
);
...
...
@@ -304,6 +316,11 @@ void Abc_CexPrint( Abc_Cex_t * p )
printf
(
"The counter example is NULL.
\n
"
);
return
;
}
if
(
p
==
(
Abc_Cex_t
*
)(
ABC_PTRINT_T
)
1
)
{
printf
(
"The counter example is present but not available (pointer has value
\"
1
\"
).
\n
"
);
return
;
}
Abc_CexPrintStats
(
p
);
printf
(
"State : "
);
for
(
k
=
0
;
k
<
p
->
nRegs
;
k
++
)
...
...
@@ -350,6 +367,8 @@ void Abc_CexFreeP( Abc_Cex_t ** p )
***********************************************************************/
void
Abc_CexFree
(
Abc_Cex_t
*
p
)
{
if
(
p
==
(
Abc_Cex_t
*
)(
ABC_PTRINT_T
)
1
)
return
;
ABC_FREE
(
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