gapt.formats.tip.transformation

Members list

Type members

Classlikes

Attributes

Source
booleanConstantElimination.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
desugarDistinctExpression.scala
Supertypes
class Object
trait Matchable
class Any

This class eliminates useless quantifiers in TIP problems.

This class eliminates useless quantifiers in TIP problems.

A quantifier is considered as useless if its bound variable does not occur freely in its formula.

Value parameters

problem

The TIP problem in which useless quantifiers are to be eliminated.

Attributes

Source
eliminateUselessQuantifiers.scala
Supertypes
class Object
trait Matchable
class Any

Expands constructor match-expressions.

Expands constructor match-expressions.

A constructor match expression is an expression of the form

( match (c_i t_1 ... t_{n_i}) ( case (c_1 x_1 ... x_{n_1} e_1) ... ( case (c_k x_k ... x_{n_k} e_k)))

with 1 <= i <= k. A constructor match-expression can be simplified into the following expression

e_i[x_1/t_1, ... x_{n_i}/t_{n_i}].

This class expands constructor match-expressions to expression in the problem. Constructor match-expressions are expanded from the outside to the inside of the given expression.

Value parameters

problem

The problem whose expressions are subject to the transformation.

Attributes

Source
expandConstructorMatch.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
integersToNaturals.scala
Supertypes
class Object
trait Matchable
class Any

This class moves outermost universal quantifiers in function definitions inwards.

This class moves outermost universal quantifiers in function definitions inwards.

Universal quantifiers are distributed over conjuncts. This transformation may result in redundant universal quantifiers which can be eliminated in a next step.

Value parameters

problem

The problem whose function definitions are subject to the transformation described above.

Attributes

Source
moveUniversalQuantifiersInwards.scala
Supertypes
class Object
trait Matchable
class Any
class TipOcnf(problem: TipSmtProblem)

Attributes

Source
ocnfTranformation.scala
Supertypes
class Object
trait Matchable
class Any

This class implements default pattern expansion for TIP problems.

This class implements default pattern expansion for TIP problems.

Default patterns expansion replaces default patterns by a case statement for each of the constructors that are covered by the default pattern.

Value parameters

problem

The problem whose default patterns are expanded. The problem needs to be well-formed.

Attributes

Source
defaultPatternExpansion.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
TipSmtDefinitionTransformation.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
TipSmtProblemTransformation.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Replaces bodies of function definitions by a formula that defines the function.

Replaces bodies of function definitions by a formula that defines the function.

Let E be the body of a function f with formal parameters X, then E is replaced by the formula !X f(X) = E.

Value parameters

problem

The TIP problem in which the bodies of function definitions are to be replaced by defining formulas.

Attributes

Source
useDefinitionEquations.scala
Supertypes
class Object
trait Matchable
class Any

This class expands Boolean match-expressions whose matched expression is a variable.

This class expands Boolean match-expressions whose matched expression is a variable.

Let E be the boolean match-expression ( match x ( case p_1 e_1) ... (case p_n e_n)), and let X_i be the variables in pattern p_i. Then the expression E is expanded into the formula !X_1 (e_1[x/p_1]) & ... & !X_n (e_n[x/p_n]).

The variable-match-expressions are expanded from outside to inside.

Value parameters

problem

A well-formed TIP problem whose variable-match expressions are to be expanded.

Attributes

Source
variableMatchExpansion.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
desugarDistinctExpression.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
booleanConstantElimination.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
eliminateUselessQuantifiers.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
expandConstructorMatch.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
defaultPatternExpansion.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
variableMatchExpansion.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
integersToNaturals.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
moveUniversalQuantifiersInwards.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
ocnfTranformation.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
useDefinitionEquations.scala
Supertypes
class Object
trait Matchable
class Any
Self type