diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-06-24 01:40:17 -0400 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-06-24 01:42:26 -0400 |
commit | 7736abe3b9c898033737865f033cc5cfe0f7922f (patch) | |
tree | 8a1903164e4300b606beb9b64d663f3d2946709c /src/theory/strings/regexp_operation.cpp | |
parent | c948e9517b7b5f0bacb055ab2ad320f889c3fb49 (diff) |
Squashed commit of the following:
* Fix a bug in intersection
* merging...
* add delayed length lemmas
* PreRegisterTerm is changed.
* Bug fix for string-opt2
* PreRegisterTerm is changed.
* add delayed length lemmas
* Bug fix for string-opt2
* PreRegisterTerm is changed.
* Bug fix for string-opt2
* PreRegisterTerm is changed.
* Bug fix for string-opt2
* PreRegisterTerm is changed.
Diffstat (limited to 'src/theory/strings/regexp_operation.cpp')
-rw-r--r-- | src/theory/strings/regexp_operation.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/theory/strings/regexp_operation.cpp b/src/theory/strings/regexp_operation.cpp index 18df0f759..092c7e166 100644 --- a/src/theory/strings/regexp_operation.cpp +++ b/src/theory/strings/regexp_operation.cpp @@ -1220,6 +1220,17 @@ Node RegExpOpr::intersectInternal( Node r1, Node r2, std::map< unsigned, std::se cset.clear(); firstChars(r1, cset, vset); std::vector< Node > vec_nodes; + Node delta_exp; + int flag = delta(r1, delta_exp); + int flag2 = delta(r2, delta_exp); + if(flag != 2 && flag2 != 2) { + if(flag == 1 && flag2 == 1) { + vec_nodes.push_back(d_emptySingleton); + } else { + //TODO + spflag = true; + } + } for(std::set<unsigned>::const_iterator itr = cset.begin(); itr != cset.end(); itr++) { CVC4::String c( CVC4::String::convertUnsignedIntToChar(*itr) ); |