예제 #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;
  }
예제 #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;
  }