Do not create VCs for underoverflow by default for Sol >=0.8

This commit is contained in:
Leo Alt
2021-08-09 14:12:31 +02:00
parent 6ec711b2f0
commit ee6285d6d7
28 changed files with 341 additions and 329 deletions
+8 -1
View File
@@ -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>>())
{