mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Throw exception on unhandled cases in SMT-LIB Expression conversion
This commit is contained in:
parent
4b50f26834
commit
0fbeb3a69d
@ -358,8 +358,9 @@ namespace
|
||||
std::set<std::string> boolOperators{"and", "or", "not", "=", "<", ">", "<=", ">=",
|
||||
"=>"};
|
||||
sort = contains(boolOperators, op) ? SortProvider::boolSort : arguments.back().sort;
|
||||
return smtutil::Expression(op, std::move(arguments), std::move(sort));
|
||||
}
|
||||
return smtutil::Expression(op, std::move(arguments), std::move(sort));
|
||||
smtAssert(false, "Unhandled case in expression conversion");
|
||||
} else {
|
||||
// check for const array
|
||||
if (_subExpr.size() == 2 and !isAtom(_subExpr[0]))
|
||||
|
Loading…
Reference in New Issue
Block a user