public class ModeBuilder
extends java.lang.Object
(R,E) is a set of
requires R and a set of ensures E. Requires have the same restrictions as
assumptions: they cannot mention outputs of the node they specify in the current state. Ensures,
like guarantees, have no restriction.| Constructor and Description |
|---|
ModeBuilder(java.lang.String id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
ensure(Expr expr)
add a mode ensure
|
void |
ensure(java.lang.String name,
Expr expr)
add a mode ensure
|
void |
require(Expr expr)
add a mode require
|
void |
require(java.lang.String name,
Expr expr)
add a mode require
|
public ModeBuilder(java.lang.String id)
id - name of the the contract modepublic void require(Expr expr)
expr - an expression representing a constraintpublic void require(java.lang.String name,
Expr expr)
name - name of the mode requireexpr - an expression representing a constraintpublic void ensure(Expr expr)
expr - an expression representing a constraintpublic void ensure(java.lang.String name,
Expr expr)
name - name of the mode ensureexpr - an expression representing a constraint