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

Method fshr

smt/expr.cpp:961–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961expr expr::fshr(const expr &a, const expr &b, const expr &c) {
962 C2(a);
963 auto width = mkUInt(a.bits(), a.sort());
964 expr c_mod_width = c.urem(width);
965 return a << (width - c_mod_width) | b.lshr(c_mod_width);
966}
967
968/*
969 * FIXME: the fixed point functions are allowed to round towards zero

Callers

nothing calls this directly

Calls 4

sortMethod · 0.80
uremMethod · 0.80
lshrMethod · 0.80
bitsMethod · 0.45

Tested by

no test coverage detected