Check if \a e is of type \a t
| 287 | }; |
| 288 | /// Check if \a e is of type \a t |
| 289 | bool hasType(const LinIntExpr& e, ArithNonLinIntExpr::ArithNonLinIntExprType t) { |
| 290 | return e.nle() && |
| 291 | dynamic_cast<ArithNonLinIntExpr*>(e.nle()) != nullptr && |
| 292 | dynamic_cast<ArithNonLinIntExpr*>(e.nle())->t == t; |
| 293 | } |
| 294 | |
| 295 | }} |
| 296 |