| 81 | namespace smt { |
| 82 | |
| 83 | expr::expr(Z3_ast ast) noexcept : ptr((uintptr_t)ast) { |
| 84 | static_assert(sizeof(Z3_ast) == sizeof(uintptr_t)); |
| 85 | assert(isZ3Ast() && isValid()); |
| 86 | incRef(); |
| 87 | #if DEBUG_Z3_RC |
| 88 | cout << "[Z3RC] newObj " << ast << ' ' << *this << '\n'; |
| 89 | #endif |
| 90 | } |
| 91 | |
| 92 | bool expr::isZ3Ast() const { |
| 93 | return true; |