summaryrefslogtreecommitdiff
path: root/src/theory/strings/regexp_operation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/strings/regexp_operation.cpp')
-rw-r--r--src/theory/strings/regexp_operation.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/theory/strings/regexp_operation.cpp b/src/theory/strings/regexp_operation.cpp
index 0520ec88a..0d6b6c7fe 100644
--- a/src/theory/strings/regexp_operation.cpp
+++ b/src/theory/strings/regexp_operation.cpp
@@ -288,7 +288,9 @@ int RegExpOpr::derivativeS( Node r, CVC4::String c, Node &retNode ) {
if( d_deriv_cache.find( dv ) != d_deriv_cache.end() ) {
retNode = d_deriv_cache[dv].first;
ret = d_deriv_cache[dv].second;
- } else if( c.isEmptyString() ) {
+ }
+ else if (c.empty())
+ {
Node expNode;
ret = delta( r, expNode );
if(ret == 0) {
@@ -536,7 +538,9 @@ Node RegExpOpr::derivativeSingle( Node r, CVC4::String c ) {
NodeManager* nm = NodeManager::currentNM();
if( d_dv_cache.find( dv ) != d_dv_cache.end() ) {
retNode = d_dv_cache[dv];
- } else if( c.isEmptyString() ){
+ }
+ else if (c.empty())
+ {
Node exp;
int tmp = delta( r, exp );
if(tmp == 0) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback