コード例 #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
ファイル: ProcessorState.cs プロジェクト: erenes/reko
 public Expression GetMemoryValue(Address addr, DataType dt, SegmentMap segmentMap)
 {
     if (!(dt is PrimitiveType pt))
     {
         return(Constant.Invalid);
     }