MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / isExtract

Method isExtract

smt/expr.cpp:503–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503bool 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
514bool expr::isSignExt(expr &val) const {
515 return isUnOp(val, Z3_OP_SIGN_EXT);

Callers 13

isUndefMethod · 0.80
isNaNIntMethod · 0.80
isFnReturnValueFunction · 0.80
isInitialMemBlockMethod · 0.80
isInitialMemoryOrLoadMethod · 0.80
bytesToValueFunction · 0.80
isDerivedFromLoadFunction · 0.80
isFPNegMethod · 0.80
isIsFPZeroMethod · 0.80
concatMethod · 0.80
leafsMethod · 0.80
simplifyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected