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
aea58944
Commit
aea58944
authored
Oct 04, 2020
by
Daniel Le Berre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved debug display
parent
b0e95aeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
org.sat4j.core/src/main/java/org/sat4j/minisat/constraints/cnf/BinaryClause.java
.../java/org/sat4j/minisat/constraints/cnf/BinaryClause.java
+4
-0
org.sat4j.core/src/main/java/org/sat4j/minisat/constraints/cnf/WLClause.java
...main/java/org/sat4j/minisat/constraints/cnf/WLClause.java
+4
-0
No files found.
org.sat4j.core/src/main/java/org/sat4j/minisat/constraints/cnf/BinaryClause.java
View file @
aea58944
...
...
@@ -158,11 +158,15 @@ public abstract class BinaryClause
stb
.
append
(
Lits
.
toString
(
this
.
head
));
stb
.
append
(
"["
);
//$NON-NLS-1$
stb
.
append
(
this
.
voc
.
valueToString
(
this
.
head
));
stb
.
append
(
"@"
);
stb
.
append
(
this
.
voc
.
getLevel
(
this
.
head
));
stb
.
append
(
"]"
);
//$NON-NLS-1$
stb
.
append
(
" "
);
//$NON-NLS-1$
stb
.
append
(
Lits
.
toString
(
this
.
tail
));
stb
.
append
(
"["
);
//$NON-NLS-1$
stb
.
append
(
this
.
voc
.
valueToString
(
this
.
tail
));
stb
.
append
(
"@"
);
stb
.
append
(
this
.
voc
.
getLevel
(
this
.
tail
));
stb
.
append
(
"]"
);
//$NON-NLS-1$
return
stb
.
toString
();
}
...
...
org.sat4j.core/src/main/java/org/sat4j/minisat/constraints/cnf/WLClause.java
View file @
aea58944
...
...
@@ -176,6 +176,8 @@ public abstract class WLClause implements Propagatable, Constr, Serializable {
stb
.
append
(
Lits
.
toString
(
lit
));
stb
.
append
(
"["
);
//$NON-NLS-1$
stb
.
append
(
this
.
voc
.
valueToString
(
lit
));
stb
.
append
(
"@"
);
stb
.
append
(
this
.
voc
.
getLevel
(
lit
));
stb
.
append
(
"]"
);
//$NON-NLS-1$
stb
.
append
(
" "
);
//$NON-NLS-1$
}
...
...
@@ -191,6 +193,8 @@ public abstract class WLClause implements Propagatable, Constr, Serializable {
stb
.
append
(
mapper
.
map
(
LiteralsUtils
.
toDimacs
(
lit
)));
stb
.
append
(
"["
);
//$NON-NLS-1$
stb
.
append
(
this
.
voc
.
valueToString
(
lit
));
stb
.
append
(
"@"
);
stb
.
append
(
this
.
voc
.
getLevel
(
lit
));
stb
.
append
(
"]"
);
//$NON-NLS-1$
stb
.
append
(
" "
);
//$NON-NLS-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