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

Method fshl

smt/expr.cpp:954–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954expr expr::fshl(const expr &a, const expr &b, const expr &c) {
955 C2(a);
956 auto width = mkUInt(a.bits(), a.sort());
957 expr c_mod_width = c.urem(width);
958 return a << c_mod_width | b.lshr(width - c_mod_width);
959}
960
961expr expr::fshr(const expr &a, const expr &b, const expr &c) {
962 C2(a);

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