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
2f3a9f91
Commit
2f3a9f91
authored
Jun 29, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix when &vta returns empty absraction.
parent
5d5ff3b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
src/aig/gia/giaAbsGla.c
+2
-1
src/aig/gia/giaAbsVta.c
+20
-15
No files found.
src/aig/gia/giaAbsGla.c
View file @
2f3a9f91
...
...
@@ -854,7 +854,8 @@ int Gia_GlaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
pPars
->
fDumpVabs
=
nDumpOld
;
// create gate classes
Vec_IntFreeP
(
&
pAig
->
vGateClasses
);
pAig
->
vGateClasses
=
Gia_VtaConvertToGla
(
pAig
,
pAig
->
vObjClasses
);
if
(
pAig
->
vObjClasses
)
pAig
->
vGateClasses
=
Gia_VtaConvertToGla
(
pAig
,
pAig
->
vObjClasses
);
Vec_IntFreeP
(
&
pAig
->
vObjClasses
);
}
if
(
RetValue
==
0
||
pAig
->
vGateClasses
==
NULL
)
...
...
src/aig/gia/giaAbsVta.c
View file @
2f3a9f91
...
...
@@ -1630,24 +1630,29 @@ finish:
// analize the results
if
(
pCex
==
NULL
)
{
assert
(
Vec_PtrSize
(
p
->
vCores
)
>
0
);
if
(
pAig
->
vObjClasses
!=
NULL
)
Abc_Print
(
1
,
"Replacing the old abstraction by a new one.
\n
"
);
Vec_IntFreeP
(
&
pAig
->
vObjClasses
);
pAig
->
vObjClasses
=
Gia_VtaFramesToAbs
(
(
Vec_Vec_t
*
)
p
->
vCores
);
if
(
Status
==
-
1
)
if
(
Vec_PtrSize
(
p
->
vCores
)
==
0
)
Abc_Print
(
1
,
"Abstraction is not produced because first frame is not solved. "
);
else
{
if
(
p
->
pPars
->
nTimeOut
&&
time
(
NULL
)
>=
p
->
pSat
->
nRuntimeLimit
)
Abc_Print
(
1
,
"SAT solver ran out of time at %d sec in frame %d. "
,
p
->
pPars
->
nTimeOut
,
f
);
else
if
(
pPars
->
nConfLimit
&&
sat_solver2_nconflicts
(
p
->
pSat
)
>=
pPars
->
nConfLimit
)
Abc_Print
(
1
,
"SAT solver ran out of resources at %d conflicts in frame %d. "
,
pPars
->
nConfLimit
,
f
);
else
if
(
p
->
nSeenGla
>=
Gia_ManCandNum
(
pAig
)
*
(
100
-
pPars
->
nRatioMin
)
/
100
)
Abc_Print
(
1
,
"The ratio of abstracted objects is less than %d %% in frame %d. "
,
pPars
->
nRatioMin
,
f
);
assert
(
Vec_PtrSize
(
p
->
vCores
)
>
0
);
if
(
pAig
->
vObjClasses
!=
NULL
)
Abc_Print
(
1
,
"Replacing the old abstraction by a new one.
\n
"
);
Vec_IntFreeP
(
&
pAig
->
vObjClasses
);
pAig
->
vObjClasses
=
Gia_VtaFramesToAbs
(
(
Vec_Vec_t
*
)
p
->
vCores
);
if
(
Status
==
-
1
)
{
if
(
p
->
pPars
->
nTimeOut
&&
time
(
NULL
)
>=
p
->
pSat
->
nRuntimeLimit
)
Abc_Print
(
1
,
"SAT solver ran out of time at %d sec in frame %d. "
,
p
->
pPars
->
nTimeOut
,
f
);
else
if
(
pPars
->
nConfLimit
&&
sat_solver2_nconflicts
(
p
->
pSat
)
>=
pPars
->
nConfLimit
)
Abc_Print
(
1
,
"SAT solver ran out of resources at %d conflicts in frame %d. "
,
pPars
->
nConfLimit
,
f
);
else
if
(
p
->
nSeenGla
>=
Gia_ManCandNum
(
pAig
)
*
(
100
-
pPars
->
nRatioMin
)
/
100
)
Abc_Print
(
1
,
"The ratio of abstracted objects is less than %d %% in frame %d. "
,
pPars
->
nRatioMin
,
f
);
else
Abc_Print
(
1
,
"Abstraction stopped for unknown reason in frame %d. "
,
f
);
}
else
Abc_Print
(
1
,
"
Abstraction stopped for unknown reason in frame %d
. "
,
f
);
Abc_Print
(
1
,
"
SAT solver completed %d frames and produced an abstraction
. "
,
f
);
}
else
Abc_Print
(
1
,
"SAT solver completed %d frames and produced an abstraction. "
,
f
);
}
else
{
...
...
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