Simplify values (no references)

This CIF to CIF transformation simplifies CIF specifications, by applying same value-related simplifications as the Simplify values CIF to CIF transformation, but without simplifying reference expressions.

Supported specifications

This transformation supports a subset of CIF specifications. The following restrictions apply:

  • Component definitions and component instantiations are not supported.


No preprocessing is currently performed by this CIF to CIF transformation. To increase the subset of specifications that can be transformed, apply the following CIF to CIF transformations (in the given order):

Implementation details

The CIF to CIF transformation to Simplify values, transforms the following specification:

const int x = 3;
invariant x - 5 + 1 > 0;

into the following simplified specification:

const int x = 3;
invariant false;

This transformation however, does not take the values of declarations into account, and thus for instance does not fill in the values of constants, algebraic variables, etc. Therefore, this transformation transforms that same specification into the following simplified specification:

const int x = 3;
invariant x - 4 > 0;

This variant can be useful, as it prevents the use of constants from being eliminated. This makes it possible to change the value of the constant in one place (the one place being the declaration of the constant), and have all uses of that constant automatically change with it (as they still refer to the constant). If the value of the constant would be filled in as well, changing the value of the constant would be more work, as all those places where it was filled in, need to be replaced as well. In the above example, the issue is even bigger, as the result is simplified even further, eliminating the entire comparison to a single boolean value.

Another issue related to simplification of constants, is that inlining them can be very expensive. If a constant has a large literal as its value, the large literal is inlined wherever the constant is used. This may lead to significantly larger specifications. Also, tools that use the resulting model may handle constants in a special way to ensure they are evaluated only once, but may not do so for large literals that occur in the middle of other expressions. As such, simplification/inlining of constants may significantly reduce performance.

The reference expressions that are not simplified (filled in) include among others the following:

  • Values of constants.

  • Values of discrete variables.

  • Values of algebraic variables.

  • Values of continuous variables.

  • Values of input variables.

  • Derivatives of continuous variables.

  • Values of local variables of functions.

  • Values of parameters of functions.

  • User-defined functions.



Size considerations

This transformation tries to simplify the specification, possibly reducing its size.


Not all simplifications that could potentially be performed are implemented in this transformation.


This transformation does not process, add, or remove any annotations. The values of annotation arguments may be simplified.