[SMTChecker] Ensure that push to a string casted to bytes is registered in the original string

This commit is contained in:
Martin Blicha
2021-03-03 17:11:42 +01:00
parent 41a01de664
commit 41fc59f00f
2 changed files with 34 additions and 1 deletions
+6
View File
@@ -68,6 +68,12 @@ public:
/// otherwise _expr.
static Expression const* innermostTuple(Expression const& _expr);
/// @returns the expression after stripping redundant syntactic sugar.
/// Currently supports stripping:
/// 1. 1-tuple; i.e. ((x)) -> x
/// 2. Explicit cast from string to bytes; i.e. bytes(s) -> s; for s of type string
static Expression const* cleanExpression(Expression const& _expr);
/// @returns the FunctionDefinition of a FunctionCall
/// if possible or nullptr.
/// @param _scopeContract is the contract that contains the function currently being