Skip to content
Snippets Groups Projects
Commit 28973c7f authored by Jan Gruteser's avatar Jan Gruteser
Browse files

make coverage optional due to slowdown in newer TLC versions

parent bccb3b48
Branches
Tags
No related merge requests found
Pipeline #139804 failed
...@@ -281,6 +281,7 @@ public class TLC4B { ...@@ -281,6 +281,7 @@ public class TLC4B {
TLC4BGlobals.setCreateTraceFile(!line.hasOption(NOTRACE.arg())); TLC4BGlobals.setCreateTraceFile(!line.hasOption(NOTRACE.arg()));
TLC4BGlobals.setDeleteOnExit(line.hasOption(DEL.arg())); TLC4BGlobals.setDeleteOnExit(line.hasOption(DEL.arg()));
TLC4BGlobals.setPartialInvariantEvaluation(line.hasOption(PARINVEVAL.arg())); TLC4BGlobals.setPartialInvariantEvaluation(line.hasOption(PARINVEVAL.arg()));
TLC4BGlobals.setPrintCoverage(line.hasOption(COVERAGE.arg()));
if (line.hasOption(TMP.arg())) { if (line.hasOption(TMP.arg())) {
buildDir = new File(System.getProperty("java.io.tmpdir")); buildDir = new File(System.getProperty("java.io.tmpdir"));
......
...@@ -31,7 +31,8 @@ public class TLC4BCliOptions { ...@@ -31,7 +31,8 @@ public class TLC4BCliOptions {
LTLFORMULA("ltlformula", "provide an additional LTL formula", String.class), LTLFORMULA("ltlformula", "provide an additional LTL formula", String.class),
VERBOSE("verbose", "put TLC4B in verbose mode", null), VERBOSE("verbose", "put TLC4B in verbose mode", null),
SILENT("silent", "put TLC4B in silent mode", null), SILENT("silent", "put TLC4B in silent mode", null),
OUTPUT("output", "provide path for output directory", String.class); OUTPUT("output", "provide path for output directory", String.class),
COVERAGE("coverage", "print operation coverage", null);
private final String arg, desc; private final String arg, desc;
private final Class<?> expectsArg; private final Class<?> expectsArg;
......
...@@ -120,8 +120,9 @@ public class Translator { ...@@ -120,8 +120,9 @@ public class Translator {
machineContext.analyseMachine(); machineContext.analyseMachine();
this.machineName = machineContext.getMachineName(); this.machineName = machineContext.getMachineName();
if (machineContext.machineContainsOperations()) { // ignore coverage option if machine contains no operations
TLC4BGlobals.setPrintCoverage(true); if (!machineContext.machineContainsOperations()) {
TLC4BGlobals.setPrintCoverage(false);
} }
Typechecker typechecker = new Typechecker(machineContext); Typechecker typechecker = new Typechecker(machineContext);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment