3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-02 01:13:18 +00:00

removing address dependencies

This commit is contained in:
Ken McMillan 2013-12-15 15:49:06 -08:00
parent eee2d7af94
commit ebc8a43fe3
10 changed files with 100 additions and 7 deletions

View file

@ -619,7 +619,14 @@ public:
return 1;
}
void symbols_out_of_scope_rec(hash_set<ast> &memo, hash_set<symb> &symb_memo, int frame, const ast &t){
// We only use this for debugging purposes
struct symb_hash {
size_t operator()(const symb &s) const {
return (size_t) s;
}
};
void symbols_out_of_scope_rec(hash_set<ast> &memo, hash_set<symb,symb_hash> &symb_memo, int frame, const ast &t){
if(memo.find(t) != memo.end())
return;
memo.insert(t);
@ -638,7 +645,7 @@ public:
void symbols_out_of_scope(int frame, const ast &t){
hash_set<ast> memo;
hash_set<symb> symb_memo;
hash_set<symb,symb_hash> symb_memo;
symbols_out_of_scope_rec(memo,symb_memo,frame,t);
}