3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-14 21:08:46 +00:00

use obj_ref_map

This commit is contained in:
Thai Trinh 2017-12-08 18:36:20 +08:00
parent 9ea01d521a
commit 3a5c30bd9b
3 changed files with 6 additions and 3 deletions

View file

@ -217,6 +217,8 @@ theory_seq::theory_seq(ast_manager& m):
m_new_solution(false),
m_new_propagation(false),
m_len_prop_lvl(-1),
m_overlap(m),
m_overlap2(m),
m_mk_aut(m) {
m_prefix = "seq.p.suffix";
m_suffix = "seq.s.prefix";

View file

@ -29,6 +29,7 @@ Revision History:
#include "math/automata/automaton.h"
#include "ast/rewriter/seq_rewriter.h"
#include "util/union_find.h"
#include "util/obj_ref_hashtable.h"
namespace smt {
@ -301,8 +302,8 @@ namespace smt {
unsigned m_eq_id;
th_union_find m_find;
obj_map<expr, unsigned_vector> m_overlap;
obj_map<expr, unsigned_vector> m_overlap2;
obj_ref_map<ast_manager, expr, unsigned_vector> m_overlap;
obj_ref_map<ast_manager, expr, unsigned_vector> m_overlap2;
obj_map<enode, obj_map<enode, int>> m_len_offset;
int m_len_prop_lvl;

View file

@ -26,7 +26,7 @@ class obj_ref_map {
M& m;
obj_map<Key, Value> m_table;
public:
typedef typename obj_map<Key, Value> iterator;
typedef typename obj_map<Key, Value>::iterator iterator;
typedef Key key;
typedef Value value;
typedef typename obj_map<Key, Value>::key_data key_data;