Mentions légales du service

Skip to content
Snippets Groups Projects
Commit eeaa767a authored by Federico Ulliana's avatar Federico Ulliana
Browse files

added some debugging

parent 53ea5d6f
No related branches found
No related tags found
1 merge request!68Resolve "add explanation module"
Pipeline #1120198 failed
...@@ -121,7 +121,12 @@ public class MARCOGMUSSolver implements Solver { ...@@ -121,7 +121,12 @@ public class MARCOGMUSSolver implements Solver {
} }
if (line.startsWith("U")) { if (line.startsWith("U")) {
gmuses.add(line.split("U ")[1]); gmuses.add(line.split("U ")[1]);
System.out.println(line);
} else { } else {
if (line.startsWith("S")) {
// satisfiable set
System.out.println(line);
}
System.err.println(line); System.err.println(line);
} }
} }
...@@ -184,9 +189,14 @@ public class MARCOGMUSSolver implements Solver { ...@@ -184,9 +189,14 @@ public class MARCOGMUSSolver implements Solver {
try { try {
while ((line = in.readLine()) != null) { while ((line = in.readLine()) != null) {
if (line.startsWith("U")) { if (line.startsWith("U")) {
gmuses.add(line.split("U ")[1]); // Extract GMUSes from MARCO's output gmuses.add(line.split("U ")[1]);
System.out.println(line);
} else { } else {
System.err.println(line); // Log unexpected output if (line.startsWith("S")) {
// satisfiable set
System.out.println(line);
}
System.err.println(line);
} }
} }
} catch (IOException e) { } catch (IOException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment