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
aa9c87cf
Commit
aa9c87cf
authored
Jan 25, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extending verification status file format to allow for SAT status without CEX.
parent
4bd54729
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/base/abci/abcLog.c
+11
-0
No files found.
src/base/abci/abcLog.c
View file @
aa9c87cf
...
...
@@ -156,11 +156,17 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex, int * pnFrames )
nFrames
=
atoi
(
pToken
);
pToken
=
strtok
(
NULL
,
"
\t\n
"
);
pToken
=
strtok
(
NULL
,
"
\t\n
"
);
if
(
pToken
!=
NULL
)
{
iPo
=
atoi
(
pToken
);
pToken
=
strtok
(
NULL
,
"
\t\n
"
);
if
(
pToken
)
nFrames2
=
atoi
(
pToken
);
}
else
printf
(
"Warning! The current status is SAT but the current CEX is not given.
\n
"
);
}
else
if
(
!
strncmp
(
Buffer
,
"snl_UNK"
,
strlen
(
"snl_UNK"
)
)
)
{
Status
=
-
1
;
...
...
@@ -193,16 +199,19 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex, int * pnFrames )
if
(
nRegs
<
0
)
{
printf
(
"Cannot read register number.
\n
"
);
Vec_IntFree
(
vNums
);
return
-
1
;
}
if
(
Vec_IntSize
(
vNums
)
-
nRegs
==
0
)
{
printf
(
"Cannot read counter example.
\n
"
);
Vec_IntFree
(
vNums
);
return
-
1
;
}
if
(
(
Vec_IntSize
(
vNums
)
-
nRegs
)
%
(
iFrameCex
+
1
)
!=
0
)
{
printf
(
"Incorrect number of bits.
\n
"
);
Vec_IntFree
(
vNums
);
return
-
1
;
}
pCex
=
Abc_CexAlloc
(
nRegs
,
(
Vec_IntSize
(
vNums
)
-
nRegs
)
/
(
iFrameCex
+
1
),
iFrameCex
+
1
);
...
...
@@ -218,6 +227,8 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex, int * pnFrames )
else
ABC_FREE
(
pCex
);
}
else
Vec_IntFree
(
vNums
);
if
(
pnFrames
)
*
pnFrames
=
nFrames
;
return
Status
;
...
...
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