private State allocateState(final String name)
    {
        final State state = new State(transitionsByState.size(), name);
        transitionsByState.put(state, new ArrayList<>());
        return state;
    }
Encodes the state machine as a graphviz dot diagram.
@param sb the string builder to append to.
@param indent the indentation to use.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common/FieldPrecedenceModel.java