public class Main
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
static java.lang.String |
version |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static void |
displayInfo(Task task)
Display info (proof) associated to task.
|
static void |
exit(int code)
Terminate program with denoted exit code.
|
static boolean |
firstOrder()
Return true if first order check is to be applied.
|
static ErrorStream |
getError()
Get error stream for printing error messages.
|
static java.io.File[] |
getPath()
Get path for looking up source files.
|
static java.lang.String[] |
getProperties()
Get the system properties.
|
static long |
getTimeStamp()
Get time stamp of current program execution.
|
static Symbol |
getUnit(PackageSymbol top,
java.lang.String name,
boolean theory)
Get symbol of unit denoted by qualified name in top-level package.
|
static java.lang.String |
getVersion()
Return version string.
|
static void |
init(TopWindow top)
Perform initialization.
|
static void |
internalError(java.lang.String message)
Terminate program because of an internal error.
|
static void |
main(java.lang.String[] args)
Command line interface to the RISC ProgramExplorer.
|
static void |
processClass(ClassSymbol csymbol)
Process class.
|
static PackageSymbol |
processPackages()
Process packages as denoted by user path.
|
static void |
processTheory(TheorySymbol tsymbol)
Process theory.
|
static void |
proofDone(Proof proof)
Called if a proof is completed by the ProofNavigator.
|
static State.ProverVersion |
proverVersion()
Return version of default prover.
|
static void |
resetErrors()
Reset number of errors to zero.
|
static void |
resetState()
Reset system state.
|
static void |
setOutput(java.io.PrintWriter out)
Set output stream for printing messages.
|
static void |
setPath(java.io.File[] path)
Set path for looking up source files.
|
static void |
setProperties(java.lang.String compileCommand,
java.lang.String executeCommand,
java.lang.String workingDirectory,
java.lang.String mainClass,
java.lang.String cvclCommand,
java.lang.String cvc3Command,
java.lang.String cvc4Command,
java.lang.String proverVersion,
java.lang.String firstOrder,
java.lang.String toLogical)
Set the system properties
|
static boolean |
toLogical()
Return true if BOOLEAN is translated to LOGICAL.
|
public static final java.lang.String version
public static final java.lang.String copyright
public static void main(java.lang.String[] args)
args
- command line arguments, see help()public static void init(TopWindow top)
top
- the top-level window (may be null)public static void resetState()
public static PackageSymbol processPackages()
public static void processClass(ClassSymbol csymbol)
csymbol
- the symbol denoting the class.public static void processTheory(TheorySymbol tsymbol)
tsymbol
- the symbol denoting the theory.public static Symbol getUnit(PackageSymbol top, java.lang.String name, boolean theory)
top
- the top-level packagename
- the qualified name of the packagetheory
- true if unit is theory (class, otherwise)public static void internalError(java.lang.String message)
message
- the message indicating the error.public static void exit(int code)
code
- the exit code.public static java.lang.String getVersion()
public static void setOutput(java.io.PrintWriter out)
out
- the output stream.public static ErrorStream getError()
public static void resetErrors()
public static java.io.File[] getPath()
public static void setPath(java.io.File[] path)
path
- the path.public static java.lang.String[] getProperties()
public static void setProperties(java.lang.String compileCommand, java.lang.String executeCommand, java.lang.String workingDirectory, java.lang.String mainClass, java.lang.String cvclCommand, java.lang.String cvc3Command, java.lang.String cvc4Command, java.lang.String proverVersion, java.lang.String firstOrder, java.lang.String toLogical)
compileCommand
- the compilation commandexecuteCommand
- the execution commandworkingDirectory
- the path of the working directorymainClass
- the name of the main classcvclCommand
- the CVCL commandcvc3Command
- the CVC3 commandcvc4Command
- the CVC4 commandproverVersion
- the version of the proverfirstOrder
- TRUE if prover is first ordertoLogical
- TRUE if type LOGICAL is to be usedpublic static void proofDone(Proof proof)
proof
- the completed proof.public static long getTimeStamp()
public static void displayInfo(Task task)
task
- the denoted taskpublic static boolean firstOrder()
public static boolean toLogical()
public static State.ProverVersion proverVersion()