int stage = 0; if (!init && !primepump) stage = 3;
boolean stage = init || primepump;
    private static void generateFilterOutputDRAMCommand(FilterTraceNode filterNode,             boolean init, boolean primepump) {        if (filterNode.getNext() != null            && filterNode.getNext().isOutputTrace()) {            // get this buffer or null if there are no inputs and use it             // to decide if we should use the gdn or the static network            OutputTraceNode output = (OutputTraceNode) filterNode.getNext();            OffChipBuffer buffer = IntraTraceBuffer.getBuffer(filterNode,                                                              output);            //get the non redundant buffer for the buffer address that we should write into            OffChipBuffer nonRedBuffer = buffer.getNonRedundant();            if (nonRedBuffer == null)                return;            int stage = 0;            if (!init && !primepump)                stage = 3;            // get the number of items sent            int items = FilterInfo.getFilterInfo(filterNode).totalItemsSent(init, primepump);            if (items > 0) {                int words = (items * Util.getTypeSize(filterNode.getFilter()                                                      .getOutputType()));                if (output.onlyWritingToAFile())                    nonRedBuffer.getOwner().getComputeCode().addFileCommand(false,                            init || primepump, words, nonRedBuffer, buffer.isStaticNet());                else {                    SpaceTimeBackend                        .println("Generating DRAM store command with "                                 + items                                 + " items, typesize "                                 + Util.getTypeSize(filterNode.getFilter()                                                    .getOutputType()) + " and " + words                                 + " words");                    nonRedBuffer.getOwner().getComputeCode().addDRAMCommand(false, stage,                            Util.cacheLineDiv(words * 4),                             nonRedBuffer, false, buffer.isStaticNet());                }            }        }    }