Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argotorg/solidity
/ valueIfKnownConstant
Method
valueIfKnownConstant
libyul/optimiser/KnowledgeBase.cpp:73–76 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
71
}
72
73
std::optional<u256> KnowledgeBase::valueIfKnownConstant(YulName _a)
74
{
75
return explore(_a).absoluteValue();
76
}
77
78
std::optional<u256> KnowledgeBase::valueIfKnownConstant(Expression const& _expression)
79
{
Callers
4
BOOST_AUTO_TEST_CASE
Function · 0.80
lengthValue
Method · 0.80
knownUnrelated
Method · 0.80
knownCovered
Method · 0.80
Calls
2
absoluteValue
Method · 0.80
value
Method · 0.45
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.64