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

Method sext

smt/expr.cpp:1827–1840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1825}
1826
1827expr expr::sext(unsigned amount) const {
1828 C();
1829 if (amount == 0)
1830 return *this;
1831
1832 expr e;
1833 if (isSignExt(e))
1834 return e.sext((bits() - e.bits()) + amount);
1835
1836 if (isNegative().isFalse())
1837 return zext(amount);
1838
1839 return simplify_const(Z3_mk_sign_ext(ctx(), amount, ast()), *this);
1840}
1841
1842expr expr::zext(unsigned amount) const {
1843 if (amount == 0)

Callers 11

toSMTMethod · 0.80
toSMTMethod · 0.80
sadd_satMethod · 0.80
ssub_satMethod · 0.80
add_no_soverflowMethod · 0.80
add_no_usoverflowMethod · 0.80
sub_no_soverflowMethod · 0.80
mul_no_soverflowMethod · 0.80
smul_fix_helperFunction · 0.80
smul_fix_no_soverflowMethod · 0.80
extractMethod · 0.80

Calls 3

simplify_constFunction · 0.85
isFalseMethod · 0.80
bitsMethod · 0.45

Tested by

no test coverage detected