Module dev.civl.mc

Interface CIVLPrimitiveType

All Superinterfaces:
CIVLType
All Known Subinterfaces:
CIVLScopeType, CIVLStateType

public interface CIVLPrimitiveType extends CIVLType
A primitive type is a type of which there is only one instance. In addition, there is a single symbolic type corresponding to each primitive type.
  • Method Details

    • primitiveTypeKind

      Returns:
      The kind of this primitive type, an element of the enumerated type
    • getSizeof

      dev.civl.sarl.IF.expr.NumericExpression getSizeof()
      Returns the symbolic value representing the size of this primitive type, i.e., the value of "sizeof(t)".
      Returns:
      the size of this type
    • getFacts

      dev.civl.sarl.IF.expr.BooleanExpression getFacts()
      Returns facts about this primitive type that should be added to the path condition whenever it is used. For example, that "sizeof(t)>0".
      Returns:
      predicate which must hold concerning this type