Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1052
expr expr::isPowerOf2() const {
1053
return *this != 0 && (*this & (*this - mkUInt(1, *this))) == 0;
1054
}
1055
1056
expr expr::log2(unsigned bw_output) const {
1057
C();
Callers
2
isAligned
Method · 0.80
toSMT
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected