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

fixing templates for broken windows hash functions

This commit is contained in:
Ken McMillan 2013-12-15 17:31:46 -08:00
parent 852f53d6a6
commit 1e8c04be8e
5 changed files with 16 additions and 21 deletions

View file

@ -619,14 +619,7 @@ public:
return 1;
}
// 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){
void symbols_out_of_scope_rec(hash_set<ast> &memo, hash_set<symb> &symb_memo, int frame, const ast &t){
if(memo.find(t) != memo.end())
return;
memo.insert(t);
@ -645,7 +638,7 @@ public:
void symbols_out_of_scope(int frame, const ast &t){
hash_set<ast> memo;
hash_set<symb,symb_hash> symb_memo;
hash_set<symb> symb_memo;
symbols_out_of_scope_rec(memo,symb_memo,frame,t);
}