Class SEvaluator

    • Constructor Detail

      • SEvaluator

        public SEvaluator()
    • Method Detail

      • isValueConstantValued

        public static boolean isValueConstantValued​(Value op)
        Returns true if given value is determined to be constant valued, false otherwise
      • getConstantValueOf

        public static Value getConstantValueOf​(Value op)
        Returns the constant value of op if it is easy to find the constant value; else returns null.
      • getFuzzyConstantValueOf

        public static Constant getFuzzyConstantValueOf​(Value v)
        If a normal expression contains Bottom, always return Bottom. Otherwise, if a normal expression contains Top, returns Top. Else determine the constant value of the expression if possible, if not return Bottom.

        If a Phi expression contains Bottom, always return Bottom. Otherwise, if all the constant arguments are the same (ignoring Top and locals) return that constant or Top if no concrete constant is present, else return Bottom.

        See Also:
        SEvaluator.TopConstant, SEvaluator.BottomConstant