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
No related branches found
No related tags found
No related merge requests found
Pipeline #139804 failed
......@@ -281,6 +281,7 @@ public class TLC4B {
TLC4BGlobals.setCreateTraceFile(!line.hasOption(NOTRACE.arg()));
TLC4BGlobals.setDeleteOnExit(line.hasOption(DEL.arg()));
TLC4BGlobals.setPartialInvariantEvaluation(line.hasOption(PARINVEVAL.arg()));
TLC4BGlobals.setPrintCoverage(line.hasOption(COVERAGE.arg()));
if (line.hasOption(TMP.arg())) {
buildDir = new File(System.getProperty("java.io.tmpdir"));
......
......@@ -31,7 +31,8 @@ public class TLC4BCliOptions {
LTLFORMULA("ltlformula", "provide an additional LTL formula", String.class),
VERBOSE("verbose", "put TLC4B in verbose 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 Class<?> expectsArg;
......
......@@ -120,8 +120,9 @@ public class Translator {
machineContext.analyseMachine();
this.machineName = machineContext.getMachineName();
if (machineContext.machineContainsOperations()) {
TLC4BGlobals.setPrintCoverage(true);
// ignore coverage option if machine contains no operations
if (!machineContext.machineContainsOperations()) {
TLC4BGlobals.setPrintCoverage(false);
}
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