projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2576297
)
Allow printing of null node in let binder (#5523)
author
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Wed, 25 Nov 2020 06:30:56 +0000
(
00:30
-0600)
committer
GitHub
<noreply@github.com>
Wed, 25 Nov 2020 06:30:56 +0000
(22:30 -0800)
src/printer/let_binding.cpp
patch
|
blob
|
history
diff --git
a/src/printer/let_binding.cpp
b/src/printer/let_binding.cpp
index 439037b64d6242c3f14dbb3218e6df392b3f23cd..2efc98318313ab33ca6db3be42a3fffbd2af91a0 100644
(file)
--- a/
src/printer/let_binding.cpp
+++ b/
src/printer/let_binding.cpp
@@
-30,8
+30,7
@@
uint32_t LetBinding::getThreshold() const { return d_thresh; }
void LetBinding::process(Node n)
{
- Assert(!n.isNull());
- if (d_thresh == 0)
+ if (n.isNull() || d_thresh == 0)
{
// value of 0 means do not introduce let
return;
@@
-42,7
+41,6
@@
void LetBinding::process(Node n)
void LetBinding::letify(Node n, std::vector<Node>& letList)
{
- Assert(!n.isNull());
// first, push the context
pushScope();
// process the node