| java.lang.Object de.uka.ilkd.key.proof.decproc.smtlib.Term de.uka.ilkd.key.proof.decproc.smtlib.IteTerm
IteTerm | final public class IteTerm extends Term (Code) | | Represents an if-then-else (ite) construct for terms as defined in the SMT-Lib
specification, and specialized in the (QF_)AUFLIA sublogic. Thereby an ite-construct
consists of a formula 'iteFormula' and two terms t1 and t2, and evaluates to one of
this terms in dependence of the truth value of the formula.
IteTerms are immutable; their attribute values cannot be changed after they are created.
author: akuwertz version: 1.4, 12/05/2005 (Adjustments to changes in superclass; further comments) |
Constructor Summary | |
public | IteTerm(Term t1, Term t2, Formula iteForm) Creates an new IteTerm.
An IteTerm consists of one Formula and two Terms. |
IteTerm | public IteTerm(Term t1, Term t2, Formula iteForm)(Code) | | Creates an new IteTerm.
An IteTerm consists of one Formula and two Terms. It is
semantically equivalent to its first or second Term argument in dependence of
the truth value of its Formula.
Parameters: t1 - the Term into which this IteTerm results if its Formulais evaluated to true Parameters: t2 - the Term into which this IteTerm results if its Formulais evaluated to false Parameters: iteForm - the Formula to be evaluated throws: NullPointerException - if one of the specified arguments is null |
containsFormulaIteTerm | public boolean containsFormulaIteTerm(Formula f)(Code) | | Returns true if this IteTerm contains the specified Formula f
in its ite-formula
Parameters: f - the Formula to be checked for containment in this IteTerm true if this IteTerm contains the Formula f. |
containsTerm | public boolean containsTerm(Term t)(Code) | | |
containsTermAsSubterm | public boolean containsTermAsSubterm(Term t)(Code) | | Returns true if this IteTerm contains the specified Term t as a subterm
of one of its Term arguments, i.e. if t is contained in t1 or t2. In contrast to
containsTerm, the iteFormula is not checked for containment of t.
Parameters: t - the Term to be checked for containment in this IteTerm true if t is contained in of one the subterms of this IteTernm |
getIteFormula | public Formula getIteFormula()(Code) | | Returns the Formula of this IteTerm.
the Formula of this IteTerm |
getTermT1 | public Term getTermT1()(Code) | | Returns the Term t1 of this IteTerm
the Term t1 of this IteTerm |
getTermT2 | public Term getTermT2()(Code) | | Returns the Term t2 of this IteTerm
the Term t2 of this IteTerm |
hashCode | public int hashCode()(Code) | | |
replaceFormVarIteTerm | public Term replaceFormVarIteTerm(FormulaVariable formVar, Formula replacement)(Code) | | Replaces all occurrences of a specified FormulaVariable by a specified
Formula in the iteFormula of this IteTerm.
Thereby this IteTerm and the returned replaced Term share the
same objects in their fields, except for those objects which contained the
specified FormulaVariable
Parameters: formVar - the FormulaVariable to be replaced Parameters: replacement - the Formula used to replace formVar the Formula obtained by replacing every (free) occurence of formVarby replacement in the iteFormula of this IteTerm |
Fields inherited from de.uka.ilkd.key.proof.decproc.smtlib.Term | final protected static Vector marker(Code)(Java Doc)
|
|
|