示例#1
0
        bool ExpressionVisitor <bool> .VisitAddress(Reko.Core.Address addr)
        {
            var anyC = p as WildConstant;

            if (anyC != null)
            {
                if (!string.IsNullOrEmpty(anyC.Label))
                {
                    capturedExpressions[anyC.Label] = addr;
                }
                return(true);
            }
            var cP = p as Address;

            if (cP == null)
            {
                return(false);
            }
            return(addr.ToLinear() == cP.ToLinear());
        }
示例#2
0
 public Expression GetMemoryValue(Address addr, DataType dt, SegmentMap segmentMap)
 {
     if (!(dt is PrimitiveType pt))
     {
         return(Constant.Invalid);
     }