/** {@inheritDoc} */
@Override public void resultSAT(Object command, long solvingTime, Object solution) {
if (!(solution instanceof A4Solution) || !(command instanceof Command)) return;
A4Solution sol = (A4Solution)solution;
Command cmd = (Command)command;
String formula = recordKodkod ? sol.debugExtractKInput() : "";
String filename = tempfile+".xml";
synchronized(SimpleReporter.class) {
try {
cb("R3", " Writing the XML file...");
if (latestModule!=null) writeXML(this, latestModule, filename, sol, latestKodkodSRC);