make debug output computer independent

This commit is contained in:
Maxim Shafirov
2011-04-02 17:52:37 +04:00
parent 50f9b000d6
commit d706383dca
@@ -241,8 +241,10 @@ public class TopDownAnalyzer {
new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression);
if (!ApplicationManager.getApplication().isUnitTestMode()) {
try {
File target = new File(System.getProperty("user.home") + "/work/cfg.dot").getAbsoluteFile();
target.mkdirs();
File workDirectory = new File(System.getProperty("user.home") + "/work/");
workDirectory.mkdirs();
File target = new File(workDirectory, "cfg.dot");
PrintStream out = new PrintStream(target);
out.println("digraph " + function.getName() + " {");
Collection<Pseudocode> pseudocodes = controlFlowDataTrace.getAllData();