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
60fae35d
Commit
60fae35d
authored
Sep 13, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing several bugs, which led to unsound results produced by 'pdr -a' with per-output timeout.
parent
a4087e45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
src/proof/pdr/pdrCore.c
+11
-3
src/proof/pdr/pdrInv.c
+1
-1
src/proof/pdr/pdrSat.c
+3
-0
No files found.
src/proof/pdr/pdrCore.c
View file @
60fae35d
...
...
@@ -491,8 +491,16 @@ int Pdr_ManBlockCube( Pdr_Man_t * p, Pdr_Set_t * pCube )
// check other frames
assert
(
pPred
==
NULL
);
for
(
k
=
pThis
->
iFrame
;
k
<
kMax
;
k
++
)
if
(
!
Pdr_ManCheckCube
(
p
,
k
,
pCubeMin
,
NULL
,
0
)
)
{
RetValue
=
Pdr_ManCheckCube
(
p
,
k
,
pCubeMin
,
NULL
,
0
);
if
(
RetValue
==
-
1
)
{
Pdr_OblDeref
(
pThis
);
return
-
1
;
}
if
(
!
RetValue
)
break
;
}
// add new clause
if
(
p
->
pPars
->
fVeryVerbose
)
...
...
@@ -740,8 +748,8 @@ int Pdr_ManSolveInt( Pdr_Man_t * p )
p
->
pPars
->
nDropOuts
++
;
if
(
p
->
pPars
->
vOutMap
)
Vec_IntWriteEntry
(
p
->
pPars
->
vOutMap
,
p
->
iOutCur
,
-
1
);
if
(
p
->
pPars
->
f
Verbose
)
printf
(
"Timing out on output %d.
\n
"
,
p
->
iOutCur
);
if
(
!
p
->
pPars
->
fNot
Verbose
)
Abc_Print
(
1
,
"Timing out on output %*d.
\n
"
,
nOutDigits
,
p
->
iOutCur
);
}
p
->
timeToStopOne
=
0
;
}
...
...
src/proof/pdr/pdrInv.c
View file @
60fae35d
...
...
@@ -336,7 +336,7 @@ void Pdr_ManVerifyInvariant( Pdr_Man_t * p )
kThis
=
Vec_PtrSize
(
p
->
vSolvers
);
pSat
=
Pdr_ManCreateSolver
(
p
,
kThis
);
// add the property output
Pdr_ManSetPropertyOutput
(
p
,
kThis
);
//
Pdr_ManSetPropertyOutput( p, kThis );
// add the clauses
Vec_PtrForEachEntry
(
Pdr_Set_t
*
,
vCubes
,
pCube
,
i
)
{
...
...
src/proof/pdr/pdrSat.c
View file @
60fae35d
...
...
@@ -185,6 +185,9 @@ void Pdr_ManSetPropertyOutput( Pdr_Man_t * p, int k )
// skip solved outputs
if
(
p
->
vCexes
&&
Vec_PtrEntry
(
p
->
vCexes
,
i
)
)
continue
;
// skip timedout outputs
if
(
p
->
pPars
->
vOutMap
&&
Vec_IntEntry
(
p
->
pPars
->
vOutMap
,
i
)
==
-
1
)
continue
;
Lit
=
toLitCond
(
Pdr_ObjSatVar
(
p
,
k
,
1
,
pObj
),
1
);
// neg literal
RetValue
=
sat_solver_addclause
(
pSat
,
&
Lit
,
&
Lit
+
1
);
assert
(
RetValue
==
1
);
...
...
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