From 6bd5d045f2cb19331feb34d7ea74f748c5568a91 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 18 Oct 2018 12:41:07 +0100 Subject: Clean-up headers Remove unneeded headers from include files --- include/klee/ArrayExprOptimizer.h | 27 +++++---------------------- include/klee/ArrayExprRewriter.h | 25 ++++++++++--------------- include/klee/AssignmentGenerator.h | 12 +++--------- 3 files changed, 18 insertions(+), 46 deletions(-) (limited to 'include') diff --git a/include/klee/ArrayExprOptimizer.h b/include/klee/ArrayExprOptimizer.h index 4836241d..aafe1d27 100644 --- a/include/klee/ArrayExprOptimizer.h +++ b/include/klee/ArrayExprOptimizer.h @@ -10,28 +10,15 @@ #ifndef KLEE_EXPROPTIMIZER_H #define KLEE_EXPROPTIMIZER_H -#include -#include +#include #include -#include +#include +#include #include #include #include "Expr.h" -#include "ExprBuilder.h" -#include "Constraints.h" -#include "Internal/Support/ErrorHandling.h" -#include "util/ArrayExprVisitor.h" -#include "util/Assignment.h" #include "util/Ref.h" -#include "klee/AssignmentGenerator.h" -#include "klee/ExecutionState.h" -#include "klee/Config/Version.h" - -#include "llvm/Support/CommandLine.h" - -#include -#include namespace klee { @@ -42,10 +29,7 @@ enum ArrayOptimizationType { VALUE }; -class Expr; -template class ref; typedef std::map>> array2idx_ty; -typedef std::vector v_arr_ty; typedef std::map, std::vector>> mapIndexOptimizedExpr_ty; class ExprOptimizer { @@ -62,9 +46,8 @@ public: ref optimizeExpr(const ref &e, bool valueOnly); private: - bool - computeIndexes(array2idx_ty &arrays, const ref &e, - std::map, std::vector>> &idx_valIdx) const; + bool computeIndexes(array2idx_ty &arrays, const ref &e, + mapIndexOptimizedExpr_ty &idx_valIdx) const; ref getSelectOptExpr( const ref &e, std::vector &reads, diff --git a/include/klee/ArrayExprRewriter.h b/include/klee/ArrayExprRewriter.h index 3828262a..2b6c78b4 100644 --- a/include/klee/ArrayExprRewriter.h +++ b/include/klee/ArrayExprRewriter.h @@ -10,31 +10,26 @@ #ifndef LIB_EXPRREWRITER_H_ #define LIB_EXPRREWRITER_H_ -#include "klee/Expr.h" -#include "klee/CommandLine.h" -#include "klee/Constraints.h" -#include "klee/Internal/Support/ErrorHandling.h" -#include "klee/util/ArrayExprVisitor.h" -#include "klee/util/Assignment.h" -#include "klee/util/Ref.h" -#include "klee/AssignmentGenerator.h" +#include +#include +#include + +#include "Expr.h" +#include "util/Ref.h" namespace klee { -typedef std::vector v_arr_ty; typedef std::map>> array2idx_ty; typedef std::map, std::vector>> mapIndexOptimizedExpr_ty; class ExprRewriter { public: - static ref - createOptExpr(const ref &e, const array2idx_ty &arrays, - const std::map, std::vector>> &idx_valIdx); + static ref createOptExpr(const ref &e, const array2idx_ty &arrays, + const mapIndexOptimizedExpr_ty &idx_valIdx); private: - static ref - rewrite(const ref &e, const array2idx_ty &arrays, - const std::map, std::vector>> &idx_valIdx); + static ref rewrite(const ref &e, const array2idx_ty &arrays, + const mapIndexOptimizedExpr_ty &idx_valIdx); static ref concatenateOrExpr(const std::vector>::const_iterator begin, diff --git a/include/klee/AssignmentGenerator.h b/include/klee/AssignmentGenerator.h index 96209498..404c8632 100644 --- a/include/klee/AssignmentGenerator.h +++ b/include/klee/AssignmentGenerator.h @@ -10,20 +10,14 @@ #ifndef KLEE_ASSIGNMENTGENERATOR_H #define KLEE_ASSIGNMENTGENERATOR_H -#include -#include -#include -#include -#include #include #include "Expr.h" -#include "Constraints.h" -#include "Internal/Support/ErrorHandling.h" -#include "util/ArrayExprVisitor.h" -#include "util/Assignment.h" #include "util/Ref.h" +namespace klee { +class Assignment; +} /* namespace klee */ namespace klee { -- cgit 1.4.1