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
58464374
Commit
58464374
authored
Nov 29, 2010
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for write_status/read_status to use PO index
parent
c2c9a5cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/base/abci/abcLog.c
+11
-4
No files found.
src/base/abci/abcLog.c
View file @
58464374
...
...
@@ -89,6 +89,8 @@ void Abc_NtkWriteLogFile( char * pFileName, Abc_Cex_t * pCex, int Status, char *
fprintf
(
pFile
,
" "
);
// write <engine_name>
fprintf
(
pFile
,
"%s"
,
pCommand
?
pCommand
:
"unknown"
);
if
(
Status
==
0
)
fprintf
(
pFile
,
" %d"
,
pCex
->
iPo
);
fprintf
(
pFile
,
"
\n
"
);
// write <INIT_STATE>
if
(
pCex
==
NULL
)
...
...
@@ -127,9 +129,9 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex )
{
Abc_Cex_t
*
pCex
;
Vec_Int_t
*
vNums
;
char
Buffer
[
1000
];
char
Buffer
[
1000
]
,
*
pToken
;
FILE
*
pFile
;
int
c
,
nRegs
=
-
1
,
nFrames
=
-
1
,
Status
=
-
1
;
int
c
,
nRegs
=
-
1
,
nFrames
=
-
1
,
iPo
=
-
1
,
Status
=
-
1
;
pFile
=
fopen
(
pFileName
,
"r"
);
if
(
pFile
==
NULL
)
{
...
...
@@ -145,7 +147,12 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex )
else
if
(
!
strncmp
(
Buffer
,
"snl_SAT"
,
strlen
(
"snl_SAT"
)
)
)
{
Status
=
0
;
nFrames
=
atoi
(
Buffer
+
strlen
(
"snl_SAT"
)
);
// nFrames = atoi( Buffer + strlen("snl_SAT") );
pToken
=
strtok
(
Buffer
+
strlen
(
"snl_SAT"
),
"
\t\n
"
);
nFrames
=
atoi
(
pToken
);
pToken
=
strtok
(
NULL
,
"
\t\n
"
);
pToken
=
strtok
(
NULL
,
"
\t\n
"
);
iPo
=
atoi
(
pToken
);
}
else
if
(
!
strncmp
(
Buffer
,
"snl_UNK"
,
strlen
(
"snl_UNK"
)
)
)
{
...
...
@@ -191,7 +198,7 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex )
return
-
1
;
}
pCex
=
Gia_ManAllocCounterExample
(
nRegs
,
(
Vec_IntSize
(
vNums
)
-
nRegs
)
/
nFrames
,
nFrames
);
pCex
->
iPo
=
0
;
pCex
->
iPo
=
iPo
;
pCex
->
iFrame
=
nFrames
-
1
;
assert
(
Vec_IntSize
(
vNums
)
==
pCex
->
nBits
);
for
(
c
=
0
;
c
<
pCex
->
nBits
;
c
++
)
...
...
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