| 501 | } |
| 502 | |
| 503 | bool expr::isExtract(expr &e, unsigned &high, unsigned &low) const { |
| 504 | if (auto app = isAppOf(Z3_OP_EXTRACT)) { |
| 505 | e = Z3_get_app_arg(ctx(), app, 0); |
| 506 | auto d = decl(); |
| 507 | high = Z3_get_decl_int_parameter(ctx(), d, 0); |
| 508 | low = Z3_get_decl_int_parameter(ctx(), d, 1); |
| 509 | return true; |
| 510 | } |
| 511 | return false; |
| 512 | } |
| 513 | |
| 514 | bool expr::isSignExt(expr &val) const { |
| 515 | return isUnOp(val, Z3_OP_SIGN_EXT); |
no outgoing calls
no test coverage detected