Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
philiprbrenan committed Jan 22, 2025
1 parent 362cc5f commit 205fc69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ProgramPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void traceMemory() //
}
}

void run() // Run the program
void run(String traceFile) // Run the program tracin to the named file
{z();
Trace.clear();
running = true;
Expand All @@ -152,7 +152,11 @@ void run() //
traceMemory();
if (time >= maxTime) stop("Out of time: ", time);
running = false;
if (traceMemory != null) writeFile("trace/"+currentTestName()+".txt", joinLines(Trace)); // Write the trace
if (traceMemory != null) writeFile(traceFile, joinLines(Trace)); // Write the trace
}

void run() // Run the program tracing to a default file
{run("trace/"+currentTestName()+".txt");
}

void halt(Object...O) // Halt execution with an explanatory message
Expand Down

0 comments on commit 205fc69

Please sign in to comment.