Modifier and Type | Method and Description |
---|---|
void |
PrettyMathML.appendTerm(org.w3c.dom.Node parent,
Term term)
Convert term to DOM representation of HTML/MathML markup.
|
static Breaks.Info |
Breaks.compute(Term term,
boolean mathml)
Construct the line break information for the denoted term.
|
Modifier and Type | Field and Description |
---|---|
Term |
Substitution.Value.postTerm |
Term |
Substitution.Value.preTerm |
Modifier and Type | Method and Description |
---|---|
static Term |
ExpressionLogic.booleanTerm(boolean value)
Convert boolean to constant term.
|
Term |
ExpressionLogic.deriveTerm(ValueExpression exp,
java.util.Vector<Formula> pre)
Translate a program expression to an equivalent logic term.
|
static Term |
Normalization.perform(Term term)
Replace copy of term with all poststate variables
replaced by prestate variables.
|
Modifier and Type | Method and Description |
---|---|
Selector[] |
ExpressionLogic.deriveSelector(Term base,
Selector sel,
java.util.Vector<Formula> pre)
Convert program selector to one or two logic selectors.
|
Formula |
ExpressionLogic.notNullFormula(Term term)
Create formula that term of object/array type is not null.
|
static Formula |
ExpressionLogic.notNullFormula(Term term,
Type booleanType)
Create formula that term of object/array type is not null.
|
Formula |
ExpressionLogic.nullFormula(Term term)
Create formula that term of object/array type is null.
|
static Formula |
ExpressionLogic.nullFormula(Term term,
Type booleanType)
Create formula that term of object/array type is null.
|
static Expression |
Substitution.perform(Expression exp,
Term oldStateTerm,
Term newStateTerm,
java.util.Map<VariableSymbol,Substitution.Value> vars)
Create a copy of expression with the denoted substitutions performed.
|
static Term |
Normalization.perform(Term term)
Replace copy of term with all poststate variables
replaced by prestate variables.
|
StateMessage |
Satisfies.stateMessage(Term state)
Construct a state message term.
|
StateValue |
Satisfies.stateValue(Term state)
Construct a state value term.
|
Modifier and Type | Method and Description |
---|---|
static AST |
RefSubstitution.perform(java.util.Map<java.lang.String,Term> map,
AST exp)
Perform substitution of identifiers by terms.
|
Constructor and Description |
---|
Value(Substitution.Action preAction,
Term preTerm,
Substitution.Action postAction,
Term postTerm)
Describe the substitution result of a program variable.
|
Modifier and Type | Method and Description |
---|---|
Term |
SpecLangParser.statearg() |
Term |
SpecLangParser.term() |
Term |
SpecLangParser.term10() |
Term |
SpecLangParser.term100() |
Term |
SpecLangParser.term20() |
Term |
SpecLangParser.term30() |
Term |
SpecLangParser.term40() |
Term |
SpecLangParser.term50() |
Term |
SpecLangParser.term60() |
Term |
SpecLangParser.term70() |
Term |
SpecLangParser.term80() |
Modifier and Type | Method and Description |
---|---|
boolean |
LogicChecking.hasIntType(Term term,
Type type,
boolean gen)
Checks if term has type INT, may generate type checking condition.
|
boolean |
LogicChecking.hasNatType(Term term,
Type type,
boolean gen)
Checks if term has type NAT, may generate type checking condition.
|
Type |
LogicChecking.process(Term term)
Type-check term in current theory and, as a side effect,
annotate the term with the type.
|
boolean |
LogicChecking.processIntTerm(Term term)
Process term denoting an integer number and create type-checking
conditions in context set up by setStateContext().
|
Type |
LogicChecking.processTermCore(Term term)
Type-check term in current theory and, as a side effect,
annotate the term with the type.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ProgramVariable
Interface to any expression denoting a storage location.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayTerm
An array term.
|
class |
BinaryTerm
Base class of binary terms.
|
class |
BitAndTerm
A bit conjunction term.
|
class |
BitFalse
A literal denoting the bit value "0".
|
class |
BitLiteral
A bit (i.e., 0,1) value.
|
class |
BitNegationTerm
A bit negation term.
|
class |
BitOrTerm
A bit disjunction term.
|
class |
BitTrue
A literal denoting the bit value "1".
|
class |
BooleanLiteral
A logical (i.e.
|
class |
Constant
A constant.
|
class |
DividesTerm
A quotient term.
|
class |
False
A literal denoting the boolean value "false".
|
class |
FunctionApplication
A function application.
|
class |
IfThenElseTerm
Base class of a conditional term.
|
class |
IntLiteral
A natural number.
|
class |
LambdaFormula
A function expression with a formula body.
|
class |
LambdaTerm
A function expression.
|
class |
LetTerm
A term with local value definitions.
|
class |
MinusTerm
A difference term.
|
class |
NegationTerm
An arithmetic negation term.
|
class |
NewState
A state literal referring to the new (successor) state.
|
class |
OldState
A state literal referring to the old (predecessor) state.
|
class |
PlusTerm
A sum term.
|
class |
PostfixTerm
A postfix application of a function
|
class |
PostVariable
A reference to a program variable in the post-state.
|
class |
PowerTerm
An exponent term.
|
class |
PreVariable
A reference to a program variable in the pre-state.
|
class |
ProgramVariableBase
Base class of a reference to a program variable.
|
class |
QuantifiedTerm
Base class of quantified terms.
|
class |
RecordTerm
A record of named values.
|
class |
Reference
A reference to a logical variable (or constant).
|
class |
SelectionTerm
A term from which a component is selected.
|
class |
StateLiteral
A literal referring to a state.
|
class |
StateMessage
The exception message captured by a state.
|
class |
StateValue
A reference to the return value captured by the current state.
|
class |
StringLiteral
A natural number.
|
class |
TermBase
Base class of a value term.
|
class |
TimesTerm
A product term.
|
class |
True
A literal denoting the boolean value "true".
|
class |
TupleTerm
A tuple of values.
|
class |
UnaryTerm
Base class of unary terms.
|
class |
UpdateTerm
A term from which a component is updated.
|
Modifier and Type | Method and Description |
---|---|
Term |
PostfixFormula.getArgument()
Get the argument.
|
Term |
PostfixTerm.getArgument()
Get the argument.
|
Term[] |
TermApplication.getArguments()
Get the arguments.
|
Term |
UpdateTerm.getBase()
Get base term.
|
Term |
SelectionTerm.getBase()
Get base term.
|
Term |
UnaryTerm.getBase()
Get base term.
|
Term[] |
TupleTerm.getBase()
Get base terms.
|
Term |
LambdaTerm.getBody()
Get the body of the term.
|
Term |
ArrayTerm.getBody()
Get the body of the term.
|
Term |
LetTerm.getBody()
Get body.
|
Term |
IfThenElseTerm.getElseBranch()
Get "else" branch.
|
Term |
BinaryTerm.getFirst()
Get first subterm.
|
Term |
BinaryAtomicFormula.getFirst()
Get first subterm.
|
Term |
SubrangeType.getFrom()
Get lower bound.
|
Term |
TermApplication.getFunction()
Get the function.
|
Term |
SelectorIndex.getIndex()
Get index.
|
Term |
SubType.getPredicate()
Get predicate type.
|
Term |
BinaryTerm.getSecond()
Get second subterm.
|
Term |
BinaryAtomicFormula.getSecond()
Get second subterm.
|
Term |
IfThenElseTerm.getThenBranch()
Get "then" branch.
|
Term |
SubrangeType.getTo()
Get upper bound.
|
Term |
ValueDeclarationInitialized.getValue()
Get value of the declaration.
|
Term |
UpdateTerm.getValue()
Get update value.
|
Term |
ValueDefinitionClass.getValue()
Get value of the definition.
|
Term |
ValuedIdentifier.getValue()
Get value.
|
Term |
ValueDefinition.getValue()
Get value.
|
Modifier and Type | Method and Description |
---|---|
static IfThenElseTerm |
IfThenElseTerm.construct(Formula cond,
Term tbranch,
Term ebranch)
Construct a conditional term.
|
static ValueDefinitionClass |
ValueDefinitionClass.construct(Identifier name,
Term value)
Create new definition of a constant denoting a value.
|
static ValuedIdentifier |
ValuedIdentifier.construct(Identifier name,
Term value)
Construct an identifier with a value.
|
static ValueDeclarationInitialized |
ValueDeclarationInitialized.construct(Identifier name,
Type type,
Term value)
Create new declaration of a constant denoting a value.
|
static StateThrows |
StateThrows.construct(Term arg)
Construct the statement that a state is "throwing".
|
static SubType |
SubType.construct(Term predicate)
Construct subtype.
|
static StateValue |
StateValue.construct(Term arg)
Construct a reference to a state's return value.
|
static BitNegationTerm |
BitNegationTerm.construct(Term base)
Construct a bit negation term.
|
static StateReturns |
StateReturns.construct(Term arg)
Construct the statement that a state is "returning".
|
static SelectorIndex |
SelectorIndex.construct(Term index)
Construct selector from index.
|
static StateExecutes |
StateExecutes.construct(Term arg)
Construct the statement that a state is "executing".
|
static NegationTerm |
NegationTerm.construct(Term base)
Construct an arithmetic negation Term.
|
static StateMessage |
StateMessage.construct(Term arg)
The exception message captured by a state.
|
static StateContinues |
StateContinues.construct(Term arg)
Construct the statement that a state is "continuing".
|
static StateBreaks |
StateBreaks.construct(Term arg)
Construct the statement that a state is "breaking".
|
static TupleTerm |
TupleTerm.construct(Term[] base)
Construct tuple term.
|
static StateThrowsException |
StateThrowsException.construct(Term arg,
Name exception)
Construct the statement that a state throws a particular exception
|
static SelectionTerm |
SelectionTerm.construct(Term base,
Selector selector)
Construct selection term.
|
static UpdateTerm |
UpdateTerm.construct(Term base,
Selector[] selectors,
Term value)
Construct selection term.
|
static GreaterFormula |
GreaterFormula.construct(Term first,
Term second)
Construct an is-greater-than formula.
|
static EqualsFormula |
EqualsFormula.construct(Term first,
Term second)
Construct an equality.
|
static GreaterEqualFormula |
GreaterEqualFormula.construct(Term first,
Term second)
Construct an is-greater-than-or-equal formula.
|
static NotEqualsFormula |
NotEqualsFormula.construct(Term first,
Term second)
Construct an equality.
|
static SimilarFormula |
SimilarFormula.construct(Term first,
Term second)
Construct a similarity.
|
static TimesTerm |
TimesTerm.construct(Term first,
Term second)
Construct a product term.
|
static PlusTerm |
PlusTerm.construct(Term first,
Term second)
Construct a sum term.
|
static DividesTerm |
DividesTerm.construct(Term first,
Term second)
Construct a quotient term.
|
static PowerTerm |
PowerTerm.construct(Term first,
Term second)
Construct an exponent term.
|
static BitOrTerm |
BitOrTerm.construct(Term first,
Term second)
Construct a bit disjunction term.
|
static LessFormula |
LessFormula.construct(Term first,
Term second)
Construct an is-less-than formula.
|
static LessEqualFormula |
LessEqualFormula.construct(Term first,
Term second)
Construct an is-less-than-or-equal formula.
|
static MinusTerm |
MinusTerm.construct(Term first,
Term second)
Construct a difference term.
|
static SubrangeType |
SubrangeType.construct(Term from,
Term to)
Construct subrange type.
|
static BitAndTerm |
BitAndTerm.construct(Term first,
Term second)
Construct a bit conjunction term.
|
static AtomicFormula |
AtomicFormula.construct(Term fun,
Term[] args)
Construct application expression.
|
static AtomicFormula |
AtomicFormula.construct(Term fun,
Term[] args)
Construct application expression.
|
static FunctionApplication |
FunctionApplication.construct(Term fun,
Term[] args)
Construct application expression.
|
static FunctionApplication |
FunctionApplication.construct(Term fun,
Term[] args)
Construct application expression.
|
static LambdaTerm |
LambdaTerm.construct(TypedIdentifier[] vars,
Term body)
Construct a function expression.
|
static ArrayTerm |
ArrayTerm.construct(TypedIdentifier[] vars,
Term body)
Construct a function expression.
|
static LetTerm |
LetTerm.construct(ValueDefinition[] d,
Term b)
Construct term with local value definitions.
|
Modifier and Type | Method and Description |
---|---|
Term[] |
LoopSpec.getTerminationTerm()
Get termination term vector.
|
Term[] |
MethodSpec.getTerminationTerm()
Get termination term vector.
|
Modifier and Type | Method and Description |
---|---|
void |
LoopSpec.setTerminationTerm(java.util.Vector<Term> term)
Set termination term vector.
|
void |
MethodSpec.setTerminationTerm(java.util.Vector<Term> term)
Set termination term.
|