public static void resetAnalysisFlags(Program program) {
		int transactionID = program.startTransaction("Reset Analysis Flags");

		try {
			Options options = program.getOptions(Program.PROGRAM_INFO);
			options.removeOption(Program.ANALYZED_OPTION_NAME);
			options.removeOption(Program.ASK_TO_ANALYZE_OPTION_NAME);
		}
		finally {
			program.endTransaction(transactionID, true);
		}
	}
Resets the analysis flags to the program defaults
With this reset, the user will be prompted to analyze the
program the next time it is opened.
@param program the program whose analysis flags should be reset
Ghidra/Features/Base/src/main/java/ghidra/program/util/GhidraProgramUtilities.java