Skip to content

Commit

Permalink
Merge pull request #613 from smackers/fix-611
Browse files Browse the repository at this point in the history
Fixing discrepancy between bit-vector flag in llvm2bpl and Python script
  • Loading branch information
zvonimir authored Sep 4, 2020
2 parents eb3dee3 + ba28e59 commit 923e523
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/smack/SmackWarnings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ SmackWarnings::getUnsetFlags(RequiredFlagsT requiredFlags) {

std::string SmackWarnings::getFlagStr(UnsetFlagsT flags) {
std::string ret = "";
for (auto f : flags)
ret += ("--" + f->ArgStr.str() + " ");
for (auto f : flags) {
if (f->ArgStr.str() == "bit-precise")
ret += ("--integer-encoding=bit-vector ");
else
ret += ("--" + f->ArgStr.str() + " ");
}
return ret;
}

Expand Down

0 comments on commit 923e523

Please sign in to comment.