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
12a51a2b
Commit
12a51a2b
authored
Jan 12, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding one API of GIA manager.
parent
9e419f53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/aig/gia/gia.h
+18
-0
No files found.
src/aig/gia/gia.h
View file @
12a51a2b
...
@@ -849,6 +849,24 @@ static inline int Gia_ManAppendXor2( Gia_Man_t * p, int iLit0, int iLit1 )
...
@@ -849,6 +849,24 @@ static inline int Gia_ManAppendXor2( Gia_Man_t * p, int iLit0, int iLit1 )
return
Gia_ManAppendMux2
(
p
,
iLit0
,
Abc_LitNot
(
iLit1
),
iLit1
);
return
Gia_ManAppendMux2
(
p
,
iLit0
,
Abc_LitNot
(
iLit1
),
iLit1
);
}
}
static
inline
int
Gia_ManAppendXorReal2
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
)
{
int
fCompl
;
if
(
!
p
->
fGiaSimple
)
{
if
(
iLit0
<
2
)
return
iLit0
?
Abc_LitNot
(
iLit1
)
:
iLit1
;
if
(
iLit1
<
2
)
return
iLit1
?
Abc_LitNot
(
iLit0
)
:
iLit0
;
if
(
iLit0
==
iLit1
)
return
0
;
if
(
iLit0
==
Abc_LitNot
(
iLit1
)
)
return
1
;
}
fCompl
=
Abc_LitIsCompl
(
iLit0
)
^
Abc_LitIsCompl
(
iLit1
);
return
Abc_LitNotCond
(
Gia_ManAppendXorReal
(
p
,
Abc_LitRegular
(
iLit0
),
Abc_LitRegular
(
iLit1
)
),
fCompl
);
}
static
inline
void
Gia_ManPatchCoDriver
(
Gia_Man_t
*
p
,
int
iCoIndex
,
int
iLit0
)
static
inline
void
Gia_ManPatchCoDriver
(
Gia_Man_t
*
p
,
int
iCoIndex
,
int
iLit0
)
{
{
Gia_Obj_t
*
pObjCo
=
Gia_ManCo
(
p
,
iCoIndex
);
Gia_Obj_t
*
pObjCo
=
Gia_ManCo
(
p
,
iCoIndex
);
...
...
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