diff options
author | Timotej Kapus <timotej.kapus13@imperial.ac.uk> | 2018-03-16 10:42:12 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-05-09 12:19:53 +0100 |
commit | 13b5bcbfd933461526f08c6ad759af9e129d6764 (patch) | |
tree | fb3eb848493ccf697f8193aeae81d098874dc340 /include | |
parent | e0aff85c24c039606d82d209617a1334a9ed21e2 (diff) | |
download | klee-13b5bcbfd933461526f08c6ad759af9e129d6764.tar.gz |
Improve handling of constant array in Z3
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/util/ExprUtil.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/klee/util/ExprUtil.h b/include/klee/util/ExprUtil.h index a81c299f..0860d0a5 100644 --- a/include/klee/util/ExprUtil.h +++ b/include/klee/util/ExprUtil.h @@ -10,6 +10,7 @@ #ifndef KLEE_EXPRUTIL_H #define KLEE_EXPRUTIL_H +#include "klee/util/ExprVisitor.h" #include <vector> namespace klee { @@ -38,6 +39,13 @@ namespace klee { InputIterator end, std::vector<const Array*> &results); + class ConstantArrayFinder : public ExprVisitor { + protected: + ExprVisitor::Action visitRead(const ReadExpr &re); + + public: + std::set<const Array *> results; + }; } #endif |