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
e4842315
Commit
e4842315
authored
Jul 07, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing time printouts in 'pdr'.
parent
70331b58
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
22 deletions
+21
-22
src/proof/pdr/pdrCore.c
+5
-6
src/proof/pdr/pdrInt.h
+10
-11
src/proof/pdr/pdrInv.c
+2
-1
src/proof/pdr/pdrMan.c
+0
-1
src/proof/pdr/pdrSat.c
+3
-2
src/proof/pdr/pdrTsim.c
+1
-1
No files found.
src/proof/pdr/pdrCore.c
View file @
e4842315
...
...
@@ -130,7 +130,7 @@ int Pdr_ManPushClauses( Pdr_Man_t * p )
Vec_Ptr_t
*
vArrayK
,
*
vArrayK1
;
int
i
,
j
,
k
,
m
,
RetValue
=
0
,
RetValue2
,
kMax
=
Vec_PtrSize
(
p
->
vSolvers
)
-
1
;
int
Counter
=
0
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
Vec_VecForEachLevelStartStop
(
p
->
vClauses
,
vArrayK
,
k
,
1
,
kMax
)
{
Vec_PtrSort
(
vArrayK
,
(
int
(
*
)(
void
))
Pdr_SetCompare
);
...
...
@@ -294,7 +294,8 @@ int * Pdr_ManSortByPriority( Pdr_Man_t * p, Pdr_Set_t * pCube )
int
Pdr_ManGeneralize
(
Pdr_Man_t
*
p
,
int
k
,
Pdr_Set_t
*
pCube
,
Pdr_Set_t
**
ppPred
,
Pdr_Set_t
**
ppCubeMin
)
{
Pdr_Set_t
*
pCubeMin
,
*
pCubeTmp
=
NULL
;
int
i
,
j
,
n
,
Lit
,
RetValue
,
clk
=
clock
();
int
i
,
j
,
n
,
Lit
,
RetValue
;
clock_t
clk
=
clock
();
int
*
pOrder
;
// if there is no induction, return
*
ppCubeMin
=
NULL
;
...
...
@@ -549,8 +550,7 @@ int Pdr_ManSolveInt( Pdr_Man_t * p )
int
fPrintClauses
=
0
;
Pdr_Set_t
*
pCube
;
int
k
,
RetValue
=
-
1
;
// int clkTotal = clock();
int
clkStart
=
clock
();
clock_t
clkStart
=
clock
();
p
->
timeToStop
=
p
->
pPars
->
nTimeOut
?
time
(
NULL
)
+
p
->
pPars
->
nTimeOut
:
0
;
assert
(
Vec_PtrSize
(
p
->
vSolvers
)
==
0
);
// create the first timeframe
...
...
@@ -673,13 +673,12 @@ int Pdr_ManSolve_( Aig_Man_t * pAig, Pdr_Par_t * pPars, Vec_Int_t ** pvPrioInit,
{
Pdr_Man_t
*
p
;
int
RetValue
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
p
=
Pdr_ManStart
(
pAig
,
pPars
,
pvPrioInit
?
*
pvPrioInit
:
NULL
);
RetValue
=
Pdr_ManSolveInt
(
p
);
*
ppCex
=
RetValue
?
NULL
:
Pdr_ManDeriveCex
(
p
);
if
(
p
->
pPars
->
fDumpInv
)
Pdr_ManDumpClauses
(
p
,
(
char
*
)
"inv.pla"
,
RetValue
==
1
);
// if ( *ppCex && pPars->fVerbose )
// Abc_Print( 1, "Found counter-example in frame %d after exploring %d frames.\n",
// (*ppCex)->iFrame, p->nFrames );
...
...
src/proof/pdr/pdrInt.h
View file @
e4842315
...
...
@@ -111,18 +111,17 @@ struct Pdr_Man_t_
int
nQueMax
;
int
nQueLim
;
// runtime
ABC_INT64_T
timeStart
;
ABC_INT64_T
timeToStop
;
time_t
timeToStop
;
// time stats
ABC_INT64_T
tSat
;
ABC_INT64_T
tSatSat
;
ABC_INT64_T
tSatUnsat
;
ABC_INT64_T
tGeneral
;
ABC_INT64_T
tPush
;
ABC_INT64_T
tTsim
;
ABC_INT64_T
tContain
;
ABC_INT64_T
tCnf
;
ABC_INT64_T
tTotal
;
clock_t
tSat
;
clock_t
tSatSat
;
clock_t
tSatUnsat
;
clock_t
tGeneral
;
clock_t
tPush
;
clock_t
tTsim
;
clock_t
tContain
;
clock_t
tCnf
;
clock_t
tTotal
;
};
////////////////////////////////////////////////////////////////////////
...
...
src/proof/pdr/pdrInv.c
View file @
e4842315
...
...
@@ -320,7 +320,8 @@ void Pdr_ManVerifyInvariant( Pdr_Man_t * p )
Vec_Int_t
*
vLits
;
Vec_Ptr_t
*
vCubes
;
Pdr_Set_t
*
pCube
;
int
i
,
kStart
,
kThis
,
RetValue
,
Counter
=
0
,
clk
=
clock
();
int
i
,
kStart
,
kThis
,
RetValue
,
Counter
=
0
;
clock_t
clk
=
clock
();
// collect cubes used in the inductive invariant
kStart
=
Pdr_ManFindInvariantStart
(
p
);
vCubes
=
Pdr_ManCollectCubes
(
p
,
kStart
);
...
...
src/proof/pdr/pdrMan.c
View file @
e4842315
...
...
@@ -72,7 +72,6 @@ Pdr_Man_t * Pdr_ManStart( Aig_Man_t * pAig, Pdr_Par_t * pPars, Vec_Int_t * vPrio
Aig_ManFanoutStart
(
pAig
);
if
(
pAig
->
pTerSimData
==
NULL
)
pAig
->
pTerSimData
=
ABC_CALLOC
(
unsigned
,
1
+
(
Aig_ManObjNumMax
(
pAig
)
/
16
)
);
p
->
timeStart
=
clock
();
return
p
;
}
...
...
src/proof/pdr/pdrSat.c
View file @
e4842315
...
...
@@ -140,7 +140,7 @@ Vec_Int_t * Pdr_ManCubeToLits( Pdr_Man_t * p, int k, Pdr_Set_t * pCube, int fCom
{
Aig_Obj_t
*
pObj
;
int
i
,
iVar
,
iVarMax
=
0
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
Vec_IntClear
(
p
->
vLits
);
for
(
i
=
0
;
i
<
pCube
->
nLits
;
i
++
)
{
...
...
@@ -272,7 +272,8 @@ int Pdr_ManCheckCube( Pdr_Man_t * p, int k, Pdr_Set_t * pCube, Pdr_Set_t ** ppPr
int
fLitUsed
=
0
;
sat_solver
*
pSat
;
Vec_Int_t
*
vLits
;
int
Lit
,
RetValue
,
clk
;
int
Lit
,
RetValue
;
clock_t
clk
;
p
->
nCalls
++
;
pSat
=
Pdr_ManFetchSolver
(
p
,
k
);
if
(
pCube
==
NULL
)
// solve the property
...
...
src/proof/pdr/pdrTsim.c
View file @
e4842315
...
...
@@ -363,7 +363,7 @@ Pdr_Set_t * Pdr_ManTernarySim( Pdr_Man_t * p, int k, Pdr_Set_t * pCube )
Vec_Int_t
*
vRes
=
p
->
vRes
;
// final result (flop literals)
Aig_Obj_t
*
pObj
;
int
i
,
Entry
,
RetValue
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
// collect CO objects
Vec_IntClear
(
vCoObjs
);
...
...
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