org.checkerframework.dataflow.cfg.block.RegularBlock Maven / Gradle / Ivy
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.
*
* The following invariant holds.
*
*
* forall n in getContents() :: n.getBlock() == this
*
*
* @author Stefan Heule
*/
public interface RegularBlock extends SingleSuccessorBlock {
/** @return the unmodifiable sequence of {@link Node}s. */
List getContents();
/** @return the regular successor block */
Block getRegularSuccessor();
/** Is this block empty (i.e., does it not contain any contents). */
boolean isEmpty();
}