java.lang.Object
dev.civl.mc.run.IF.UserInterface
This class provides a user interface to CIVL. The public methods in this class provide a programmatic interface; there are also methods to provide a command line interface. This class does not provide a graphical user interface.
The high-level commands provided by this interface are as follows:
- help: print a help message explaining all commands and options
- config: configure CIVL by looking for provers, creating a .sarl file, etc.
- show: show the results of preprocessing, parsing, AST construction, AST transformations, and model construction
- run: run a program once, using a random number generator to resolve nondeterminism
- verify: verify a program by exploring its state space
- compare: compare two programs for functional equivalence
- replay: replay a trace saved by previous invocation of verify or compare that found a violation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanRunning in debug mode (which prints debugging information)? -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRuns command specified as one big String.booleanRuns the appropriate CIVL tools based on the command line arguments.booleanrun(Collection<String> args) Runs the appropriate CIVL tools based on the command line arguments.
-
Field Details
-
debug
public static final boolean debugRunning in debug mode (which prints debugging information)?- See Also:
-
-
Constructor Details
-
UserInterface
public UserInterface() -
UserInterface
-
-
Method Details
-
run
Runs the appropriate CIVL tools based on the command line arguments.- Parameters:
args- command line arguments- Returns:
- true iff everything succeeded and no errors were found
-
run
Runs the appropriate CIVL tools based on the command line arguments. This variant is provided in case a collection is more convenient than an array.- Parameters:
args- command line arguments as collection- Returns:
- true iff everything succeeded and no errors were found
-
run
Runs command specified as one big String.- Parameters:
argsString- a single string containing command and all options; what would be typed on the command line by a user- Returns:
- true iff everything succeeded and no errors were found
-