make debug output computer independent
This commit is contained in:
@@ -241,8 +241,10 @@ public class TopDownAnalyzer {
|
|||||||
new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression);
|
new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression);
|
||||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||||
try {
|
try {
|
||||||
File target = new File(System.getProperty("user.home") + "/work/cfg.dot").getAbsoluteFile();
|
File workDirectory = new File(System.getProperty("user.home") + "/work/");
|
||||||
target.mkdirs();
|
workDirectory.mkdirs();
|
||||||
|
File target = new File(workDirectory, "cfg.dot");
|
||||||
|
|
||||||
PrintStream out = new PrintStream(target);
|
PrintStream out = new PrintStream(target);
|
||||||
out.println("digraph " + function.getName() + " {");
|
out.println("digraph " + function.getName() + " {");
|
||||||
Collection<Pseudocode> pseudocodes = controlFlowDataTrace.getAllData();
|
Collection<Pseudocode> pseudocodes = controlFlowDataTrace.getAllData();
|
||||||
|
|||||||
Reference in New Issue
Block a user