bug fix for getMainExits() when slicing forwards

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@567 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2007-01-12 16:39:00 +00:00
parent b676724bab
commit 3dd49e31ce
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class SDGSupergraph implements ISupergraph<Statement, PDG> {
* @see com.ibm.wala.dataflow.IFDS.ISupergraph#getExitsForProcedure(java.lang.Object)
*/
public Statement[] getExitsForProcedure(PDG procedure) {
if (procedure.equals(getMain())) {
if (procedure.equals(getMain()) && backward) {
Statement[] normal = procedure.getReturnStatements();
Statement[] result = new Statement[normal.length + 1];
result[0] = getMainExit();