Check whether a given assignment is "simple" or not. That is, assigns only a single location on the left-hand side. @param stmt @return
(Stmt.Assign stmt)
| 135 | * @return |
| 136 | */ |
| 137 | public static boolean isSimple(Stmt.Assign stmt) { |
| 138 | Tuple<LVal> lhs = stmt.getLeftHandSide(); |
| 139 | |
| 140 | for (int i = 0; i != lhs.size(); ++i) { |
| 141 | if (i > 0) { |
| 142 | return false; |
| 143 | } else if (lhs.get(i).getType().shape() > 1) { |
| 144 | return false; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | return true; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Check whether a given assignment "has interference" or not. That is, where |
nothing calls this directly
no test coverage detected