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

public interface ICommand extends INode, IPos.IPosable
This interface is the generic interface to command classes, providing functionality to type-check the command and to execute it.
Author:
David R. Cok
  • Method Details

    • commandName

      String commandName()
      Returns the SMT-LIB name of this command (e.g. "assert", "check-sat").
    • execute

      IResponse execute(ISolver solver)
      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