mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 05:48:44 +00:00
use obj_ref_map
This commit is contained in:
parent
9ea01d521a
commit
3a5c30bd9b
|
@ -217,6 +217,8 @@ theory_seq::theory_seq(ast_manager& m):
|
||||||
m_new_solution(false),
|
m_new_solution(false),
|
||||||
m_new_propagation(false),
|
m_new_propagation(false),
|
||||||
m_len_prop_lvl(-1),
|
m_len_prop_lvl(-1),
|
||||||
|
m_overlap(m),
|
||||||
|
m_overlap2(m),
|
||||||
m_mk_aut(m) {
|
m_mk_aut(m) {
|
||||||
m_prefix = "seq.p.suffix";
|
m_prefix = "seq.p.suffix";
|
||||||
m_suffix = "seq.s.prefix";
|
m_suffix = "seq.s.prefix";
|
||||||
|
|
|
@ -29,6 +29,7 @@ Revision History:
|
||||||
#include "math/automata/automaton.h"
|
#include "math/automata/automaton.h"
|
||||||
#include "ast/rewriter/seq_rewriter.h"
|
#include "ast/rewriter/seq_rewriter.h"
|
||||||
#include "util/union_find.h"
|
#include "util/union_find.h"
|
||||||
|
#include "util/obj_ref_hashtable.h"
|
||||||
|
|
||||||
namespace smt {
|
namespace smt {
|
||||||
|
|
||||||
|
@ -301,8 +302,8 @@ namespace smt {
|
||||||
unsigned m_eq_id;
|
unsigned m_eq_id;
|
||||||
th_union_find m_find;
|
th_union_find m_find;
|
||||||
|
|
||||||
obj_map<expr, unsigned_vector> m_overlap;
|
obj_ref_map<ast_manager, expr, unsigned_vector> m_overlap;
|
||||||
obj_map<expr, unsigned_vector> m_overlap2;
|
obj_ref_map<ast_manager, expr, unsigned_vector> m_overlap2;
|
||||||
obj_map<enode, obj_map<enode, int>> m_len_offset;
|
obj_map<enode, obj_map<enode, int>> m_len_offset;
|
||||||
int m_len_prop_lvl;
|
int m_len_prop_lvl;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class obj_ref_map {
|
||||||
M& m;
|
M& m;
|
||||||
obj_map<Key, Value> m_table;
|
obj_map<Key, Value> m_table;
|
||||||
public:
|
public:
|
||||||
typedef typename obj_map<Key, Value> iterator;
|
typedef typename obj_map<Key, Value>::iterator iterator;
|
||||||
typedef Key key;
|
typedef Key key;
|
||||||
typedef Value value;
|
typedef Value value;
|
||||||
typedef typename obj_map<Key, Value>::key_data key_data;
|
typedef typename obj_map<Key, Value>::key_data key_data;
|
||||||
|
|
Loading…
Reference in a new issue