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:
parent
852f53d6a6
commit
1e8c04be8e
5 changed files with 16 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue