Package org.smtlib.ext
Class C_what
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.Command
org.smtlib.ext.C_what
- All Implemented Interfaces:
Iwhat,ICommand,INode,IPos.IPosable
Implements the non-standard what command. This command takes an arbitrary number of
arguments, all Symbols, and prints the Sort of each one; if there are no arguments,
the command prints all of the defined ids.
FIXME - the output is not in SExpr form.
- Author:
- David R. Cok
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.smtlib.ICommand
ICommand.Iassert, ICommand.Icheck_sat, ICommand.Icheck_sat_assuming, ICommand.Icomment, ICommand.Ideclare_const, ICommand.Ideclare_datatype, ICommand.Ideclare_datatypes, ICommand.Ideclare_fun, ICommand.Ideclare_sort, ICommand.Ideclare_sort_parameter, ICommand.Idefine_const, ICommand.Idefine_fun, ICommand.Idefine_fun_rec, ICommand.Idefine_funs_rec, ICommand.Idefine_sort, ICommand.Iecho, ICommand.Iexit, ICommand.IFactory, ICommand.IFinder, ICommand.Iget_assertions, ICommand.Iget_assignment, ICommand.Iget_info, ICommand.Iget_model, ICommand.Iget_option, ICommand.Iget_proof, ICommand.Iget_unsat_assumptions, ICommand.Iget_unsat_core, ICommand.Iget_value, ICommand.Ipop, ICommand.Ipush, ICommand.Ireset, ICommand.Ireset_assertions, ICommand.IScript, ICommand.Iset_info, ICommand.Iset_logic, ICommand.Iset_option -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe command nameprotected List<IExpr.IIdentifier> The ids that are the arguments of the commandFields inherited from class org.smtlib.impl.Command
trailingTextFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionC_what(List<IExpr.IIdentifier> ids) Constructs a command instance for the given identifiers. -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }The command nameExecutes the command on the given solver; presumes that the command type-checked successfully.ids()The ids that are the arguments of the commandstatic C_whatParses the input concrete S-expression syntax to produce a command instancevoidWrites the command arguments (everything between the opening parenthesis + command name and the closing parenthesis); called byCommand.write(org.smtlib.sexpr.Printer).Methods inherited from class org.smtlib.impl.Command
error, setTrailingText, trailingText, writeMethods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods inherited from class org.smtlib.impl.Pos.Posable
equals, hashCode, pos, setPosMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.smtlib.IPos.IPosable
pos, setPos
-
Field Details
-
commandName
The command name- See Also:
-
ids
The ids that are the arguments of the command
-
-
Constructor Details
-
C_what
Constructs a command instance for the given identifiers.
-
-
Method Details
-
commandName
The command name- Specified by:
commandNamein interfaceICommand- Specified by:
commandNamein classCommand
-
ids
The ids that are the arguments of the command -
parse
Parses the input concrete S-expression syntax to produce a command instance- Throws:
IOExceptionIParser.ParserException
-
writeArgs
Description copied from class:CommandWrites the command arguments (everything between the opening parenthesis + command name and the closing parenthesis); called byCommand.write(org.smtlib.sexpr.Printer). Extension commands override this; standard commands are printed via the visitor.- Overrides:
writeArgsin classCommand- Throws:
IOException
-
execute
Description copied from interface:ICommandExecutes the command on the given solver; presumes that the command type-checked successfully. -
accept
Description copied from interface:INodeThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }- Specified by:
acceptin interfaceINode- Type Parameters:
T- the return type desired from the visit methods- Parameters:
v- the visitor class- Returns:
- the value returned by the visit method
- Throws:
IVisitor.VisitorException
-