3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-31 23:34:55 +00:00

Use nullptr.

This commit is contained in:
Bruce Mitchener 2018-02-12 14:05:55 +07:00
parent f01328c65f
commit 76eb7b9ede
625 changed files with 4639 additions and 4639 deletions

View file

@ -54,8 +54,8 @@ namespace nlsat {
void * m_data;
public:
enum kind { NULL_JST = 0, DECISION, CLAUSE, LAZY };
justification():m_data(TAG(void *, static_cast<void*>(0), NULL_JST)) { SASSERT(is_null()); }
justification(bool):m_data(TAG(void *, static_cast<void*>(0), DECISION)) { SASSERT(is_decision()); }
justification():m_data(TAG(void *, nullptr, NULL_JST)) { SASSERT(is_null()); }
justification(bool):m_data(TAG(void *, nullptr, DECISION)) { SASSERT(is_decision()); }
justification(clause * c):m_data(TAG(void *, c, CLAUSE)) { SASSERT(is_clause()); }
justification(lazy_justification * j):m_data(TAG(void *, j, LAZY)) { SASSERT(is_lazy()); }
kind get_kind() const { return static_cast<kind>(GET_TAG(m_data)); }