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
3c8c807a
Commit
3c8c807a
authored
Jan 26, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to SMT-LIB parser.
parent
57286e8a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
src/base/wlc/wlc.h
+1
-0
src/base/wlc/wlcNtk.c
+3
-3
src/base/wlc/wlcReadSmt.c
+0
-0
No files found.
src/base/wlc/wlc.h
View file @
3c8c807a
...
...
@@ -140,6 +140,7 @@ struct Wlc_Ntk_t_
int
nObjs
[
WLC_OBJ_NUMBER
];
// counter of objects of each type
int
nAnds
[
WLC_OBJ_NUMBER
];
// counter of AND gates after blasting
int
fSmtLib
;
// the network comes from an SMT-LIB file
int
nAssert
;
// the number of asserts
// memory for objects
Wlc_Obj_t
*
pObjs
;
int
iObj
;
...
...
src/base/wlc/wlcNtk.c
View file @
3c8c807a
...
...
@@ -195,14 +195,14 @@ void Wlc_ObjAddFanins( Wlc_Ntk_t * p, Wlc_Obj_t * pObj, Vec_Int_t * vFanins )
{
assert
(
pObj
->
nFanins
==
0
);
pObj
->
nFanins
=
Vec_IntSize
(
vFanins
);
if
(
Wlc_ObjHasArray
(
pObj
)
)
pObj
->
pFanins
[
0
]
=
(
int
*
)
Mem_FlexEntryFetch
(
p
->
pMemFanin
,
Vec_IntSize
(
vFanins
)
*
sizeof
(
int
)
);
memcpy
(
Wlc_ObjFanins
(
pObj
),
Vec_IntArray
(
vFanins
),
sizeof
(
int
)
*
Vec_IntSize
(
vFanins
)
);
// special treatment of CONST, SELECT and TABLE
if
(
pObj
->
Type
==
WLC_OBJ_CONST
)
pObj
->
nFanins
=
0
;
else
if
(
pObj
->
Type
==
WLC_OBJ_BIT_SELECT
||
pObj
->
Type
==
WLC_OBJ_TABLE
)
pObj
->
nFanins
=
1
;
if
(
Wlc_ObjHasArray
(
pObj
)
)
pObj
->
pFanins
[
0
]
=
(
int
*
)
Mem_FlexEntryFetch
(
p
->
pMemFanin
,
Vec_IntSize
(
vFanins
)
*
sizeof
(
int
)
);
memcpy
(
Wlc_ObjFanins
(
pObj
),
Vec_IntArray
(
vFanins
),
sizeof
(
int
)
*
Vec_IntSize
(
vFanins
)
);
}
void
Wlc_NtkFree
(
Wlc_Ntk_t
*
p
)
{
...
...
src/base/wlc/wlcReadSmt.c
View file @
3c8c807a
This diff is collapsed.
Click to expand it.
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