mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix check for SMT query in UniversalCallback
This commit is contained in:
parent
e7fe310bc2
commit
72974adb92
@ -39,7 +39,7 @@ public:
|
||||
return [this](std::string const& _kind, std::string const& _data) -> ReadCallback::Result {
|
||||
if (_kind == ReadCallback::kindString(ReadCallback::Kind::ReadFile))
|
||||
return m_fileReader.readFile(_kind, _data);
|
||||
else if (_kind == ReadCallback::kindString(ReadCallback::Kind::SMTQuery))
|
||||
else if (_kind.rfind(ReadCallback::kindString(ReadCallback::Kind::SMTQuery), 0) == 0) // starts with SMTQuery
|
||||
return m_solver.solve(_kind, _data);
|
||||
solAssert(false, "Unknown callback kind.");
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user