Package org.smtlib
Interface ICommand
- All Superinterfaces:
INode,IPos.IPosable
- All Known Subinterfaces:
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.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.Iset_info,ICommand.Iset_logic,ICommand.Iset_option,Iexec,Iwhat
- All Known Implementing Classes:
C_assert,C_check_sat,C_check_sat_assuming,C_comment,C_declare_const,C_declare_datatype,C_declare_datatypes,C_declare_fun,C_declare_sort,C_declare_sort_parameter,C_define_const,C_define_fun,C_define_fun_rec,C_define_funs_rec,C_define_sort,C_echo,C_exec,C_exit,C_get_assertions,C_get_assignment,C_get_info,C_get_model,C_get_option,C_get_proof,C_get_unsat_assumptions,C_get_unsat_core,C_get_value,C_pop,C_push,C_reset,C_reset_assertions,C_set_info,C_set_logic,C_set_option,C_what,Command
This interface is the generic interface to command classes, providing functionality
to type-check the command and to execute it.
- Author:
- David R. Cok
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for the SMT-LIBassertcommand.static interfaceInterface for the SMT-LIBcheck-satcommand.static interfaceInterface for the SMT-LIBcheck-sat-assumingcommand.static interfaceInterface for a comment pseudo-command: not part of the SMT-LIB command grammar itself, but modeled as a real, typedICommand(see issue #115) so that every dispatch path -- execution, typed-visitor traversal, and printing -- treats it uniformly with every other command, rather than falling back onIVisitor's genericvisit(ICommand)handling (a reflection-based lookup inPrinter's case).static interfaceInterface for the SMT-LIBdeclare-constcommand.static interfaceInterface for the SMT-LIBdeclare-datatypecommand.static interfaceInterface for the SMT-LIBdeclare-datatypescommand.static interfaceInterface for the SMT-LIBdeclare-funcommand.static interfaceInterface for the SMT-LIBdeclare-sortcommand.static interfaceInterface for the SMT-LIBdeclare-sort-parametercommand.static interfaceInterface for the SMT-LIBdefine-constcommand.static interfaceInterface for the SMT-LIBdefine-funcommand.static interfaceInterface for the SMT-LIBdefine-fun-reccommand.static interfaceInterface for the SMT-LIBdefine-funs-reccommand.static interfaceInterface for the SMT-LIBdefine-sortcommand.static interfaceInterface for the SMT-LIBechocommand.static interfaceInterface for the SMT-LIBexitcommand.static interfaceThis is the interface to be used by a concrete ICommand factory.static interfaceThis interface defines classes that implement techniques for mapping a command name to a class that implements that command.static interfaceInterface for the SMT-LIBget-assertionscommand.static interfaceInterface for the SMT-LIBget-assignmentcommand.static interfaceInterface for the SMT-LIBget-infocommand.static interfaceInterface for the SMT-LIBget-modelcommand (non-standard extension).static interfaceInterface for the SMT-LIBget-optioncommand.static interfaceInterface for the SMT-LIBget-proofcommand.static interfaceInterface for the SMT-LIBget-unsat-assumptionscommand.static interfaceInterface for the SMT-LIBget-unsat-corecommand.static interfaceInterface for the SMT-LIBget-valuecommand.static interfaceInterface for the SMT-LIBpopcommand.static interfaceInterface for the SMT-LIBpushcommand.static interfaceInterface for the SMT-LIBresetcommand.static interfaceInterface for the SMT-LIBreset-assertionscommand.static interfaceInterface to be implemented by all objects representing SMT-LIB scripts.static interfaceInterface for the SMT-LIBset-infocommand.static interfaceInterface for the SMT-LIBset-logiccommand.static interfaceInterface for the SMT-LIBset-optioncommand. -
Method Summary
Modifier and TypeMethodDescriptionReturns the SMT-LIB name of this command (e.g.Executes the command on the given solver; presumes that the command type-checked successfully.Methods inherited from interface org.smtlib.IPos.IPosable
pos, setPos
-
Method Details
-
commandName
String commandName()Returns the SMT-LIB name of this command (e.g."assert","check-sat"). -
execute
Executes the command on the given solver; presumes that the command type-checked successfully.- Parameters:
solver- the instance of the solver to use (note that solvers have state)- Returns:
- the result of the command
-