diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-07-24 10:05:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 10:05:20 -0500 |
commit | 892718a5925075ad9024e2183060c4c25d2716e0 (patch) | |
tree | 0b1c4b6049e7f9d9a4de775671987fe0ef82cdbf /src/theory | |
parent | afe40162490ac54e1741e80d43496268ae76201d (diff) |
Fix null node when using no-strings-lazy-pp (#3114)
Diffstat (limited to 'src/theory')
-rw-r--r-- | src/theory/strings/theory_strings_preprocess.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/theory/strings/theory_strings_preprocess.cpp b/src/theory/strings/theory_strings_preprocess.cpp index e3634f84f..d1eef656b 100644 --- a/src/theory/strings/theory_strings_preprocess.cpp +++ b/src/theory/strings/theory_strings_preprocess.cpp @@ -607,6 +607,11 @@ Node StringsPreprocess::simplify( Node t, std::vector< Node > &new_nodes ) { } } } + else + { + Trace("strings-preprocess-debug") + << "Return " << retNode << " unchanged" << std::endl; + } return retNode; } @@ -615,7 +620,7 @@ Node StringsPreprocess::simplifyRec( Node t, std::vector< Node > & new_nodes, st if( it!=visited.end() ){ return it->second; }else{ - Node retNode; + Node retNode = t; if( t.getNumChildren()==0 ){ retNode = simplify( t, new_nodes ); }else if( t.getKind()!=kind::FORALL ){ |