diff options
| author | Julian Büning <julian.buening@comsys.rwth-aachen.de> | 2023-06-11 15:45:26 +0200 |
|---|---|---|
| committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2023-06-11 19:19:28 +0100 |
| commit | dab1c0fa376771be1c3cdd5b8d564484755907dd (patch) | |
| tree | 11182051745c007adcf1b2e0db976d261520f927 /lib/Core/SpecialFunctionHandler.h | |
| parent | f3a4b343b09a431f708e74870ce1a1021c94c93a (diff) | |
| download | klee-dab1c0fa376771be1c3cdd5b8d564484755907dd.tar.gz | |
SpecialFunctionHandler: use std::array for handlerInfo
Diffstat (limited to 'lib/Core/SpecialFunctionHandler.h')
| -rw-r--r-- | lib/Core/SpecialFunctionHandler.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/Core/SpecialFunctionHandler.h b/lib/Core/SpecialFunctionHandler.h index 230d3929..3fdbf8f8 100644 --- a/lib/Core/SpecialFunctionHandler.h +++ b/lib/Core/SpecialFunctionHandler.h @@ -12,7 +12,6 @@ #include "klee/Config/config.h" -#include <iterator> #include <map> #include <vector> #include <string> @@ -48,36 +47,6 @@ namespace klee { bool doNotOverride; /// Intrinsic should not be used if already defined }; - // const_iterator to iterate over stored HandlerInfo - // FIXME: Implement >, >=, <=, < operators - class const_iterator { - using iterator_category = std::random_access_iterator_tag; - using value_type = HandlerInfo; - using difference_type = ptrdiff_t; - using pointer = void; - using reference = void; - - private: - value_type *base; - int index; - - public: - const_iterator(value_type* hi) : base(hi), index(0) {}; - const_iterator& operator++(); // pre-fix - const_iterator operator++(int); // post-fix - const value_type& operator*() { return base[index];} - const value_type* operator->() { return &(base[index]);} - const value_type& operator[](int i) { return base[i];} - bool operator==(const_iterator& rhs) { return (rhs.base + rhs.index) == (this->base + this->index);} - bool operator!=(const_iterator& rhs) { return !(*this == rhs);} - }; - - static const_iterator begin(); - static const_iterator end(); - static int size(); - - - public: SpecialFunctionHandler(Executor &_executor); |
