public void rollback(Program program) {
		Integer id = openPrograms.get(program);
		if (id == null || id.intValue() < 0) {
			throw new IllegalStateException("Cannot rollback a read-only program");
		}
		program.endTransaction(id.intValue(), false);
		openPrograms.put(program, Integer.valueOf(program.startTransaction("")));
	}
Rolls back any changes to the program since the last checkpoint.

@param program
           the program to be rolled back.
Ghidra/Features/Base/src/main/java/ghidra/base/project/GhidraProject.java