Esempio n. 1
0
        public bool hasOldGlobalVarsToInstrument(Absy exp)
        {
            GlobalVarsUsed usesg = new GlobalVarsUsed();

            usesg.Visit(exp);

            // If any used variable is also modified then return true
            if (usesg.oldVarsUsed.Any(x => globalsToInstrument.Contains(x)))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public bool hasModifiedGlobalVars(Absy exp)
        {
            Debug.Assert(infoGathered);

            GlobalVarsUsed usesg = new GlobalVarsUsed();

            usesg.Visit(exp);

            // If any used variable is also modified then return true
            if (usesg.Used.Any(x => modifiedGlobals.ContainsKey(x)))
            {
                return(true);
            }

            return(false);
        }