Verification; fix division by zero false negative when value might be uninitialized

This commit is contained in:
Daniel Marjamäki 2020-01-09 19:40:03 +01:00
parent 3ada7672f3
commit 35a8cd8418
1 changed files with 5 additions and 0 deletions

View File

@ -116,6 +116,11 @@ namespace ExprEngine {
class UninitValue: public Value {
public:
UninitValue() : Value("?", ValueType::UninitValue) {}
virtual bool isEqual(DataBase *dataBase, int value) const {
(void)dataBase;
(void)value;
return true;
}
bool isUninit() const OVERRIDE {
return true;
}