Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SAT4J
sat4j
Commits
9e1613b5
Commit
9e1613b5
authored
Sep 10, 2017
by
Daniel Le Berre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem where those constraints are watched even if the
constraint is found to be contradictory.
parent
fe04ee6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
org.sat4j.pb/src/main/java/org/sat4j/pb/constraints/pb/MaxWatchPbLong.java
...main/java/org/sat4j/pb/constraints/pb/MaxWatchPbLong.java
+5
-0
No files found.
org.sat4j.pb/src/main/java/org/sat4j/pb/constraints/pb/MaxWatchPbLong.java
View file @
9e1613b5
...
...
@@ -145,6 +145,11 @@ public final class MaxWatchPbLong extends WatchPbLong {
assert
this
.
watchCumul
>=
computeLeftSide
();
if
(!
this
.
learnt
&&
this
.
watchCumul
<
this
.
degree
)
{
for
(
int
i
=
0
;
i
<
this
.
lits
.
length
;
i
++)
{
if
(!
this
.
voc
.
isFalsified
(
this
.
lits
[
i
]))
{
this
.
voc
.
watches
(
this
.
lits
[
i
]
^
1
).
remove
(
this
);
}
}
throw
new
ContradictionException
(
"non satisfiable constraint"
);
}
}
...
...
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