Skip to content

Commit

Permalink
fixing some clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Suda committed Oct 3, 2017
1 parent 5ef6fc4 commit d4f60e0
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Indexing/ResultSubstitution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ResultSubstitution
// static ResultSubstitutionSP fromSubstitution(EGSubstitution* s,
// int queryBank, int resultBank);
#if VDEBUG
virtual vstring toString(bool deref=false){ NOT_IMPLEMENTED; }
virtual vstring toString(){ NOT_IMPLEMENTED; }
#endif
};

Expand Down
3 changes: 1 addition & 2 deletions Indexing/SubstitutionTree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ class SubstitutionTree
public:
LeafIterator(SubstitutionTree* st)
: _nextRootPtr(st->_nodes.begin()), _afterLastRootPtr(st->_nodes.end()),
_nodeIterators(8), tag(st->tag) {}
_nodeIterators(8) {}
bool hasNext();
Leaf* next()
{
Expand All @@ -650,7 +650,6 @@ class SubstitutionTree
Node** _afterLastRootPtr;
Node* _curr;
Stack<NodeIterator> _nodeIterators;
bool tag;
};

typedef pair<pair<LeafData*, ResultSubstitutionSP>,UnificationConstraintStackSP> QueryResult;
Expand Down
4 changes: 2 additions & 2 deletions Inferences/CTFwSubsAndRes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class CTFwSubsAndRes
CTFwSubsAndRes(bool subsumptionResolution)
: _subsumptionResolution(subsumptionResolution) {}

void attach(SaturationAlgorithm* salg);
void detach();
void attach(SaturationAlgorithm* salg) override;
void detach() override;
bool perform(Clause* cl, Clause*& replacement, ClauseIterator& premises) override;
private:
Clause* buildSResClause(Clause* cl, unsigned resolvedIndex, Clause* premise);
Expand Down
4 changes: 2 additions & 2 deletions Inferences/ForwardDemodulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class ForwardDemodulation
CLASS_NAME(ForwardDemodulation);
USE_ALLOCATOR(ForwardDemodulation);

void attach(SaturationAlgorithm* salg);
void detach();
void attach(SaturationAlgorithm* salg) override;
void detach() override;
bool perform(Clause* cl, Clause*& replacement, ClauseIterator& premises) override;
private:
bool _preorderedOnly;
Expand Down
4 changes: 2 additions & 2 deletions Inferences/ForwardLiteralRewriting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class ForwardLiteralRewriting
CLASS_NAME(ForwardLiteralRewriting);
USE_ALLOCATOR(ForwardLiteralRewriting);

void attach(SaturationAlgorithm* salg);
void detach();
void attach(SaturationAlgorithm* salg) override;
void detach() override;
bool perform(Clause* cl, Clause*& replacement, ClauseIterator& premises) override;
private:
RewriteRuleIndex* _index;
Expand Down
4 changes: 2 additions & 2 deletions Inferences/ForwardSubsumptionAndResolution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class ForwardSubsumptionAndResolution
ForwardSubsumptionAndResolution(bool subsumptionResolution=true)
: _subsumptionResolution(subsumptionResolution) {}

void attach(SaturationAlgorithm* salg);
void detach();
void attach(SaturationAlgorithm* salg) override;
void detach() override;
bool perform(Clause* cl, Clause*& replacement, ClauseIterator& premises) override;

static Clause* generateSubsumptionResolutionClause(Clause* cl, Literal* lit, Clause* baseClause);
Expand Down
4 changes: 2 additions & 2 deletions Inferences/GlobalSubsumption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class GlobalSubsumption
*/
GlobalSubsumption(const Options& opts, GroundingIndex* idx) : GlobalSubsumption(opts) { _index = idx; }

void attach(SaturationAlgorithm* salg);
void detach();
void attach(SaturationAlgorithm* salg) override;
void detach() override;
bool perform(Clause* cl, Clause*& replacement, ClauseIterator& premises) override;

Clause* perform(Clause* cl, Stack<Unit*>& prems);
Expand Down
4 changes: 2 additions & 2 deletions Inferences/HyperSuperposition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class HyperSuperposition

HyperSuperposition() : _index(0) {}

void attach(SaturationAlgorithm* salg);
void detach();
void attach(SaturationAlgorithm* salg) override;
void detach() override;

Clause* generateClause(Clause* queryCl, Literal* queryLit, SLQueryResult res, Limits* limits=0);
ClauseIterator generateClauses(Clause* premise);
Expand Down
2 changes: 1 addition & 1 deletion Kernel/ELiteralSelector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ELiteralSelector

bool isBGComplete() const override { return true; }
protected:
void doSelection(Clause* c, unsigned eligible);
void doSelection(Clause* c, unsigned eligible) override;

private:
LiteralList* getMaximalsInOrder(Clause* c, unsigned eligible);
Expand Down
2 changes: 1 addition & 1 deletion Kernel/SpassLiteralSelector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SpassLiteralSelector

bool isBGComplete() const override { return true; }
protected:
void doSelection(Clause* c, unsigned eligible);
void doSelection(Clause* c, unsigned eligible) override;

private:
LiteralList* getMaximalsInOrder(Clause* c, unsigned eligible);
Expand Down
2 changes: 1 addition & 1 deletion Shell/SimplifyProver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ void SimplifyProver::buildDistinct()
Context context = (Context)_isaved.pop();
unsigned length = (unsigned)_isaved.pop();
args.ensure(length);
for (unsigned i = length-1;i >= 0;i--) {
for (int i = length-1;i >= 0;i--) {
args[i] = _tsaved.pop();
}
if (length == 2) {
Expand Down

0 comments on commit d4f60e0

Please sign in to comment.