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
0a5d856c
Commit
0a5d856c
authored
Nov 22, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making GLA PBA and GLA CBA communicate information.
parent
ff938c71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
src/aig/gia/giaAbs.c
+5
-2
src/aig/saig/saigGlaPba.c
+3
-3
src/base/abci/abc.c
+6
-7
No files found.
src/aig/gia/giaAbs.c
View file @
0a5d856c
...
@@ -484,8 +484,11 @@ int Gia_ManGlaPbaPerform( Gia_Man_t * pGia, void * pPars )
...
@@ -484,8 +484,11 @@ int Gia_ManGlaPbaPerform( Gia_Man_t * pGia, void * pPars )
pGia
->
vGateClasses
=
vGateClasses
;
pGia
->
vGateClasses
=
vGateClasses
;
}
}
// clean up the abstraction map
// clean up the abstraction map
pGiaAbs
=
Gia_ManDupAbsGates
(
pGia
,
pGia
->
vGateClasses
);
if
(
pGia
->
vGateClasses
)
Gia_ManStop
(
pGiaAbs
);
{
pGiaAbs
=
Gia_ManDupAbsGates
(
pGia
,
pGia
->
vGateClasses
);
Gia_ManStop
(
pGiaAbs
);
}
if
(
p
->
fVerbose
)
if
(
p
->
fVerbose
)
Gia_ManPrintStats
(
pGia
,
0
);
Gia_ManPrintStats
(
pGia
,
0
);
return
1
;
return
1
;
...
...
src/aig/saig/saigGlaPba.c
View file @
0a5d856c
...
@@ -579,7 +579,7 @@ Vec_Int_t * Aig_Gla2ManPerform( Aig_Man_t * pAig, int nStart, int nFramesMax, in
...
@@ -579,7 +579,7 @@ Vec_Int_t * Aig_Gla2ManPerform( Aig_Man_t * pAig, int nStart, int nFramesMax, in
return
NULL
;
return
NULL
;
}
}
sat_solver_set_random
(
p
->
pSat
,
fSkipRand
);
sat_solver_set_random
(
p
->
pSat
,
fSkipRand
);
p
->
timePre
+=
Abc_Clock
(
1
,
0
)
;
p
->
timePre
+=
(
Abc_Clock
(
1
,
0
)
/
ABC_CPS
)
*
CLOCKS_PER_SEC
;
// set runtime limit
// set runtime limit
if
(
TimeLimit
)
if
(
TimeLimit
)
...
@@ -593,8 +593,8 @@ Vec_Int_t * Aig_Gla2ManPerform( Aig_Man_t * pAig, int nStart, int nFramesMax, in
...
@@ -593,8 +593,8 @@ Vec_Int_t * Aig_Gla2ManPerform( Aig_Man_t * pAig, int nStart, int nFramesMax, in
Aig_Gla2ManStop
(
p
);
Aig_Gla2ManStop
(
p
);
return
NULL
;
return
NULL
;
}
}
p
->
timeSat
+=
Abc_Clock
(
1
,
0
)
;
p
->
timeSat
+=
(
Abc_Clock
(
1
,
0
)
/
ABC_CPS
)
*
CLOCKS_PER_SEC
;
p
->
timeTotal
=
Abc_Clock
(
0
,
0
)
;
p
->
timeTotal
=
(
Abc_Clock
(
0
,
0
)
/
ABC_CPS
)
*
CLOCKS_PER_SEC
;
// print stats
// print stats
if
(
fVerbose
)
if
(
fVerbose
)
...
...
src/base/abci/abc.c
View file @
0a5d856c
...
@@ -28952,8 +28952,8 @@ int Abc_CommandAbc9GlaCba( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -28952,8 +28952,8 @@ int Abc_CommandAbc9GlaCba( Abc_Frame_t * pAbc, int argc, char ** argv )
Saig_ParBmc_t
Pars
,
*
pPars
=
&
Pars
;
Saig_ParBmc_t
Pars
,
*
pPars
=
&
Pars
;
int
c
,
fNaiveCnf
=
0
;
int
c
,
fNaiveCnf
=
0
;
Saig_ParBmcSetDefaultParams
(
pPars
);
Saig_ParBmcSetDefaultParams
(
pPars
);
pPars
->
nStart
=
0
;
//
(pAbc->nFrames >= 0) ? pAbc->nFrames : 0;
pPars
->
nStart
=
(
pAbc
->
nFrames
>=
0
)
?
pAbc
->
nFrames
:
0
;
pPars
->
nFramesMax
=
0
;
// pPars->nStart + 10;
pPars
->
nFramesMax
=
0
;
pPars
->
nConfLimit
=
0
;
pPars
->
nConfLimit
=
0
;
pPars
->
nTimeOut
=
60
;
pPars
->
nTimeOut
=
60
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
...
@@ -29054,10 +29054,9 @@ int Abc_CommandAbc9GlaCba( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -29054,10 +29054,9 @@ int Abc_CommandAbc9GlaCba( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
}
}
pAbc
->
Status
=
Gia_ManGlaCbaPerform
(
pAbc
->
pGia
,
pPars
,
fNaiveCnf
);
pAbc
->
Status
=
Gia_ManGlaCbaPerform
(
pAbc
->
pGia
,
pPars
,
fNaiveCnf
);
if
(
pPars
->
nStart
==
0
)
//
if ( pPars->nStart == 0 )
pAbc
->
nFrames
=
pPars
->
iFrame
;
pAbc
->
nFrames
=
pPars
->
iFrame
;
Abc_FrameReplaceCex
(
pAbc
,
&
pAbc
->
pGia
->
pCexSeq
);
Abc_FrameReplaceCex
(
pAbc
,
&
pAbc
->
pGia
->
pCexSeq
);
// printf( "This command is currently not enabled.\n" );
return
0
;
return
0
;
usage:
usage:
...
@@ -29090,8 +29089,8 @@ int Abc_CommandAbc9GlaPba( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -29090,8 +29089,8 @@ int Abc_CommandAbc9GlaPba( Abc_Frame_t * pAbc, int argc, char ** argv )
Saig_ParBmc_t
Pars
,
*
pPars
=
&
Pars
;
Saig_ParBmc_t
Pars
,
*
pPars
=
&
Pars
;
int
c
;
int
c
;
Saig_ParBmcSetDefaultParams
(
pPars
);
Saig_ParBmcSetDefaultParams
(
pPars
);
pPars
->
nStart
=
0
;
//(pAbc->nFrames >= 0) ? pAbc->nFrames : 0;
pPars
->
nStart
=
0
;
pPars
->
nFramesMax
=
10
;
//pPars->nStart +
10;
pPars
->
nFramesMax
=
(
pAbc
->
nFrames
>=
0
)
?
pAbc
->
nFrames
:
10
;
pPars
->
nConfLimit
=
0
;
pPars
->
nConfLimit
=
0
;
pPars
->
fSkipRand
=
0
;
pPars
->
fSkipRand
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
...
@@ -29183,7 +29182,7 @@ int Abc_CommandAbc9GlaPba( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -29183,7 +29182,7 @@ int Abc_CommandAbc9GlaPba( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
nStart
)
if
(
pPars
->
nStart
)
Abc_Print
(
0
,
"The starting frame is specified. The resulting abstraction may be unsound.
\n
"
);
Abc_Print
(
0
,
"The starting frame is specified. The resulting abstraction may be unsound.
\n
"
);
pAbc
->
Status
=
Gia_ManGlaPbaPerform
(
pAbc
->
pGia
,
pPars
);
pAbc
->
Status
=
Gia_ManGlaPbaPerform
(
pAbc
->
pGia
,
pPars
);
if
(
pPars
->
nStart
==
0
)
//
if ( pPars->nStart == 0 )
pAbc
->
nFrames
=
pPars
->
iFrame
;
pAbc
->
nFrames
=
pPars
->
iFrame
;
Abc_FrameReplaceCex
(
pAbc
,
&
pAbc
->
pGia
->
pCexSeq
);
Abc_FrameReplaceCex
(
pAbc
,
&
pAbc
->
pGia
->
pCexSeq
);
return
0
;
return
0
;
...
...
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