Skip to content

Commit

Permalink
changed sat4J version to 2.3.6 for debugging openDSE
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasPfeifer committed Mar 13, 2024
1 parent 1d3de09 commit 99d8d65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mainClassName = 'org.opt4j.core.start.Opt4J'
ext{
opt4jJavaVersion = "21"
guiceVersion = "7.0.0"
sat4jVersion = "2.3.5"
sat4jVersion = "2.3.6"
junitVersion = "5.10.2"
mockitoVersion = "5.10.0"
jacocoVersion = "0.8.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void setLits(ILits lits) {
activity = new double[nlength];
phase = new boolean[nlength];
activity[0] = -1;
heap = new Heap(activity);
heap = createHeap(activity);
heap.setBounds(nlength);
for (int i = 1; i < nlength; i++) {
assert i > 0;
Expand All @@ -96,17 +96,6 @@ public void init() {
// nothing to be done
}

/*
* (non-Javadoc)
*
* @see org.sat4j.minisat.orders.VarOrderHeap#updateActivity(int)
*/
@Override
protected void updateActivity(final int var) {
if ((activity[var] += varInc) > VAR_RESCALE_BOUND) {
varRescaleActivity();
}
}

/**
* Increments the activity of a variable {@code var} by the specified
Expand All @@ -115,6 +104,7 @@ protected void updateActivity(final int var) {
* @param var the variable
* @param inc the value to increment the variable
*/
@Override
protected void updateActivity(final int var, final double inc) {
if ((activity[var] += inc) > VAR_RESCALE_BOUND) {
varRescaleActivity();
Expand Down

0 comments on commit 99d8d65

Please sign in to comment.