Пример #1
0
        public Expression VisitMemoryAccess(MemoryAccess access)
        {
            TypedMemoryExpressionRewriter r = new TypedMemoryExpressionRewriter(prog);
            Expression e = r.Rewrite(access);
            ComplexExpressionBuilder ceb = new ComplexExpressionBuilder(
                dtResult,
                e.DataType,
                e.DataType,
                null,
                e, null, 0);

            ceb.Dereferenced = true;
            return(ceb.BuildComplex());
        }
Пример #2
0
        public Expression VisitSegmentedAccess(SegmentedAccess access)
        {
            var r   = new TypedMemoryExpressionRewriter(prog);
            var e   = r.Rewrite(access);
            var ceb = new ComplexExpressionBuilder(
                dtResult,
                e.DataType,
                e.DataType,
                basePointer,
                e, null, 0);

            ceb.Dereferenced = true;
            return(ceb.BuildComplex());
        }
Пример #3
0
        public override Expression VisitSegmentedAccess(SegmentedAccess access)
        {
            var tmer = new TypedMemoryExpressionRewriter(prog);

            return(tmer.Rewrite(access));
        }