diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-05-24 13:01:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 13:01:33 -0700 |
commit | 83b4e2ba719ddc410c125a7ef7ff49f39dc2a599 (patch) | |
tree | 329f0a3f91e9ba44368a9f435bd2c2b17f75c1e9 /src/theory/fp | |
parent | d12c7561624de9a2ae6cf10a7fa2bd9c97b2bc5e (diff) |
Fix compiler warnings (#1959)
Diffstat (limited to 'src/theory/fp')
-rw-r--r-- | src/theory/fp/kinds | 2 | ||||
-rw-r--r-- | src/theory/fp/theory_fp.h | 4 | ||||
-rw-r--r-- | src/theory/fp/theory_fp_rewriter.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/theory/fp/kinds b/src/theory/fp/kinds index b1170b42c..49ed92dee 100644 --- a/src/theory/fp/kinds +++ b/src/theory/fp/kinds @@ -8,7 +8,7 @@ theory THEORY_FP ::CVC4::theory::fp::TheoryFp "theory/fp/theory_fp.h" typechecker "theory/fp/theory_fp_type_rules.h" rewriter ::CVC4::theory::fp::TheoryFpRewriter "theory/fp/theory_fp_rewriter.h" -properties check propagate +properties check # Theory content goes here. diff --git a/src/theory/fp/theory_fp.h b/src/theory/fp/theory_fp.h index 6234ab8ad..832fc6442 100644 --- a/src/theory/fp/theory_fp.h +++ b/src/theory/fp/theory_fp.h @@ -43,11 +43,11 @@ class TheoryFp : public Theory { void preRegisterTerm(TNode node) override; void addSharedTerm(TNode node) override; - Node ppRewrite(TNode node); + Node ppRewrite(TNode node) override; void check(Effort) override; - bool needsCheckLastEffort() { return true; } + bool needsCheckLastEffort() override { return true; } Node getModelValue(TNode var) override; bool collectModelInfo(TheoryModel* m) override; diff --git a/src/theory/fp/theory_fp_rewriter.cpp b/src/theory/fp/theory_fp_rewriter.cpp index f502ad547..496066ebc 100644 --- a/src/theory/fp/theory_fp_rewriter.cpp +++ b/src/theory/fp/theory_fp_rewriter.cpp @@ -862,12 +862,12 @@ namespace constantFold { { Assert(node.getKind() == kind::ROUNDINGMODE_BITBLAST); - RoundingMode arg0(node[0].getConst<RoundingMode>()); BitVector value; #ifdef CVC4_USE_SYMFPU /* \todo fix the numbering of rounding modes so this doesn't need * to call symfpu at all and remove the dependency on fp_converter.h #1915 */ + RoundingMode arg0(node[0].getConst<RoundingMode>()); switch (arg0) { case roundNearestTiesToEven: |