mirror of
https://github.com/Z3Prover/z3
synced 2025-08-17 08:42:15 +00:00
enable ranges for bit-vectors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
72d140334f
commit
c63ad2e834
7 changed files with 84 additions and 4 deletions
|
@ -144,6 +144,14 @@ namespace smt {
|
|||
literal const * end_literals() const {
|
||||
return reinterpret_cast<literal const *>(m_data + end_lits());
|
||||
}
|
||||
|
||||
class literal_iterator {
|
||||
watch_list const& w;
|
||||
public:
|
||||
literal_iterator(watch_list const& w): w(w) {}
|
||||
literal const* begin() const { return w.begin_literals(); }
|
||||
literal const* end() const { return w.end_literals(); }
|
||||
};
|
||||
|
||||
literal * find_literal(literal const & l) {
|
||||
return std::find(begin_literals(), end_literals(), l);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue