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

Method isPowerOf2

smt/expr.cpp:1052–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052expr expr::isPowerOf2() const {
1053 return *this != 0 && (*this & (*this - mkUInt(1, *this))) == 0;
1054}
1055
1056expr expr::log2(unsigned bw_output) const {
1057 C();

Callers 2

isAlignedMethod · 0.80
toSMTMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected