aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/RegularBlock.java
blob: d29d7f1ec0bc27717c0d004a1474dc12b1b0bc89 (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
28
29
30
31
32
33
34
35
36
37
38
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();

}