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
c312e416
Commit
c312e416
authored
Aug 09, 2021
by
Jerry James
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix violation of C strict aliasing rules.
parent
99ab99bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/aig/gia/giaUtil.c
+3
-1
No files found.
src/aig/gia/giaUtil.c
View file @
c312e416
...
...
@@ -2109,11 +2109,13 @@ void Gia_AigerWriteLut( Gia_Man_t * p, char * pFileName )
Gia_ManForEachObj
(
p
,
pObj
,
i
)
if
(
i
&&
Gia_ObjIsLut
(
p
,
i
)
)
{
word
truth
;
pLuts
[
iLut
].
Type
=
3
;
Gia_LutForEachFanin
(
p
,
i
,
iFan
,
k
)
pLuts
[
iLut
].
pFans
[
k
]
=
Gia_ManObj
(
p
,
iFan
)
->
Value
;
pLuts
[
iLut
].
nFans
=
k
;
*
(
word
*
)
pLuts
[
iLut
].
pTruth
=
Gia_LutComputeTruth6
(
p
,
i
,
vTruths
);
truth
=
Gia_LutComputeTruth6
(
p
,
i
,
vTruths
);
memcpy
(
pLuts
[
iLut
].
pTruth
,
&
truth
,
sizeof
(
word
)
);
pObj
->
Value
=
pLuts
[
iLut
].
Out
=
Abc_Var2Lit
(
iLut
,
0
);
iLut
++
;
}
...
...
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