Class NoopScript
java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.NoopScript
- All Implemented Interfaces:
Script
- Direct Known Subclasses:
SMTInterpol
public class NoopScript extends java.lang.Object implements Script
Simple implementation of a script, that supports building terms and sorts,
but does not support setting and getting options, checking for satisfiabilty,
or getting any other results.
This can be used as base class for implementing the script interface.
- Author:
- Jürgen Christ, Jochen Hoenicke
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_freiburg.informatik.ultimate.logic.Script
Script.LBool -
Field Summary
Fields Modifier and Type Field Description protected de.uni_freiburg.informatik.ultimate.logic.Theory.SolverSetupmSolverSetupprotected intmStackLevelFields inherited from interface de.uni_freiburg.informatik.ultimate.logic.Script
EMPTY_SORT_ARRAY, EMPTY_TERM_ARRAY, EXISTS, FORALL -
Constructor Summary
Constructors Modifier Constructor Description NoopScript()protectedNoopScript(de.uni_freiburg.informatik.ultimate.logic.Theory theory)protectedNoopScript(de.uni_freiburg.informatik.ultimate.logic.Theory theory, de.uni_freiburg.informatik.ultimate.logic.Theory.SolverSetup setup) -
Method Summary
Modifier and Type Method Description Termannotate(Term t, Annotation... annotations)Annotate a term.Script.LBoolassertTerm(Term term)Assert a Boolean term into the solver.Termbinary(java.lang.String bin)Create a binary term.java.lang.Iterable<Term[]>checkAllsat(Term[] predicates)Perform an AllSAT computation over some important predicates.Script.LBoolcheckSat()Check for satisfiability of the current context.Script.LBoolcheckSatAssuming(Term... assumptions)Check for satisfiability of the current context under additional assumptions.DataType.Constructorconstructor(java.lang.String name, java.lang.String[] selectors, Sort[] argumentSorts)Declare constructors of a datatype.DataTypedatatype(java.lang.String typename, int numParams)Create a new datatype.Termdecimal(java.lang.String decimal)Create a decimal term.Termdecimal(java.math.BigDecimal decimal)Create a decimal term.voiddeclareDatatype(DataType datatype, DataType.Constructor[] constrs)Declare new datatypes by setting their constructors.voiddeclareDatatypes(DataType[] datatypes, DataType.Constructor[][] constrs, Sort[][] sortParams)Declare new datatypes by setting their constructors.voiddeclareFun(java.lang.String fun, Sort[] paramSorts, Sort resultSort)Declare a function symbol.voiddeclareSort(java.lang.String sort, int arity)Declare a user-defined sort.voiddefineFun(java.lang.String fun, TermVariable[] params, Sort resultSort, Term definition)Define an alias of a function symbol.voiddefineSort(java.lang.String sort, Sort[] sortParams, Sort definition)Define an alias of a sort.QuotedObjectecho(QuotedObject msg)Echo a message on the regular output channel of the solver.voidexit()Exit the solver.Term[]findImpliedEquality(Term[] x, Term[] y)Try to find an equality betweenxandythat is implied in the current satisfiable context.Term[]getAssertions()Get all assertions contained in the assertion stack.AssignmentsgetAssignment()Get values for all named boolean terms in the model.FunctionSymbolgetFunctionSymbol(java.lang.String constructor)Check if constructor is the Constructor of a Datatype within the Theory.java.lang.ObjectgetInfo(java.lang.String info)Get information from the solver.Term[]getInterpolants(Term[] partition)Get interpolants for the partitions.Term[]getInterpolants(Term[] partition, int[] startOfSubtree)Compute a sequence of interpolants.Term[]getInterpolants(Term[] partition, int[] startOfSubtree, Term proofTree)Compute a sequence of interpolants.ModelgetModel()Retrieve a complete model from the solver.java.lang.ObjectgetOption(java.lang.String opt)Get the value of an option.TermgetProof()Trigger a call to a proof processor.de.uni_freiburg.informatik.ultimate.logic.TheorygetTheory()Get the theory that is used to maintain the term database and list of declared and defined functions.Term[]getUnsatAssumptions()Get the unsatisfiable assumptions.Term[]getUnsatCore()Get the unsat core.java.util.Map<Term,Term>getValue(Term[] terms)Get values for some terms in the model.Termhexadecimal(java.lang.String hex)Create a hexadecimal term.Termlet(TermVariable[] vars, Term[] values, Term body)Create a let term.Termmatch(Term dataArg, TermVariable[][] vars, Term[] cases, DataType.Constructor[] constructors)Create a match term.Termnumeral(java.lang.String num)Create a numeral term.Termnumeral(java.math.BigInteger num)Create a numeral term.voidpop(int levels)Pop some levels from the assertion stack.voidpush(int levels)Push some levels onto the assertion stack.Termquantifier(int quantor, TermVariable[] vars, Term body, Term[]... patterns)Create a quantified formula.voidreset()Reset the solver completely.voidresetAssertions()Resets the assertion stack.voidsetInfo(java.lang.String info, java.lang.Object value)Set some information for the solver.voidsetLogic(Logics logic)Set the logic for the solver.voidsetLogic(java.lang.String logic)Set the logic for the solver.voidsetOption(java.lang.String opt, java.lang.Object value)Set an option for the solver.Termsimplify(Term term)Simplify a term.Sortsort(java.lang.String sortname, Sort... params)Instantiate an n-ary sort with parameters.Sortsort(java.lang.String sortname, java.lang.String[] indices, Sort... params)Instantiate an indexed n-ary sort with parameters.Sort[]sortVariables(java.lang.String... names)Create an array of sort parameters.Termstring(QuotedObject str)Create a string term.Termterm(java.lang.String funcname, Term... params)Create an n-ary term by name.Termterm(java.lang.String funcname, java.lang.String[] indices, Sort returnSort, Term... params)Create an n-ary term by name, indices and return sort.TermVariablevariable(java.lang.String varname, Sort sort)Create a term variable.
-
Field Details
-
mStackLevel
protected int mStackLevel -
mSolverSetup
protected de.uni_freiburg.informatik.ultimate.logic.Theory.SolverSetup mSolverSetup
-
-
Constructor Details
-
NoopScript
public NoopScript() -
NoopScript
protected NoopScript(de.uni_freiburg.informatik.ultimate.logic.Theory theory) -
NoopScript
protected NoopScript(de.uni_freiburg.informatik.ultimate.logic.Theory theory, de.uni_freiburg.informatik.ultimate.logic.Theory.SolverSetup setup)
-
-
Method Details
-
getTheory
public de.uni_freiburg.informatik.ultimate.logic.Theory getTheory()Description copied from interface:ScriptGet the theory that is used to maintain the term database and list of declared and defined functions. -
setLogic
public void setLogic(java.lang.String logic) throws java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptSet the logic for the solver. The logic should be the name of one of the elements in theLogicsenumeration. -
setLogic
Description copied from interface:ScriptSet the logic for the solver. -
setOption
public void setOption(java.lang.String opt, java.lang.Object value) throws java.lang.UnsupportedOperationException, SMTLIBExceptionDescription copied from interface:ScriptSet an option for the solver. At least the options described in the standard should be valid options.- Specified by:
setOptionin interfaceScript- Parameters:
opt- Name of the option. Note that it has to start with a colon (:).value- Value for this option.- Throws:
java.lang.UnsupportedOperationException- If the option is unsupported.SMTLIBException- In case of type errors.
-
setInfo
public void setInfo(java.lang.String info, java.lang.Object value)Description copied from interface:ScriptSet some information for the solver. Note that according to the standard a solver has to return success, but ignore the info. -
getFunctionSymbol
Description copied from interface:ScriptCheck if constructor is the Constructor of a Datatype within the Theory.- Specified by:
getFunctionSymbolin interfaceScript- Parameters:
constructor- The Name of the constructor.- Returns:
- The Constructor or null if it does not exist.
-
constructor
public DataType.Constructor constructor(java.lang.String name, java.lang.String[] selectors, Sort[] argumentSorts)Description copied from interface:ScriptDeclare constructors of a datatype.- Specified by:
constructorin interfaceScript- Parameters:
name- Name of the Constructor.selectors- The selectors of the Constructor.argumentSorts- The argumentSorts of the Constructor.- Returns:
- The array of constructors.
-
datatype
Description copied from interface:ScriptCreate a new datatype. -
declareDatatype
Description copied from interface:ScriptDeclare new datatypes by setting their constructors.- Specified by:
declareDatatypein interfaceScriptconstrs- The constructors.
-
declareDatatypes
public void declareDatatypes(DataType[] datatypes, DataType.Constructor[][] constrs, Sort[][] sortParams)Description copied from interface:ScriptDeclare new datatypes by setting their constructors.- Specified by:
declareDatatypesin interfaceScript- Parameters:
datatypes- the datatypes to declare.constrs- The constructors for each datatype (withconstrs.length == datatypes.length).sortParams- The sort parameters for each datatype, the outer array contains null if the datatype is not generic (sortParams.length == datatypes.length).
-
declareSort
Description copied from interface:ScriptDeclare a user-defined sort.- Specified by:
declareSortin interfaceScript- Parameters:
sort- The name of the new sort.arity- The arity of the new sort.- Throws:
SMTLIBException- If no logic is set, the logic does not allow user-defined sorts, or a sort with this name already exists.
-
defineSort
public void defineSort(java.lang.String sort, Sort[] sortParams, Sort definition) throws SMTLIBExceptionDescription copied from interface:ScriptDefine an alias of a sort.- Specified by:
defineSortin interfaceScript- Parameters:
sort- Name of the alias.sortParams- Sort parameters.definition- Original sort.- Throws:
SMTLIBException- If no logic is set, the logic does not allow user-defined sorts, or a sort with this name already exists.
-
declareFun
public void declareFun(java.lang.String fun, Sort[] paramSorts, Sort resultSort) throws SMTLIBExceptionDescription copied from interface:ScriptDeclare a function symbol.- Specified by:
declareFunin interfaceScript- Parameters:
fun- Name of the function symbol.paramSorts- Sorts of the parameters.resultSort- Sort of the result of an application of this function.- Throws:
SMTLIBException- If the logic is not set, the logic is not an UF logic but the function takes parameters, or a function with this name already exists.
-
defineFun
public void defineFun(java.lang.String fun, TermVariable[] params, Sort resultSort, Term definition) throws SMTLIBExceptionDescription copied from interface:ScriptDefine an alias of a function symbol.- Specified by:
defineFunin interfaceScript- Parameters:
fun- Name of the alias.params- Parameters of the alias.resultSort- Return sort of the alias.definition- Definition of the function alias.- Throws:
SMTLIBException- If the logic is not set, the logic is not an UF logic but the function takes parameters, or a function with this name already exists.
-
push
public void push(int levels)Description copied from interface:ScriptPush some levels onto the assertion stack. -
pop
Description copied from interface:ScriptPop some levels from the assertion stack.- Specified by:
popin interfaceScript- Parameters:
levels- The number of levels to pop.- Throws:
SMTLIBException- If not enough stack levels are available.
-
assertTerm
Description copied from interface:ScriptAssert a Boolean term into the solver. The solver might return a change in the state of the logical context. Compliant solvers do not have to do a full check here but returnScript.LBool.UNKNOWN.- Specified by:
assertTermin interfaceScript- Parameters:
term- The Boolean term to assert.- Returns:
- Possibly an unsatisfiability detected by the solver.
- Throws:
SMTLIBException- If the term is not Boolean or a named term matches an already defined function.
-
checkSat
Description copied from interface:ScriptCheck for satisfiability of the current context. Note that this function should returnScript.LBool.UNKNOWNin case of errors. -
checkSatAssuming
Description copied from interface:ScriptCheck for satisfiability of the current context under additional assumptions. Note that this function should returnScript.LBool.UNKNOWNin case of errors.- Specified by:
checkSatAssumingin interfaceScript- Parameters:
assumptions- Additional assumptions as Boolean constants (nullary ApplicationTerms of sort Bool or their negations).- Returns:
- The result of the check as a lifted Boolean.
-
getAssertions
Description copied from interface:ScriptGet all assertions contained in the assertion stack. Note that this command is only available in interactive mode. To enable interactive mode, callsetOption(":interactive-mode", true).- Specified by:
getAssertionsin interfaceScript- Returns:
- An array of all asserted terms.
- Throws:
SMTLIBException- If interactive mode is not enabled.
-
getProof
Description copied from interface:ScriptTrigger a call to a proof processor. Note that this command is only available if proof production is enabled and the lastScript.checkSat()returnedScript.LBool.UNSAT. To enable proof production, callsetOption(":produce-proofs", true).- Specified by:
getProofin interfaceScript- Returns:
- the proof. This is given as a big smtlib term of the internal type @proof.
- Throws:
SMTLIBException- If proof production is not enabled or the solver did not detect unsatisfiability.java.lang.UnsupportedOperationException- If proof generation is unsupported.
-
getUnsatCore
Description copied from interface:ScriptGet the unsat core. Note that this command is only available if unsat core production is enabled and the lastScript.checkSat()returnedScript.LBool.UNSAT. To enable unsat core production, callsetOption(":produce-unsat-cores", true).- Specified by:
getUnsatCorein interfaceScript- Returns:
- An array of terms forming an unsat core.
- Throws:
SMTLIBException- If proof production is not enabled or the solver did not detect unsatisfiability.java.lang.UnsupportedOperationException- If unsat core computation is unsupported.
-
getValue
public java.util.Map<Term,Term> getValue(Term[] terms) throws SMTLIBException, java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptGet values for some terms in the model. Note that this command is only available if model production is enabled and the lastScript.checkSat()did not returnScript.LBool.UNSAT. To enable model production, callsetOption(":produce-models", true).- Specified by:
getValuein interfaceScript- Parameters:
terms- an array of terms whose value should be computed.- Returns:
- A valuation (mapping from term to value (which is again represented by a term) where the keys are the given terms.
- Throws:
SMTLIBException- If model production is not enabled or the solver detected unsatisfiability.java.lang.UnsupportedOperationException- If model computation is unsupported
-
getAssignment
Description copied from interface:ScriptGet values for all named boolean terms in the model. Note that this command is only available if assignment production is enabled and the lastScript.checkSat()did not returnScript.LBool.UNSAT. To enable assignment production, callsetOption(":produce-assignments", true).- Specified by:
getAssignmentin interfaceScript- Returns:
- An
Assignments. - Throws:
SMTLIBException- If assignment production is not enabled, or the solver did not detect unsatisfiability.java.lang.UnsupportedOperationException- If model computation is unsupported
-
getOption
public java.lang.Object getOption(java.lang.String opt) throws java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptGet the value of an option. -
getInfo
public java.lang.Object getInfo(java.lang.String info) throws java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptGet information from the solver. Note that the solver only has to implement the info values described in the standard. -
simplify
Description copied from interface:ScriptSimplify a term. This returns a term that is under the current assertions equivalent to the input term.- Specified by:
simplifyin interfaceScript- Parameters:
term- A (usually Boolean) term to simplify.- Returns:
- The simplified term.
- Throws:
SMTLIBException- If an error occurred or unsupported.
-
reset
public void reset()Description copied from interface:ScriptReset the solver completely. Note that this invalidates all objects previously returned and unsets the logic. -
getInterpolants
public Term[] getInterpolants(Term[] partition) throws SMTLIBException, java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptGet interpolants for the partitions. Note that the arguments to this call must either be the names of Boolean top-level assertions, or the conjunction of such names.- Specified by:
getInterpolantsin interfaceScript- Parameters:
partition- Partitioning of the assertion stack.- Returns:
- Interpolants.
- Throws:
SMTLIBException- An error occurred.java.lang.UnsupportedOperationException- If interpolant computation is unsupported.
-
getInterpolants
public Term[] getInterpolants(Term[] partition, int[] startOfSubtree) throws SMTLIBException, java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptCompute a sequence of interpolants. The nesting array describes the start of the subtree for tree interpolants. For inductive sequences of interpolants use a nesting array completely filled with 0.- Specified by:
getInterpolantsin interfaceScript- Parameters:
partition- The array of formulas. This should contain either top-level names or conjunction of top-level names.startOfSubtree- The start of the subtree containing the formula at this index as root.- Returns:
- Tree interpolants respecting the nesting relation.
- Throws:
SMTLIBException- An error occurred.java.lang.UnsupportedOperationException- If interpolant computation is unsupported.
-
getInterpolants
public Term[] getInterpolants(Term[] partition, int[] startOfSubtree, Term proofTree) throws SMTLIBException, java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptCompute a sequence of interpolants. The nesting array describes the start of the subtree for tree interpolants. For inductive sequences of interpolants use a nesting array completely filled with 0. This computes the interpolants from the given proof. It can be called at any time, even if the assertion stack has been modified since computing the proof.- Specified by:
getInterpolantsin interfaceScript- Parameters:
partition- The array of formulas. This should contain either top-level names or conjunction of top-level names.startOfSubtree- The start of the subtree containing the formula at this index as root.proofTree- The proof tree that used to compute interpolants.- Returns:
- Tree interpolants respecting the nesting relation.
- Throws:
SMTLIBException- An error occurred.java.lang.UnsupportedOperationException- If interpolant computation is unsupported.
-
exit
public void exit()Description copied from interface:ScriptExit the solver. -
sort
Description copied from interface:ScriptInstantiate an n-ary sort with parameters.- Specified by:
sortin interfaceScript- Parameters:
sortname- Name of the sort.params- Sort parameters.- Returns:
- The corresponding sort.
- Throws:
SMTLIBException- If and only if the sort does not exist.
-
sort
public Sort sort(java.lang.String sortname, java.lang.String[] indices, Sort... params) throws SMTLIBExceptionDescription copied from interface:ScriptInstantiate an indexed n-ary sort with parameters.- Specified by:
sortin interfaceScript- Parameters:
sortname- Name of the sort.indices- Sort indices.params- Sort parameters.- Returns:
- The corresponding sort.
- Throws:
SMTLIBException- If and only if the sort does not exist.
-
term
Description copied from interface:ScriptCreate an n-ary term by name. This function should also be used to construct Boolean terms. I.e., the function names "and", "or", "=>", "ite", "=", "distinct", or "not" might be used to create formulas.- Specified by:
termin interfaceScript- Parameters:
funcname- Name of the function.params- The parameters of the function application.- Returns:
- The constructed term.
- Throws:
SMTLIBException- If an error occurred.
-
term
public Term term(java.lang.String funcname, java.lang.String[] indices, Sort returnSort, Term... params) throws SMTLIBExceptionDescription copied from interface:ScriptCreate an n-ary term by name, indices and return sort. This term constructor can be used to resolve overloaded function symbols, or create applications of the "as" function.- Specified by:
termin interfaceScript- Parameters:
funcname- Name of the function.indices- Indices for the function.returnSort- Return sort of the function.params- The parameters of the function application.- Returns:
- The constructed term.
- Throws:
SMTLIBException- If an error occurred.
-
variable
Description copied from interface:ScriptCreate a term variable.- Specified by:
variablein interfaceScript- Parameters:
varname- Name of the variable.sort- Sort of the variable.- Returns:
- The term variable.
- Throws:
SMTLIBException- If no name or an invalid sort is given.
-
quantifier
public Term quantifier(int quantor, TermVariable[] vars, Term body, Term[]... patterns) throws SMTLIBExceptionDescription copied from interface:ScriptCreate a quantified formula.- Specified by:
quantifierin interfaceScript- Parameters:
quantor- The quantor flag (one ofScript.EXISTS, orScript.FORALL)vars- The quantified variables.body- The body of the quantified formula.patterns- Possible patterns for e-matching (may benull).- Returns:
- The quantified formula.
- Throws:
SMTLIBException- If an error occurred.
-
let
Description copied from interface:ScriptCreate a let term. Note that you have to provide exactly as many variables as you provide values.- Specified by:
letin interfaceScript- Parameters:
vars- Variables bound by a let.values- Values for these variables.body- Body of the let term.- Returns:
- The let term.
- Throws:
SMTLIBException- If an error occurred.
-
match
public Term match(Term dataArg, TermVariable[][] vars, Term[] cases, DataType.Constructor[] constructors) throws SMTLIBExceptionDescription copied from interface:ScriptCreate a match term.- Specified by:
matchin interfaceScript- Parameters:
dataArg- The term that is to be matched.vars- The variables of each pattern.cases- The match cases.- Returns:
- The match term.
- Throws:
SMTLIBException- if a problem occurs (with a human readable description).
-
annotate
Description copied from interface:ScriptAnnotate a term. This can be used to create named terms.- Specified by:
annotatein interfaceScript- Parameters:
t- Term to annotate.annotations- Annotations for this term.- Returns:
- The annotated term.
- Throws:
SMTLIBException- If the annotation is invalid, or the evaluation of :named produces an error.
-
numeral
Description copied from interface:ScriptCreate a numeral term.- Specified by:
numeralin interfaceScript- Parameters:
num- String representation of the numeral.- Returns:
- A numeral term.
- Throws:
SMTLIBException- If an error occurred.
-
numeral
Description copied from interface:ScriptCreate a numeral term.- Specified by:
numeralin interfaceScript- Parameters:
num- the numeral as a big integer.- Returns:
- A numeral term.
- Throws:
SMTLIBException- If an error occurred.
-
decimal
Description copied from interface:ScriptCreate a decimal term.- Specified by:
decimalin interfaceScript- Parameters:
decimal- String representation of the decimal.- Returns:
- A decimal term.
- Throws:
SMTLIBException
-
decimal
Description copied from interface:ScriptCreate a decimal term.- Specified by:
decimalin interfaceScript- Parameters:
decimal- the decimal as a big decimal.- Returns:
- A decimal term.
- Throws:
SMTLIBException
-
string
Description copied from interface:ScriptCreate a string term.- Specified by:
stringin interfaceScript- Parameters:
str- The string constant (as quoted object).- Returns:
- A string term.
- Throws:
SMTLIBException- If an error occurred.
-
hexadecimal
Description copied from interface:ScriptCreate a hexadecimal term.- Specified by:
hexadecimalin interfaceScript- Parameters:
hex- String representation of the hexadecimal.- Returns:
- A hexadecimal term.
- Throws:
SMTLIBException- If an error occurred.
-
binary
Description copied from interface:ScriptCreate a binary term.- Specified by:
binaryin interfaceScript- Parameters:
bin- String representation of the binary.- Returns:
- A binary term.
- Throws:
SMTLIBException- If an error occurred.
-
sortVariables
Description copied from interface:ScriptCreate an array of sort parameters. These parameters can be used when defining a sort. Note that these names cannot be used in the sort functions since the result does not contain any real sort. Users have to save the array and use its components. The result contains the variables in the order in which the names are specified in the input.- Specified by:
sortVariablesin interfaceScript- Parameters:
names- The names of the variables- Returns:
- An array corresponding to sort variables with the given names.
- Throws:
SMTLIBException- If an error occured.
-
getModel
Description copied from interface:ScriptRetrieve a complete model from the solver. This is an optional (non- SMTLIB compliant) operation. This function can only be called when the previousScript.checkSat()returnedScript.LBool.SATor (optionally)Script.LBool.UNKNOWNand no assertion stack command was issued after this check.- Specified by:
getModelin interfaceScript- Returns:
- A model for the current formula.
- Throws:
SMTLIBException- Model production was not enabled.java.lang.UnsupportedOperationException- The solver does not support this operation.
-
checkAllsat
public java.lang.Iterable<Term[]> checkAllsat(Term[] predicates) throws SMTLIBException, java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptPerform an AllSAT computation over some important predicates.- Specified by:
checkAllsatin interfaceScript- Parameters:
predicates- The important predicates. Must be Boolean.- Returns:
- Iterator over minterms found during iteration.
- Throws:
SMTLIBException- If a predicate is non-Boolean.java.lang.UnsupportedOperationException- If the operation is unsupported.
-
findImpliedEquality
public Term[] findImpliedEquality(Term[] x, Term[] y) throws SMTLIBException, java.lang.UnsupportedOperationExceptionDescription copied from interface:ScriptTry to find an equality betweenxandythat is implied in the current satisfiable context. If successful, this method returns an array of parametersa,b,csuch that the equalitya*x = b*y + cis implied by the current context. Note that thexarray and theyarray must be of equal length and of length at least 2.- Specified by:
findImpliedEqualityin interfaceScript- Parameters:
x- The different incarnations of the lhs variable.y- The different incarnations of the rhs variable.- Returns:
- Array of length 3 or array of length 0 if no equality is implied.
- Throws:
SMTLIBExceptionjava.lang.UnsupportedOperationException
-
echo
Description copied from interface:ScriptEcho a message on the regular output channel of the solver. Although this function is not specified in the SMTLIB standard, we do not expect implementations to throw any exceptions. Instead, if the command is unsupported, it should simply be implemented as the identity function. -
resetAssertions
public void resetAssertions()Description copied from interface:ScriptResets the assertion stack. This option will keep the logic and all globally defined symbols.- Specified by:
resetAssertionsin interfaceScript
-
getUnsatAssumptions
Description copied from interface:ScriptGet the unsatisfiable assumptions. Note that this command is only available if unsat assumption production is enabled and the lastScript.checkSatAssuming(Term...)returnedScript.LBool.UNSAT. To enable unsat assumption production, callsetOption(":produce-unsat-assumptions", true).- Specified by:
getUnsatAssumptionsin interfaceScript- Returns:
- An array of terms that correspond to an unsatisfiable subset of last assumptions.
- Throws:
SMTLIBException- If unsat assumption production is not enabled or the solver did not detect unsatisfiability.java.lang.UnsupportedOperationException- If unsat assumption computation is unsupported.
-