diff options
Diffstat (limited to 'src/theory')
-rw-r--r-- | src/theory/booleans/type_enumerator.h | 2 | ||||
-rw-r--r-- | src/theory/fp/type_enumerator.h | 4 | ||||
-rw-r--r-- | src/theory/quantifiers/ho_trigger.h | 2 | ||||
-rw-r--r-- | src/theory/quantifiers/quant_conflict_find.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/theory/booleans/type_enumerator.h b/src/theory/booleans/type_enumerator.h index 32c6bae42..ac0435442 100644 --- a/src/theory/booleans/type_enumerator.h +++ b/src/theory/booleans/type_enumerator.h @@ -38,7 +38,7 @@ class BooleanEnumerator : public TypeEnumeratorBase<BooleanEnumerator> { type.getConst<TypeConstant>() == BOOLEAN_TYPE); } - Node operator*() { + Node operator*() override { switch(d_value) { case FALSE: return NodeManager::currentNM()->mkConst(false); diff --git a/src/theory/fp/type_enumerator.h b/src/theory/fp/type_enumerator.h index 0ae6462bc..4b243c224 100644 --- a/src/theory/fp/type_enumerator.h +++ b/src/theory/fp/type_enumerator.h @@ -48,7 +48,7 @@ class FloatingPointEnumerator return NodeManager::currentNM()->mkConst(createFP()); } - FloatingPointEnumerator& operator++() { + FloatingPointEnumerator& operator++() override { const FloatingPoint current(createFP()); if (current.isNaN()) { d_enumerationComplete = true; @@ -92,7 +92,7 @@ class RoundingModeEnumerator return NodeManager::currentNM()->mkConst(d_rm); } - RoundingModeEnumerator& operator++() { + RoundingModeEnumerator& operator++() override { switch (d_rm) { case roundNearestTiesToEven: d_rm = roundTowardPositive; diff --git a/src/theory/quantifiers/ho_trigger.h b/src/theory/quantifiers/ho_trigger.h index 4db3a660f..87f7fe07f 100644 --- a/src/theory/quantifiers/ho_trigger.h +++ b/src/theory/quantifiers/ho_trigger.h @@ -167,7 +167,7 @@ class HigherOrderTrigger : public Trigger * matching ground terms to function applications with variable heads. * See examples (EX1)-(EX3) above. */ - virtual bool sendInstantiation(InstMatch& m); + bool sendInstantiation(InstMatch& m) override; private: //-------------------- current information about the match diff --git a/src/theory/quantifiers/quant_conflict_find.cpp b/src/theory/quantifiers/quant_conflict_find.cpp index 95f8e3093..23e2ad721 100644 --- a/src/theory/quantifiers/quant_conflict_find.cpp +++ b/src/theory/quantifiers/quant_conflict_find.cpp @@ -34,7 +34,7 @@ namespace CVC4 { namespace theory { namespace quantifiers { -QuantInfo::QuantInfo() : d_unassigned_nvar(0), d_mg(NULL), d_una_index(0) {} +QuantInfo::QuantInfo() : d_unassigned_nvar(0), d_una_index(0), d_mg(nullptr) {} QuantInfo::~QuantInfo() { delete d_mg; |