mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add paris constraints to SMTChecker
Co-authored-by: Daniel <daniel@ekpyron.org> Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it> Co-authored-by: Leo <leo@ethereum.org>
This commit is contained in:
co-authored by
Daniel
Kamil Śliwak
Leo
parent
d9d9ab30a2
commit
feba4de509
@@ -1337,7 +1337,13 @@ bool SMTEncoder::visit(MemberAccess const& _memberAccess)
|
||||
{
|
||||
auto const& name = identifier->name();
|
||||
solAssert(name == "block" || name == "msg" || name == "tx", "");
|
||||
defineExpr(_memberAccess, state().txMember(name + "." + _memberAccess.memberName()));
|
||||
auto memberName = _memberAccess.memberName();
|
||||
|
||||
// TODO remove this for 0.9.0
|
||||
if (name == "block" && memberName == "difficulty")
|
||||
memberName = "prevrandao";
|
||||
|
||||
defineExpr(_memberAccess, state().txMember(name + "." + memberName));
|
||||
}
|
||||
else if (auto magicType = dynamic_cast<MagicType const*>(exprType))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user