mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 00:05:46 +00:00
move to util
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6d4bd37e15
commit
decd69ac73
3 changed files with 32 additions and 34 deletions
|
@ -67,20 +67,14 @@ inline bool depth_leq_one(app * n) {
|
|||
|
||||
template<typename AST>
|
||||
void dec_ref(ast_manager & m, obj_hashtable<AST> & s) {
|
||||
typename obj_hashtable<AST>::iterator it = s.begin();
|
||||
typename obj_hashtable<AST>::iterator end = s.end();
|
||||
for (;it != end; ++it) {
|
||||
m.dec_ref(*it);
|
||||
}
|
||||
for (auto a : s)
|
||||
m.dec_ref(a);
|
||||
}
|
||||
|
||||
template<typename AST>
|
||||
void inc_ref(ast_manager & m, obj_hashtable<AST> & s) {
|
||||
typename obj_hashtable<AST>::iterator it = s.begin();
|
||||
typename obj_hashtable<AST>::iterator end = s.end();
|
||||
for (;it != end; ++it) {
|
||||
m.inc_ref(*it);
|
||||
}
|
||||
for (auto a : s)
|
||||
m.inc_ref(a);
|
||||
}
|
||||
|
||||
// -----------------------------------
|
||||
|
@ -174,5 +168,6 @@ void flatten_or(expr_ref_vector& result);
|
|||
|
||||
void flatten_or(expr* fml, expr_ref_vector& result);
|
||||
|
||||
bool has_uninterpreted(ast_manager& m, expr* e);
|
||||
|
||||
#endif /* AST_UTIL_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue