[Fb-contrib-commit] SF.net SVN: fb-contrib: [951] trunk/fb-contrib
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-11-03 02:52:52
|
Revision: 951 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=951&view=rev Author: dbrosius Date: 2007-11-02 19:52:55 -0700 (Fri, 02 Nov 2007) Log Message: ----------- if a store to a parameter occurs, remove that parameter from considerations Modified Paths: -------------- trunk/fb-contrib/samples/CFS_Sample.java trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java Modified: trunk/fb-contrib/samples/CFS_Sample.java =================================================================== --- trunk/fb-contrib/samples/CFS_Sample.java 2007-11-02 23:16:33 UTC (rev 950) +++ trunk/fb-contrib/samples/CFS_Sample.java 2007-11-03 02:52:55 UTC (rev 951) @@ -7,4 +7,11 @@ d.setHours(0); return d; } + + public Date getNextDateFP(Date d) + { + d = (Date)d.clone(); + d.setHours(0); + return d; + } } Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java 2007-11-02 23:16:33 UTC (rev 950) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java 2007-11-03 02:52:55 UTC (rev 951) @@ -163,6 +163,9 @@ if (pu != null) pu.setAlteredPC(getPC()); } + } else if ((seen == ASTORE) || ((seen >= ASTORE_0) && (seen <= ASTORE_3))) { + int reg = RegisterUtils.getAStoreReg(this, seen); + possibleParmRegs.remove(Integer.valueOf(reg)); } else if ((seen == INVOKEVIRTUAL) || (seen == INVOKEINTERFACE)) { String calledSig = getSigConstantOperand(); String calledRet = Type.getReturnType(calledSig).getSignature(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |