Don't allocate type number for interfaces so that we do not need allocate lines in...
[IRC.git] / Robust / src / IR / State.java
index cf36777042903ba82e7c2bef4a5fa91a1cff910f..459021b14e5c5cdf1a573b6f14480ea72f69e99e 100644 (file)
@@ -229,7 +229,9 @@ public class State {
     if (classes.contains(tdn.getSymbol()))
       throw new Error("Class "+tdn.getSymbol()+" defined twice");
     classes.add(tdn);
-    numclasses++;
+    if(!tdn.isInterface()) {
+      numclasses++;
+    }
     if((tdn.numstaticfields != 0) || (tdn.numstaticblocks != 0)) {
       sclasses.add(tdn);
     }