projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca3c6c4
)
fix to TNode assertion (which is too strict, given lax ordering requirements on stati...
author
Morgan Deters
<mdeters@gmail.com>
Sat, 1 Dec 2012 17:12:18 +0000
(17:12 +0000)
committer
Morgan Deters
<mdeters@gmail.com>
Sat, 1 Dec 2012 17:12:18 +0000
(17:12 +0000)
src/expr/node.h
patch
|
blob
|
history
diff --git
a/src/expr/node.h
b/src/expr/node.h
index a3b8853a092ad7efda686cce3c55cbbad7434d78..42e9f42535ce8e278760dcbad263f3e60afa8823 100644
(file)
--- a/
src/expr/node.h
+++ b/
src/expr/node.h
@@
-1022,7
+1022,8
@@
NodeTemplate<ref_count>::NodeTemplate(const expr::NodeValue* ev) :
if(ref_count) {
d_nv->inc();
} else {
- Assert(d_nv->d_rc > 0, "TNode constructed from NodeValue with rc == 0");
+ Assert(d_nv->d_rc > 0 || d_nv == &expr::NodeValue::s_null,
+ "TNode constructed from NodeValue with rc == 0");
}
}