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
9ec9d9f3
Commit
9ec9d9f3
authored
Oct 19, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New abstraction code.
parent
19ce8396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
src/aig/saig/saigAbsGla.c
+15
-5
src/base/abci/abc.c
+5
-0
No files found.
src/aig/saig/saigAbsGla.c
View file @
9ec9d9f3
...
...
@@ -665,10 +665,10 @@ Vec_Int_t * Aig_GlaManTest( Aig_Man_t * pAig, int nFramesMax, int nConfLimit, in
if
(
fVerbose
)
{
if
(
TimeLimit
)
printf
(
"Abstracting from frame %d to frame %d with timeout %d sec.
\n
"
,
nStart
,
nFramesMax
,
TimeLimit
);
else
printf
(
"Abstracting from frame %d to frame %d with no timeout.
\n
"
,
nStart
,
nFramesMax
);
if
(
TimeLimit
)
printf
(
"Abstracting from frame %d to frame %d with timeout %d sec.
\n
"
,
nStart
,
nFramesMax
,
TimeLimit
);
else
printf
(
"Abstracting from frame %d to frame %d with no timeout.
\n
"
,
nStart
,
nFramesMax
);
}
// start the solver
...
...
@@ -748,6 +748,14 @@ Vec_Int_t * Aig_GlaManTest( Aig_Man_t * pAig, int nFramesMax, int nConfLimit, in
if
(
!
Aig_GlaObjAddToSolver
(
p
,
pObj
,
g
)
)
printf
(
"Error! SAT solver became UNSAT.
\n
"
);
}
if
(
Vec_IntSize
(
vPPiRefine
)
==
0
)
{
Vec_IntFreeP
(
&
p
->
vIncluded
);
Vec_IntFree
(
vPPiRefine
);
Aig_ManStop
(
pAbs
);
Abc_CexFree
(
pCex
);
break
;
}
Vec_IntFree
(
vPPiRefine
);
Aig_ManStop
(
pAbs
);
Abc_CexFree
(
pCex
);
...
...
@@ -764,6 +772,8 @@ Vec_Int_t * Aig_GlaManTest( Aig_Man_t * pAig, int nFramesMax, int nConfLimit, in
p
->
timeTotal
=
clock
()
-
clkTotal
;
if
(
f
==
nFramesMax
)
printf
(
"Finished %d frames without exceeding conflict limit (%d).
\n
"
,
f
,
nConfLimit
);
else
if
(
p
->
vIncluded
==
NULL
)
printf
(
"The problem is SAT in frame %d. The CEX is currently not produced.
\n
"
,
f
);
else
printf
(
"Ran out of conflict limit (%d) at frame %d.
\n
"
,
nConfLimit
,
f
);
// print stats
...
...
@@ -774,7 +784,7 @@ Vec_Int_t * Aig_GlaManTest( Aig_Man_t * pAig, int nFramesMax, int nConfLimit, in
ABC_PRTP
(
"Total "
,
p
->
timeTotal
,
p
->
timeTotal
);
}
// prepare return value
if
(
!
fNaiveCnf
)
if
(
!
fNaiveCnf
&&
p
->
vIncluded
)
Aig_GlaExtendIncluded
(
p
);
vResult
=
p
->
vIncluded
;
p
->
vIncluded
=
NULL
;
Aig_GlaManStop
(
p
);
...
...
src/base/abci/abc.c
View file @
9ec9d9f3
...
...
@@ -28975,6 +28975,11 @@ int Abc_CommandAbc9GlaCba( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"The network is combinational.
\n
"
);
return
0
;
}
if
(
Gia_ManPoNum
(
pAbc
->
pGia
)
>
1
)
{
Abc_Print
(
1
,
"The network is more than one PO (run
\"
orpos
\"
).
\n
"
);
return
0
;
}
pAbc
->
Status
=
Gia_ManGlaCbaPerform
(
pAbc
->
pGia
,
pPars
,
fNaiveCnf
);
if
(
pPars
->
nStart
==
0
)
pAbc
->
nFrames
=
pPars
->
iFrame
;
...
...
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