start of new file
[IRC.git] / Robust / src / IR / AssignOperation.java
index 1a4e2a2b80ad7e841c3560e02445c89cdfd40593..121c4d41c0c900ccfc7ffdb86fd066576b6ed12b 100644 (file)
@@ -25,6 +25,10 @@ public class AssignOperation {
        this.operation=parseOp(op);
     }
 
+    public int getOp() {
+       return operation;
+    }
+
     public Operation getBaseOp() {
        switch(operation) {
        case EQ:
@@ -43,6 +47,8 @@ public class AssignOperation {
            return new Operation(Operation.LEFTSHIFT);
        case RSHIFTEQ:
            return new Operation(Operation.RIGHTSHIFT);
+       case URSHIFTEQ:
+           return new Operation(Operation.URIGHTSHIFT);
        case ANDEQ:
            return new Operation(Operation.BIT_AND);
        case XOREQ:
@@ -72,6 +78,8 @@ public class AssignOperation {
            return MINUSEQ;
        else if (st.equals("lshifteq"))
            return LSHIFTEQ;
+       else if (st.equals("urshifteq"))
+           return URSHIFTEQ;
        else if (st.equals("rshifteq"))
            return RSHIFTEQ;
        else if (st.equals("andeq"))
@@ -104,6 +112,8 @@ public class AssignOperation {
            return "<=";
        else if (operation==RSHIFTEQ)
            return ">=";
+       else if (operation==RSHIFTEQ)
+           return ">>=";
        else if (operation==ANDEQ)
            return "&=";
        else if (operation==XOREQ)