mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not create VCs for underoverflow by default for Sol >=0.8
This commit is contained in:
@@ -40,9 +40,16 @@ map<string, TargetType> const ModelCheckerTargets::targetStrings{
|
||||
std::optional<ModelCheckerTargets> ModelCheckerTargets::fromString(string const& _targets)
|
||||
{
|
||||
set<TargetType> chosenTargets;
|
||||
if (_targets == "default")
|
||||
if (_targets == "default" || _targets == "all")
|
||||
{
|
||||
bool all = _targets == "all";
|
||||
for (auto&& v: targetStrings | ranges::views::values)
|
||||
{
|
||||
if (!all && (v == TargetType::Underflow || v == TargetType::Overflow))
|
||||
continue;
|
||||
chosenTargets.insert(v);
|
||||
}
|
||||
}
|
||||
else
|
||||
for (auto&& t: _targets | ranges::views::split(',') | ranges::to<vector<string>>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user