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
35733eb1
Commit
35733eb1
authored
Dec 06, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added/renamed useful APIs.
parent
68baf038
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/aig/aig/aig.h
+2
-1
src/aig/saig/saigAbsCba.c
+1
-1
No files found.
src/aig/aig/aig.h
View file @
35733eb1
...
...
@@ -335,7 +335,8 @@ static inline void Aig_ObjChild1Flip( Aig_Obj_t * pObj ) { assert( !Aig
static
inline
Aig_Obj_t
*
Aig_ObjCopy
(
Aig_Obj_t
*
pObj
)
{
assert
(
!
Aig_IsComplement
(
pObj
)
);
return
(
Aig_Obj_t
*
)
pObj
->
pData
;
}
static
inline
void
Aig_ObjSetCopy
(
Aig_Obj_t
*
pObj
,
Aig_Obj_t
*
pCopy
)
{
assert
(
!
Aig_IsComplement
(
pObj
)
);
pObj
->
pData
=
pCopy
;
}
static
inline
Aig_Obj_t
*
Aig_ObjRealCopy
(
Aig_Obj_t
*
pObj
)
{
return
Aig_NotCond
((
Aig_Obj_t
*
)
Aig_Regular
(
pObj
)
->
pData
,
Aig_IsComplement
(
pObj
));}
static
inline
int
Aig_ObjRealLit
(
Aig_Obj_t
*
pObj
)
{
return
Aig_Var2Lit
(
Aig_ObjId
(
Aig_Regular
(
pObj
)),
Aig_IsComplement
(
pObj
)
);
}
static
inline
int
Aig_ObjToLit
(
Aig_Obj_t
*
pObj
)
{
return
Aig_Var2Lit
(
Aig_ObjId
(
Aig_Regular
(
pObj
)),
Aig_IsComplement
(
pObj
)
);
}
static
inline
Aig_Obj_t
*
Aig_ObjFromLit
(
Aig_Man_t
*
p
,
int
iLit
){
return
Aig_NotCond
(
Aig_ManObj
(
p
,
Aig_Lit2Var
(
iLit
)),
Aig_LitIsCompl
(
iLit
)
);
}
static
inline
int
Aig_ObjLevel
(
Aig_Obj_t
*
pObj
)
{
assert
(
!
Aig_IsComplement
(
pObj
)
);
return
pObj
->
Level
;
}
static
inline
int
Aig_ObjLevelNew
(
Aig_Obj_t
*
pObj
)
{
assert
(
!
Aig_IsComplement
(
pObj
)
);
return
Aig_ObjFanin1
(
pObj
)?
1
+
Aig_ObjIsExor
(
pObj
)
+
ABC_MAX
(
Aig_ObjFanin0
(
pObj
)
->
Level
,
Aig_ObjFanin1
(
pObj
)
->
Level
)
:
Aig_ObjFanin0
(
pObj
)
->
Level
;
}
static
inline
int
Aig_ObjSetLevel
(
Aig_Obj_t
*
pObj
,
int
i
)
{
assert
(
!
Aig_IsComplement
(
pObj
)
);
return
pObj
->
Level
=
i
;
}
...
...
src/aig/saig/saigAbsCba.c
View file @
35733eb1
...
...
@@ -477,7 +477,7 @@ Aig_Man_t * Saig_ManCbaUnrollWithCex( Aig_Man_t * pAig, Abc_Cex_t * pCex, int nI
if
(
*
pvReg2Frame
)
{
Vec_VecPushInt
(
*
pvReg2Frame
,
f
,
Aig_ObjId
(
pObj
)
);
// record LO
Vec_VecPushInt
(
*
pvReg2Frame
,
f
,
Aig_Obj
Real
Lit
((
Aig_Obj_t
*
)
pObj
->
pData
)
);
// record its literal
Vec_VecPushInt
(
*
pvReg2Frame
,
f
,
Aig_Obj
To
Lit
((
Aig_Obj_t
*
)
pObj
->
pData
)
);
// record its literal
}
}
}
...
...
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