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; }
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; }