aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/RegularBlock.java
blob: 566449257bf4da3feda1e90360444a8e65319834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.checkerframework.dataflow.cfg.block;

import java.util.List;
import org.checkerframework.dataflow.cfg.node.Node;

/**
 * A regular basic block that contains a sequence of {@link Node}s.
 *
 * <p>The following invariant holds.
 *
 * <pre>
 * forall n in getContents() :: n.getBlock() == this
 * </pre>
 *
 * @author Stefan Heule
 */
public interface RegularBlock extends SingleSuccessorBlock {

    /** @return the unmodifiable sequence of {@link Node}s. */
    List<Node> getContents();

    /** @return the regular successor block */
    Block getRegularSuccessor();

    /** Is this block empty (i.e., does it not contain any contents). */
    boolean isEmpty();
}