ExpandConstructorMatch

gapt.formats.tip.transformation.ExpandConstructorMatch

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
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Expands constructor match-expressions in the given problem.

Expands constructor match-expressions in the given problem.

Attributes

Returns

A problem whose expressions do not contain any constructor match-expressions.

Source
expandConstructorMatch.scala

Concrete fields