forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKProveOptions.java
More file actions
65 lines (50 loc) · 2.55 KB
/
KProveOptions.java
File metadata and controls
65 lines (50 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) 2015-2019 K Team. All Rights Reserved.
package org.kframework.kprove;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.ParametersDelegate;
import org.kframework.unparser.PrintOptions;
import org.kframework.main.GlobalOptions;
import org.kframework.utils.errorsystem.KEMException;
import org.kframework.utils.file.FileUtil;
import org.kframework.utils.inject.RequestScoped;
import org.kframework.utils.options.DefinitionLoadingOptions;
import org.kframework.utils.options.SMTOptions;
import java.io.File;
import java.util.Collections;
import java.util.List;
@RequestScoped
public class KProveOptions {
@ParametersDelegate
public transient GlobalOptions global = new GlobalOptions();
@ParametersDelegate
public DefinitionLoadingOptions definitionLoading = new DefinitionLoadingOptions();
@Parameter(description="<file>")
private List<String> parameters;
private File specFile;
public synchronized File specFile(FileUtil files) {
if (specFile == null) {
if (parameters == null || parameters.size() == 0) {
throw KEMException.criticalError("You have to provide exactly one main file in order to do outer parsing.");
}
specFile = files.resolveWorkingDirectory(parameters.get(0));
}
return specFile;
}
@ParametersDelegate
public SMTOptions smt = new SMTOptions();
@ParametersDelegate
public PrintOptions print = new PrintOptions();
@Parameter(names={"--spec-module", "-sm"}, description="Name of module containing specification to prove")
public String specModule;
@Parameter(names={"--def-module", "-m"}, description="Name of module containing definition to prove under")
public String defModule;
@Parameter(names="--depth", description="The maximum number of computational steps to prove")
public Integer depth;
@Parameter(names = "--boundary-cells", description = "The comma-separated list of cells used to mark the boundary " +
"of evaluation. If option is specified, execution ends when these cells in the current term match same " +
"cells in the target term. (Except for step 1, for which boundary checking is disabled.)" +
"If the whole current term matches target, execution is successful. " +
"Otherwise it fails on the present path. If option is not specified, full target term implication is checked " +
"on every step. In most specifications boundary is marked by \"k\".")
public List<String> boundaryCells = Collections.emptyList();
}