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

Method isBinOp

smt/expr.cpp:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276bool expr::isBinOp(expr &a, expr &b, int z3op) const {
277 if (auto app = isAppOf(z3op)) {
278 if (Z3_get_app_num_args(ctx(), app) != 2)
279 return false;
280 a = Z3_get_app_arg(ctx(), app, 0);
281 b = Z3_get_app_arg(ctx(), app, 1);
282 return true;
283 }
284 return false;
285}
286
287bool expr::isTernaryOp(expr &a, expr &b, expr &c, int z3op) const {
288 if (auto app = isAppOf(z3op)) {

Callers 1

isFPNegMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected