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
b5306c15
Commit
b5306c15
authored
Sep 20, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added simplification before the concurrent call to PDR.
parent
5f09917c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
src/base/abci/abc.c
+6
-2
src/proof/abs/abs.h
+2
-1
src/proof/abs/absGla.c
+1
-1
src/proof/abs/absPth.c
+7
-4
No files found.
src/base/abci/abc.c
View file @
b5306c15
...
...
@@ -28164,7 +28164,7 @@ int Abc_CommandAbc9Gla( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
,
fNewAlgo
=
1
;
Abs_ParSetDefaults
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FSCLDETRPBAtfardmnscbpqwvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"FSCLDETRPBAtfardmnscbpq
u
wvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -28323,6 +28323,9 @@ int Abc_CommandAbc9Gla( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'q'
:
pPars
->
fCallProver
^=
1
;
break
;
case
'u'
:
pPars
->
fSimpProver
^=
1
;
break
;
case
'v'
:
pPars
->
fVerbose
^=
1
;
break
;
...
...
@@ -28371,7 +28374,7 @@ int Abc_CommandAbc9Gla( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &gla [-FSCLDETRPB num] [-A file] [-fardmnscbpqwvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &gla [-FSCLDETRPB num] [-A file] [-fardmnscbpq
u
wvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
fixed-time-frame gate-level proof- and cex-based abstraction
\n
"
);
Abc_Print
(
-
2
,
"
\t
-F num : the max number of timeframes to unroll [default = %d]
\n
"
,
pPars
->
nFramesMax
);
Abc_Print
(
-
2
,
"
\t
-S num : the starting time frame (0=unused) [default = %d]
\n
"
,
pPars
->
nFramesStart
);
...
...
@@ -28395,6 +28398,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-b : toggle CNF construction without hashing [default = %s]
\n
"
,
pPars
->
fSkipHash
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-p : toggle using full-proof for UNSAT cores [default = %s]
\n
"
,
pPars
->
fUseFullProof
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-q : toggle calling the prover [default = %s]
\n
"
,
pPars
->
fCallProver
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-u : toggle enabling simplifation before calling the prover [default = %s]
\n
"
,
pPars
->
fSimpProver
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
pPars
->
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing more verbose information [default = %s]
\n
"
,
pPars
->
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
...
...
src/proof/abs/abs.h
View file @
b5306c15
...
...
@@ -69,6 +69,7 @@ struct Abs_Par_t_
int
fDumpVabs
;
// dumps the abstracted model
int
fDumpMabs
;
// dumps the original AIG with abstraction map
int
fCallProver
;
// calls the prover
int
fSimpProver
;
// calls simplification before prover
char
*
pFileVabs
;
// dumps the abstracted model into this file
int
fVerbose
;
// verbose flag
int
fVeryVerbose
;
// print additional information
...
...
@@ -108,7 +109,7 @@ extern int Gia_ManPerformGlaOld( Gia_Man_t * p, Abs_Par_t * pPars,
/*=== absIter.c =========================================================*/
extern
Gia_Man_t
*
Gia_ManShrinkGla
(
Gia_Man_t
*
p
,
int
nFrameMax
,
int
nTimeOut
,
int
fUsePdr
,
int
fUseSat
,
int
fUseBdd
,
int
fVerbose
);
/*=== absPth.c =========================================================*/
extern
void
Gia_GlaProveAbsracted
(
Gia_Man_t
*
p
,
int
fVerbose
);
extern
void
Gia_GlaProveAbsracted
(
Gia_Man_t
*
p
,
int
f
SimpProver
,
int
f
Verbose
);
extern
void
Gia_GlaProveCancel
(
int
fVerbose
);
extern
int
Gia_GlaProveCheck
(
int
fVerbose
);
/*=== absVta.c =========================================================*/
...
...
src/proof/abs/absGla.c
View file @
b5306c15
...
...
@@ -1797,7 +1797,7 @@ int Gia_ManPerformGla( Gia_Man_t * pAig, Abs_Par_t * pPars )
if
(
iFrameTryToProve
>=
0
)
Gia_GlaProveCancel
(
pPars
->
fVerbose
);
// prove new one
Gia_GlaProveAbsracted
(
pAig
,
pPars
->
fVeryVerbose
);
Gia_GlaProveAbsracted
(
pAig
,
pPars
->
f
SimpProver
,
pPars
->
f
VeryVerbose
);
iFrameTryToProve
=
f
;
p
->
nPdrCalls
++
;
}
...
...
src/proof/abs/absPth.c
View file @
b5306c15
...
...
@@ -46,7 +46,7 @@ ABC_NAMESPACE_IMPL_START
#ifndef ABC_USE_PTHREADS
void
Gia_GlaProveAbsracted
(
Gia_Man_t
*
p
,
int
fVerbose
)
{}
void
Gia_GlaProveAbsracted
(
Gia_Man_t
*
p
,
int
f
SimpProver
,
int
f
Verbose
)
{}
void
Gia_GlaProveCancel
(
int
fVerbose
)
{}
int
Gia_GlaProveCheck
(
int
fVerbose
)
{
return
0
;
}
...
...
@@ -134,7 +134,7 @@ void * Abs_ProverThread( void * pArg )
assert
(
0
);
return
NULL
;
}
void
Gia_GlaProveAbsracted
(
Gia_Man_t
*
pGia
,
int
fVerbose
)
void
Gia_GlaProveAbsracted
(
Gia_Man_t
*
pGia
,
int
f
SimpProver
,
int
f
Verbose
)
{
extern
Aig_Man_t
*
Dar_ManRwsat
(
Aig_Man_t
*
pAig
,
int
fBalance
,
int
fVerbose
);
Abs_ThData_t
*
pThData
;
...
...
@@ -152,6 +152,8 @@ void Gia_GlaProveAbsracted( Gia_Man_t * pGia, int fVerbose )
pAig
=
Gia_ManToAigSimple
(
pAbs
);
Gia_ManStop
(
pAbs
);
// simplify abstraction
if
(
fSimpProver
)
{
Ssw_ManSetDefaultParams
(
pPars
);
pPars
->
nFramesK
=
4
;
pAig
=
Ssw_SignalCorrespondence
(
pTemp
=
pAig
,
pPars
);
...
...
@@ -159,9 +161,10 @@ void Gia_GlaProveAbsracted( Gia_Man_t * pGia, int fVerbose )
//Aig_ManPrintStats( pTemp );
//Aig_ManPrintStats( pAig );
Aig_ManStop
(
pTemp
);
}
// synthesize abstraction
pAig
=
Dar_ManRwsat
(
pTemp
=
pAig
,
0
,
0
);
Aig_ManStop
(
pTemp
);
//
pAig = Dar_ManRwsat( pTemp = pAig, 0, 0 );
//
Aig_ManStop( pTemp );
// reset the proof
status
=
pthread_mutex_lock
(
&
g_mutex
);
assert
(
status
==
0
);
g_fAbstractionProved
=
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