Ejemplo n.º 1
0
  public boolean isConstPhiFunc(String strName) {
    boolean bRet = false;

    for (int i = 0; !bRet && i < getPhiFunctions().size(); i++) {
      PhiFunction phiFunc = getPhiFunctions().get(i);

      if (0 == phiFunc.getName().compareTo(strName)) {
        if (phiFunc.isConst()) bRet = true;
      }
    }

    return bRet;
  }
Ejemplo n.º 2
0
  public int getPhiFunctionConstValue(String strName) {
    int nRet = 0;

    for (int i = 0; i < getPhiFunctions().size(); i++) {
      PhiFunction phiFunc = getPhiFunctions().get(i);

      if (0 == phiFunc.getVariable().getName().compareTo(strName)) {
        if (phiFunc.isConst()) {
          nRet = phiFunc.getConstValue();
          break;
        }
      }
    }

    return nRet;
  }