Browse Source

Tweak CUDD out-of-memory error output.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@10492 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 11 years ago
parent
commit
f930d8e60f
  1. 2
      prism/src/jdd/JDD.java
  2. 10
      prism/src/prism/PrismCL.java

2
prism/src/jdd/JDD.java

@ -135,7 +135,7 @@ public class JDD
/** Constructor */ /** Constructor */
CuddOutOfMemoryException() { CuddOutOfMemoryException() {
super("The MTBDD library CUDD seems to have run out of memory or encountered an internal error.");
super("Out of memory (or other internal error) in the CUDD library");
} }
} }

10
prism/src/prism/PrismCL.java

@ -204,18 +204,18 @@ public class PrismCL implements PrismModelListener
try { try {
run(args); run(args);
} catch (jdd.JDD.CuddOutOfMemoryException e) { } catch (jdd.JDD.CuddOutOfMemoryException e) {
mainLog.println("\nError: " + e.getMessage());
mainLog.println(" Try to restart PRISM and increase the memory available to CUDD using the -cuddmaxmem argument.\n");
mainLog.println(" Stack trace for the failed method:");
mainLog.println("\nCUDD internal error detected, from the following stack trace:");
for (StackTraceElement st : e.getStackTrace()) { for (StackTraceElement st : e.getStackTrace()) {
mainLog.print(" "); mainLog.print(" ");
mainLog.println(st); mainLog.println(st);
} }
System.exit(1);
errorAndExit(e.getMessage() + ".\nTip: Try using the -cuddmaxmem switch to increase the memory available to CUDD");
} }
} }
// entry point - run method
/**
* Run PRISM.
*/
public void run(String[] args) public void run(String[] args)
{ {
int i, j, k; int i, j, k;

Loading…
Cancel
Save