private FunctionRecord modifyFunctionFlag(FunctionRecord funcRec, int flagMask, boolean value)
			throws IOException {

		if (funcRec.getFidDb() != this) {
			throw new IOException("Mismatched FunctionRecord and FidDb");
		}
		long key = funcRec.getID();
		functionsTable.modifyFlags(key, flagMask, value);
		FunctionRecord res = functionsTable.getFunctionByID(key);
		if (res == null) {
			throw new IOException("Could not recover modified FunctionRecord");
		}
		return res;
	}
Modify a flag of a FunctionRecord in the database, and return a modified record
@param funcRec the original record to be modified
@param flagMask mask indicating which flag to modify
@param value new value of the flag
@return a new FunctionRecord reflecting the change
@throws IOException
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidDB.java