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
b2ad140a
Commit
b2ad140a
authored
Mar 11, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supporting complemented reduction operators.
parent
22a5ab19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/base/wlc/wlcReadVer.c
+7
-6
No files found.
src/base/wlc/wlcReadVer.c
View file @
b2ad140a
...
@@ -662,11 +662,11 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
...
@@ -662,11 +662,11 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
return
0
;
return
0
;
Type
=
WLC_OBJ_CONST
;
Type
=
WLC_OBJ_CONST
;
}
}
else
if
(
pStr
[
0
]
==
'!'
||
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
!=
'^'
)
||
pStr
[
0
]
==
'@'
||
pStr
[
0
]
==
'#'
)
else
if
(
pStr
[
0
]
==
'!'
||
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
!=
'
&'
&&
pStr
[
1
]
!=
'|'
&&
pStr
[
1
]
!=
'
^'
)
||
pStr
[
0
]
==
'@'
||
pStr
[
0
]
==
'#'
)
{
{
if
(
pStr
[
0
]
==
'!'
)
if
(
pStr
[
0
]
==
'!'
)
Type
=
WLC_OBJ_LOGIC_NOT
;
Type
=
WLC_OBJ_LOGIC_NOT
;
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
!=
'^'
)
else
if
(
pStr
[
0
]
==
'~'
)
Type
=
WLC_OBJ_BIT_NOT
;
Type
=
WLC_OBJ_BIT_NOT
;
else
if
(
pStr
[
0
]
==
'@'
)
else
if
(
pStr
[
0
]
==
'@'
)
Type
=
WLC_OBJ_ARI_SQRT
;
Type
=
WLC_OBJ_ARI_SQRT
;
...
@@ -691,6 +691,7 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
...
@@ -691,6 +691,7 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'|'
)
||
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'|'
)
||
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'^'
)
)
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'^'
)
)
{
{
int
shift
=
1
;
if
(
pStr
[
0
]
==
'-'
)
if
(
pStr
[
0
]
==
'-'
)
Type
=
WLC_OBJ_ARI_MINUS
;
Type
=
WLC_OBJ_ARI_MINUS
;
else
if
(
pStr
[
0
]
==
'&'
)
else
if
(
pStr
[
0
]
==
'&'
)
...
@@ -700,13 +701,13 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
...
@@ -700,13 +701,13 @@ static inline int Wlc_PrsFindDefinition( Wlc_Prs_t * p, char * pStr, Vec_Int_t *
else
if
(
pStr
[
0
]
==
'^'
)
else
if
(
pStr
[
0
]
==
'^'
)
Type
=
WLC_OBJ_REDUCT_XOR
;
Type
=
WLC_OBJ_REDUCT_XOR
;
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'&'
)
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'&'
)
Type
=
WLC_OBJ_REDUCT_NAND
;
{
Type
=
WLC_OBJ_REDUCT_NAND
;
shift
=
2
;}
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'|'
)
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'|'
)
Type
=
WLC_OBJ_REDUCT_NOR
;
{
Type
=
WLC_OBJ_REDUCT_NOR
;
shift
=
2
;}
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'^'
)
else
if
(
pStr
[
0
]
==
'~'
&&
pStr
[
1
]
==
'^'
)
Type
=
WLC_OBJ_REDUCT_NXOR
;
{
Type
=
WLC_OBJ_REDUCT_NXOR
;
shift
=
2
;}
else
assert
(
0
);
else
assert
(
0
);
if
(
!
(
pStr
=
Wlc_PrsReadName
(
p
,
pStr
+
1
,
vFanins
))
)
if
(
!
(
pStr
=
Wlc_PrsReadName
(
p
,
pStr
+
shift
,
vFanins
))
)
return
Wlc_PrsWriteErrorMessage
(
p
,
pStr
,
"Cannot read name after a unary operator."
);
return
Wlc_PrsWriteErrorMessage
(
p
,
pStr
,
"Cannot read name after a unary operator."
);
}
}
else
if
(
pStr
[
0
]
==
'{'
)
else
if
(
pStr
[
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