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

Method isInt

smt/expr.cpp:457–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457bool expr::isInt(int64_t &n) const {
458 C();
459 auto bw = bits();
460 if (bw > 64 || !Z3_get_numeral_int64(ctx(), ast(), &n))
461 return false;
462
463 if (bw < 64)
464 n = (int64_t)((uint64_t)n << (64 - bw)) >> (64 - bw);
465 return true;
466}
467
468bool expr::isSameTypeOf(const expr &other) const {
469 C(other);

Callers 2

sltMethod · 0.45
getIntMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected