|
|
|
@ -68,6 +68,10 @@ public class LocalInfo { |
|
|
|
|
getLocalInfo().operators.addElement(operator); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int getUseCount() { |
|
|
|
|
return getLocalInfo().operators.size(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Combines the LocalInfo with another. This will make this |
|
|
|
|
* a shadow object to the other local info. That is all member |
|
|
|
@ -195,12 +199,17 @@ public class LocalInfo { |
|
|
|
|
* @param The new type information to be set. |
|
|
|
|
* @return The new type of the local. |
|
|
|
|
*/ |
|
|
|
|
public Type setType(Type newType) { |
|
|
|
|
public Type setType(Type otherType) { |
|
|
|
|
LocalInfo li = getLocalInfo(); |
|
|
|
|
newType = li.type.intersection(newType); |
|
|
|
|
if (Decompiler.isTypeDebugging) |
|
|
|
|
Type newType = li.type.intersection(otherType); |
|
|
|
|
if (newType == Type.tError |
|
|
|
|
&& otherType != Type.tError && li.type != Type.tError) |
|
|
|
|
Decompiler.err.println("Type error in local " + getName()+": " |
|
|
|
|
+ li.type + " and " + otherType); |
|
|
|
|
else if (Decompiler.isTypeDebugging) |
|
|
|
|
Decompiler.err.println(getName()+" setType, new: "+newType |
|
|
|
|
+ " old: "+li.type); |
|
|
|
|
|
|
|
|
|
if (!li.type.equals(newType)) { |
|
|
|
|
li.type = newType; |
|
|
|
|
java.util.Enumeration enum = li.operators.elements(); |
|
|
|
|