MCPcopy Create free account
hub / github.com/argotorg/solidity / expressionAlwaysFalse

Function expressionAlwaysFalse

libyul/optimiser/StructuralSimplifier.cpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool expressionAlwaysFalse(Expression const& _expression)
74{
75 if (std::optional<u256> value = hasLiteralValue(_expression))
76 return *value == 0;
77 else
78 return false;
79}
80
81}
82

Callers 1

simplifyMethod · 0.85

Calls 1

hasLiteralValueFunction · 0.85

Tested by

no test coverage detected