Skip to content

Commit

Permalink
Several bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodelpiano committed Aug 17, 2016
1 parent 7c56796 commit 7bb4d89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion prism/src/explicit/ProbModelChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public ProbModelChecker(PrismComponent parent) throws PrismException
// PRISM_MAX_ITERS
setMaxIters(settings.getInteger(PrismSettings.PRISM_MAX_ITERS));
// PRISM_PRECISION
setPrecision(settings.getInteger(PrismSettings.PRISM_PRECISION));
setPrecision(settings.getInteger(PrismSettings.PRISM_EXACTLP_PRECISION));
// PRISM_PRECOMPUTATION
setPrecomp(settings.getBoolean(PrismSettings.PRISM_PRECOMPUTATION));
// PRISM_PROB0
Expand Down
2 changes: 1 addition & 1 deletion prism/src/prism/Prism.java
Original file line number Diff line number Diff line change
Expand Up @@ -2787,7 +2787,7 @@ public Result modelCheck(PropertiesFile propertiesFile, Property prop) throws Pr
}

// For exact model checking
if (settings.getBoolean(PrismSettings.PRISM_EXACT_ENABLED) && !settings.getBoolean(PrismSettings.PRISM_EXACT_LP_ENABLED)) {
if (settings.getBoolean(PrismSettings.PRISM_EXACT_ENABLED) && !settings.getBoolean(PrismSettings.PRISM_EXACTLP_ENABLED)) {
return modelCheckExact(propertiesFile, prop);
}
// For fast adaptive uniformisation
Expand Down
12 changes: 6 additions & 6 deletions prism/src/prism/PrismSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class PrismSettings implements Observer
public static final String PRISM_TERM_CRIT = "prism.termCrit";//"prism.termination";
public static final String PRISM_TERM_CRIT_PARAM = "prism.termCritParam";//"prism.terminationEpsilon";
public static final String PRISM_MAX_ITERS = "prism.maxIters";//"prism.maxIterations";
public static final String PRISM_PRECISION = "prism.precision";//"prism.precision";
public static final String PRISM_EXACTLP_PRECISION = "prism.exactlpPrecision";//"prism.exactlpPrecision";

public static final String PRISM_CUDD_MAX_MEM = "prism.cuddMaxMem";
public static final String PRISM_CUDD_EPSILON = "prism.cuddEpsilon";
Expand All @@ -103,7 +103,7 @@ public class PrismSettings implements Observer
public static final String PRISM_SCC_METHOD = "prism.sccMethod";
public static final String PRISM_SYMM_RED_PARAMS = "prism.symmRedParams";
public static final String PRISM_EXACT_ENABLED = "prism.exact.enabled";
public static final String PRISM_EXACT_LP_ENABLED = "prism.exact.enabled";
public static final String PRISM_EXACTLP_ENABLED = "prism.exactlp.enabled";
public static final String PRISM_PTA_METHOD = "prism.ptaMethod";
public static final String PRISM_TRANSIENT_METHOD = "prism.transientMethod";
public static final String PRISM_AR_OPTIONS = "prism.arOptions";
Expand Down Expand Up @@ -230,7 +230,7 @@ public class PrismSettings implements Observer
"Which engine (hybrid, sparse, MTBDD, explicit) should be used for model checking." },
{ BOOLEAN_TYPE, PRISM_EXACT_ENABLED, "Do exact model checking", "4.2.1", new Boolean(false), "",
"Perform exact model checking." },
{ BOOLEAN_TYPE, PRISM_EXACT_LP_ENABLED, "Do exact model checking using linear programming", "4.2.1", new Boolean(false), "",
{ BOOLEAN_TYPE, PRISM_EXACTLP_ENABLED, "Do exact model checking using linear programming", "4.3.1", new Boolean(false), "",
"Perform exact model checking using linear programming." },

{ CHOICE_TYPE, PRISM_PTA_METHOD, "PTA model checking method", "3.3", "Stochastic games", "Digital clocks,Stochastic games,Backwards reachability",
Expand All @@ -252,7 +252,7 @@ public class PrismSettings implements Observer
"Epsilon value to use for checking termination of iterative numerical methods." },
{ INTEGER_TYPE, PRISM_MAX_ITERS, "Termination max. iterations", "2.1", new Integer(10000), "0,",
"Maximum number of iterations to perform if iterative methods do not converge." },
{ INTEGER_TYPE, PRISM_PRECISION, "Floating point precision", "2.1", new Integer(64), "1,",
{ INTEGER_TYPE, PRISM_EXACTLP_PRECISION, "Exact linear programming precision", "4.3.1", new Integer(64), "1,",
"The accuracy of the mantissa (in bits) is determined by this variable. This user-selectable precision is a minimum value: it is rounded up to a whole limb." },
// MODEL CHECKING OPTIONS:
{ BOOLEAN_TYPE, PRISM_PRECOMPUTATION, "Use precomputation", "2.1", new Boolean(true), "",
Expand Down Expand Up @@ -917,7 +917,7 @@ else if (sw.equals("exact")) {
}
// Exact linear programming model checking
else if (sw.equals("exact-lp")) {
set(PRISM_EXACT_LP_ENABLED, true);
set(PRISM_EXACTLP_ENABLED, true);
set(PRISM_MDP_SOLN_METHOD, "Exact linear programming");
set(PRISM_LIN_EQ_METHOD, "Exact linear programming");
}
Expand Down Expand Up @@ -1047,7 +1047,7 @@ else if (sw.equals("precision")) {
j = Integer.parseInt(args[++i]);
if (j <= 0)
throw new NumberFormatException("");
set(PRISM_PRECISION, j);
set(PRISM_EXACTLP_PRECISION, j);
} catch (NumberFormatException e) {
throw new PrismException("Invalid value for -" + sw + " switch");
}
Expand Down

0 comments on commit 7bb4d89

Please sign in to comment.