Verification; fix division by zero false negative when value might be uninitialized
This commit is contained in:
parent
3ada7672f3
commit
35a8cd8418
|
@ -116,6 +116,11 @@ namespace ExprEngine {
|
||||||
class UninitValue: public Value {
|
class UninitValue: public Value {
|
||||||
public:
|
public:
|
||||||
UninitValue() : Value("?", ValueType::UninitValue) {}
|
UninitValue() : Value("?", ValueType::UninitValue) {}
|
||||||
|
virtual bool isEqual(DataBase *dataBase, int value) const {
|
||||||
|
(void)dataBase;
|
||||||
|
(void)value;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
bool isUninit() const OVERRIDE {
|
bool isUninit() const OVERRIDE {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue