Skip to content

Commit

Permalink
Header cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
blishko committed Feb 17, 2024
1 parent 1e969d4 commit ed30ea3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/ChcInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
#include "ChcSystem.h"
#include "Normalizer.h"
#include "Options.h"
#include "osmt_parser.h"
#include "proofs/Term.h"
#include "transformers/Transformer.h"
#include <engine/Engine.h> // TODO: remove this and create an engine factory

#include <memory>

class LetBinder {
Expand Down
1 change: 0 additions & 1 deletion src/Witnesses.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "TransitionSystem.h"
#include "graph/ChcGraph.h"
#include "osmt_solver.h"
#include "proofs/Term.h"
#include "Normalizer.h"
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions src/engine/IMC.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "Engine.h"
#include "TransitionSystem.h"
#include "osmt_solver.h"

class IMC : public Engine {
Logic & logic;
Expand Down
2 changes: 2 additions & 0 deletions src/engine/TPA.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include "Engine.h"

#include "osmt_solver.h"

class TransitionSystem;

enum class ReachabilityResult { REACHABLE, UNREACHABLE };
Expand Down
5 changes: 3 additions & 2 deletions src/transformers/SingleLoopTransformation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ SingleLoopTransformation::WitnessBackTranslator::translateInvariant(PTRef induct
return ValidityWitness(std::move(vertexInvariants));
}

std::set<PTRef> SingleLoopTransformation::WitnessBackTranslator::getVarsForVertex(SymRef vertex) const {
std::set<PTRef> vars;
std::unordered_set<PTRef, PTRefHash>
SingleLoopTransformation::WitnessBackTranslator::getVarsForVertex(SymRef vertex) const {
std::unordered_set<PTRef, PTRefHash> vars;
for (auto const & entry : positionVarMap) {
if (entry.first.vertex == vertex) { vars.insert(entry.second); }
}
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/SingleLoopTransformation.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SingleLoopTransformation {

ErrorOr<ValidityWitness> translateInvariant(PTRef inductiveInvariant);

std::set<PTRef> getVarsForVertex(SymRef vertex) const;
std::unordered_set<PTRef, PTRefHash> getVarsForVertex(SymRef vertex) const;
};

// Main method
Expand Down

0 comments on commit ed30ea3

Please sign in to comment.