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
d1450e77
Commit
d1450e77
authored
Jan 07, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backward reachability using circuit cofactoring.
parent
c3ab7843
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
src/aig/gia/giaCCof.c
+12
-8
No files found.
src/aig/gia/giaCCof.c
View file @
d1450e77
...
...
@@ -132,11 +132,11 @@ void Gia_ManCofExtendSolver( Ccf_Man_t * p )
}
}
static
inline
int
Gia_Obj0Copy
(
Vec_Int_t
*
vCopies
,
Gia_Man_t
*
pGia
,
Gia_Obj_t
*
pObj
)
{
return
Gia_LitNotCond
(
Vec_IntEntry
(
vCopies
,
Gia_ObjFaninId0p
(
pGia
,
pObj
)),
Gia_ObjFaninC0
(
pObj
)
);
}
static
inline
int
Gia_Obj0Copy
(
Vec_Int_t
*
vCopies
,
int
Fan0
,
int
fCompl0
)
{
return
Gia_LitNotCond
(
Vec_IntEntry
(
vCopies
,
Fan0
),
fCompl0
);
}
static
inline
int
Gia_Obj1Copy
(
Vec_Int_t
*
vCopies
,
Gia_Man_t
*
pGia
,
Gia_Obj_t
*
pObj
)
{
return
Gia_LitNotCond
(
Vec_IntEntry
(
vCopies
,
Gia_ObjFaninId1p
(
pGia
,
pObj
)),
Gia_ObjFaninC1
(
pObj
)
);
}
static
inline
int
Gia_Obj1Copy
(
Vec_Int_t
*
vCopies
,
int
Fan1
,
int
fCompl1
)
{
return
Gia_LitNotCond
(
Vec_IntEntry
(
vCopies
,
Fan1
),
fCompl1
);
}
/**Function*************************************************************
...
...
@@ -159,11 +159,15 @@ void Gia_ManCofOneDerive_rec( Ccf_Man_t * p, int Id )
assert
(
Gia_ObjIsCi
(
pObj
)
||
Gia_ObjIsAnd
(
pObj
)
);
if
(
Gia_ObjIsAnd
(
pObj
)
)
{
Gia_ManCofOneDerive_rec
(
p
,
Gia_ObjFaninId0p
(
p
->
pFrames
,
Gia_ManObj
(
p
->
pFrames
,
Id
))
);
Gia_ManCofOneDerive_rec
(
p
,
Gia_ObjFaninId1p
(
p
->
pFrames
,
Gia_ManObj
(
p
->
pFrames
,
Id
))
);
int
fCompl0
=
Gia_ObjFaninC0
(
pObj
);
int
fCompl1
=
Gia_ObjFaninC1
(
pObj
);
int
Fan0
=
Gia_ObjFaninId0p
(
p
->
pFrames
,
pObj
);
int
Fan1
=
Gia_ObjFaninId1p
(
p
->
pFrames
,
pObj
);
Gia_ManCofOneDerive_rec
(
p
,
Fan0
);
Gia_ManCofOneDerive_rec
(
p
,
Fan1
);
Res
=
Gia_ManHashAnd
(
p
->
pFrames
,
Gia_Obj0Copy
(
p
->
vCopies
,
p
->
pFrames
,
Gia_ManObj
(
p
->
pFrames
,
Id
)
),
Gia_Obj1Copy
(
p
->
vCopies
,
p
->
pFrames
,
Gia_ManObj
(
p
->
pFrames
,
Id
)
)
);
Gia_Obj0Copy
(
p
->
vCopies
,
Fan0
,
fCompl0
),
Gia_Obj1Copy
(
p
->
vCopies
,
Fan1
,
fCompl1
)
);
}
else
if
(
Gia_ObjCioId
(
pObj
)
>=
Gia_ManRegNum
(
p
->
pGia
)
)
// PI
Res
=
sat_solver_var_value
(
p
->
pSat
,
Id
);
...
...
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