a16z / halmos

A symbolic testing tool for EVM smart contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better support for string comparison patterns

daejunpark opened this issue · comments

when a symbolic string is compared with different-sized strings, fixing the size of symbolic strings is not convenient, e.g.,:

function check_foo(string memory x) {
    if (keccak256(abi.encodePacked(x)) == keccak256(abi.encodePacked("ab"))) ...
    else if (keccak256(abi.encodePacked(x)) == keccak256(abi.encodePacked("cdef"))) ...

special handling of string type symbols or support for symbolic sized arrays is desired.