public void flowEnd(Address maxAddress) {
		if (!isFlowActive()) {
			throw new IllegalStateException("Attempted to end a flow that was not started.");
		}
		if (maxAddress != null && maxAddress.compareTo(startAddr) >= 0) {
			saveProgramContext(startAddr, maxAddress);
		}
		startAddr = null;
		currentAddress = null;
	}
Ends the current flow.  Unsaved register values will be saved up to and including max address.
@param maxAddress the maximum address of an instruction flow.  If maxAddress is null,
or the current flow address has already advanced beyond maxAddress, then no save is performed.
@throws IllegalStateException if a flow has not been started.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/disassemble/DisassemblerContextImpl.java