- All Implemented Interfaces:
Serializable,Comparable<ContractNode.ContractKind>,Constable
- Enclosing interface:
ContractNode
The kinds of contract nodes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionan allocation clause.an ACSL "assert" annotationdefines memory units assigned by the functionan "assumes" clauseAn "behavior" node encodes a named behavior blockAn "completeness" node encodes either a complete or disjoint clausedefines features of the dependent processes of the current oneAn "ensures" node encodes a post-condition in a procedure contract.A "guard" node represents the guard of a CIVL-C function.A "invariant" node represents a loop invariant or a general invariant.ACSL: ANSI/ISO C Specification Language v1.12 section: 2.6.1.A "pure" node represents the contract for specifying a pure function.A "requires" node represents a pre-condition in a CIVL-C procedure contract.A "transform" node represents a transformation that should be applied to the piece of code annotated by the transform node. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContractNode.ContractKindReturns the enum constant of this class with the specified name.static ContractNode.ContractKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ALLOCATES_OR_FREES
an allocation clause. Can be safely cast toAllocationNode. -
ASSIGNS_READS
defines memory units assigned by the function -
ASSUMES
an "assumes" clause -
ASSERT
an ACSL "assert" annotation -
BEHAVIOR
An "behavior" node encodes a named behavior block -
COMPLETENESS
An "completeness" node encodes either a complete or disjoint clause -
DEPENDS
defines features of the dependent processes of the current one -
ENSURES
An "ensures" node encodes a post-condition in a procedure contract. A node of this kind can be safely cast toEnsuresNode. -
GUARDS
A "guard" node represents the guard of a CIVL-C function. A node of this kind may be safely cast to.invalid reference
GuardNode -
INVARIANT
A "invariant" node represents a loop invariant or a general invariant. -
PURE
A "pure" node represents the contract for specifying a pure function. A node of this kind may be safely cast to.invalid reference
PureNode -
REQUIRES
A "requires" node represents a pre-condition in a CIVL-C procedure contract. May be safely cast toRequiresNode. -
TRANSFORM
A "transform" node represents a transformation that should be applied to the piece of code annotated by the transform node. -
PREDICATE
ACSL: ANSI/ISO C Specification Language v1.12 section: 2.6.1.
A predicate is a boolean value expression
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-