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
dbe2b466
Commit
dbe2b466
authored
Oct 01, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added handling of exceeding conflict limit in PushClasses.
parent
519b03e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/sat/pdr/pdrCore.c
+15
-3
No files found.
src/sat/pdr/pdrCore.c
View file @
dbe2b466
...
@@ -127,7 +127,7 @@ int Pdr_ManPushClauses( Pdr_Man_t * p )
...
@@ -127,7 +127,7 @@ int Pdr_ManPushClauses( Pdr_Man_t * p )
{
{
Pdr_Set_t
*
pTemp
,
*
pCubeK
,
*
pCubeK1
;
Pdr_Set_t
*
pTemp
,
*
pCubeK
,
*
pCubeK1
;
Vec_Ptr_t
*
vArrayK
,
*
vArrayK1
;
Vec_Ptr_t
*
vArrayK
,
*
vArrayK1
;
int
i
,
j
,
k
,
m
,
RetValue
=
0
,
kMax
=
Vec_PtrSize
(
p
->
vSolvers
)
-
1
;
int
i
,
j
,
k
,
m
,
RetValue
=
0
,
RetValue2
,
kMax
=
Vec_PtrSize
(
p
->
vSolvers
)
-
1
;
int
Counter
=
0
;
int
Counter
=
0
;
int
clk
=
clock
();
int
clk
=
clock
();
Vec_VecForEachLevelStartStop
(
p
->
vClauses
,
vArrayK
,
k
,
1
,
kMax
)
Vec_VecForEachLevelStartStop
(
p
->
vClauses
,
vArrayK
,
k
,
1
,
kMax
)
...
@@ -150,7 +150,10 @@ int Pdr_ManPushClauses( Pdr_Man_t * p )
...
@@ -150,7 +150,10 @@ int Pdr_ManPushClauses( Pdr_Man_t * p )
}
}
// check if the clause can be moved to the next frame
// check if the clause can be moved to the next frame
if
(
!
Pdr_ManCheckCube
(
p
,
k
,
pCubeK
,
NULL
,
0
)
)
RetValue2
=
Pdr_ManCheckCube
(
p
,
k
,
pCubeK
,
NULL
,
0
);
if
(
RetValue2
==
-
1
)
return
-
1
;
if
(
!
RetValue2
)
continue
;
continue
;
{
{
...
@@ -590,7 +593,16 @@ int Pdr_ManSolveInt( Pdr_Man_t * p )
...
@@ -590,7 +593,16 @@ int Pdr_ManSolveInt( Pdr_Man_t * p )
Pdr_ManPrintClauses
(
p
,
0
);
Pdr_ManPrintClauses
(
p
,
0
);
}
}
// push clauses into this timeframe
// push clauses into this timeframe
if
(
Pdr_ManPushClauses
(
p
)
)
RetValue
=
Pdr_ManPushClauses
(
p
);
if
(
RetValue
==
-
1
)
{
if
(
p
->
pPars
->
fVerbose
)
Pdr_ManPrintProgress
(
p
,
1
,
clock
()
-
clkStart
);
printf
(
"Reached conflict limit (%d).
\n
"
,
p
->
pPars
->
nConfLimit
);
p
->
pPars
->
iFrame
=
k
;
return
-
1
;
}
if
(
RetValue
)
{
{
if
(
p
->
pPars
->
fVerbose
)
if
(
p
->
pPars
->
fVerbose
)
Pdr_ManPrintProgress
(
p
,
1
,
clock
()
-
clkStart
);
Pdr_ManPrintProgress
(
p
,
1
,
clock
()
-
clkStart
);
...
...
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