Package dk.brics.xact.analysis.flowgraph.statements

Examples of dk.brics.xact.analysis.flowgraph.statements.ArrayReadStm


    return dest;
  }
  @Override
  public Variable caseArrayRef(ArrayRef v, Object question) {
    Variable dest = makevar();
    cfg.addStatement(new ArrayReadStm(dest, translateExpr(v.getBase()), context.getCurrentOrigin()));
    return dest;
  }
View Full Code Here


    cfg.addStatement(new ArrayWriteStm(array, src, context.getCurrentOrigin()));
    cfg.addStatement(addStringStatement(new ArrayWriteStringStm(array, null, context.getCurrentOrigin()), source));
  }
  private void putArrayRead(Value from) {
    hardcodeResult = makevar();
    cfg.addStatement(new ArrayReadStm(hardcodeResult, translateExpr(from), context.getCurrentOrigin()));
  }
View Full Code Here

  }
  private void putArrayReadAndWrite(Value arrayValue, ValueBox source) {
      hardcodeResult = makevar();
      Variable array = translateExpr(arrayValue);
      Variable src = translateExpr(source.getValue());
      cfg.addStatement(new ArrayReadStm(hardcodeResult, array, context.getCurrentOrigin()));
        cfg.addStatement(new ArrayWriteStm(array, src, context.getCurrentOrigin()));
        cfg.addStatement(addStringStatement(new ArrayWriteStringStm(array, null, context.getCurrentOrigin()), source));
  }
View Full Code Here

TOP

Related Classes of dk.brics.xact.analysis.flowgraph.statements.ArrayReadStm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.