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
2c9827cb
Commit
2c9827cb
authored
Jun 29, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in &gla.
parent
7e9ccf7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/aig/gia/giaAbsGla.c
+10
-0
No files found.
src/aig/gia/giaAbsGla.c
View file @
2c9827cb
...
...
@@ -672,6 +672,8 @@ int Gla_ManGetOutLit( Gla_Man_t * p, int f )
Gla_Obj_t
*
pFanin
=
Gla_ManObj
(
p
,
p
->
pObjRoot
->
Fanins
[
0
]
);
int
iSat
=
Vec_IntEntry
(
&
pFanin
->
vFrames
,
f
);
assert
(
iSat
>
0
);
if
(
f
==
0
&&
pFanin
->
fRo
&&
!
p
->
pObjRoot
->
fCompl0
)
return
-
1
;
return
Abc_Var2Lit
(
iSat
,
p
->
pObjRoot
->
fCompl0
);
}
Vec_Int_t
*
Gla_ManUnsatCore
(
Gla_Man_t
*
p
,
int
f
,
Vec_Int_t
*
vCla2Obj
,
sat_solver2
*
pSat
,
int
nConfMax
,
int
fVerbose
,
int
*
piRetValue
,
int
*
pnConfls
)
...
...
@@ -682,6 +684,14 @@ Vec_Int_t * Gla_ManUnsatCore( Gla_Man_t * p, int f, Vec_Int_t * vCla2Obj, sat_so
int
i
,
Entry
,
RetValue
,
clk
=
clock
();
if
(
piRetValue
)
*
piRetValue
=
1
;
// consider special case when PO points to the flop
// this leads to immediate conflict in the first timeframe
if
(
iLit
==
-
1
)
{
vCore
=
Vec_IntAlloc
(
1
);
Vec_IntPush
(
vCore
,
p
->
pObjRoot
->
Fanins
[
0
]
);
return
vCore
;
}
// solve the problem
RetValue
=
sat_solver2_solve
(
pSat
,
&
iLit
,
&
iLit
+
1
,
(
ABC_INT64_T
)
nConfMax
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
);
if
(
pnConfls
)
...
...
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