From: Tim King Date: Tue, 14 Nov 2017 07:25:59 +0000 (-0800) Subject: Initializes RegExpOpr::d_char_start and d_char_end. (#1359) X-Git-Tag: cvc5-1.0.0~5480 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afc3de987e3416e1987bc6be9aa0b0adb7fd63ab;p=cvc5.git Initializes RegExpOpr::d_char_start and d_char_end. (#1359) --- diff --git a/src/theory/strings/regexp_operation.cpp b/src/theory/strings/regexp_operation.cpp index a98a2a0ef..a8fd08792 100644 --- a/src/theory/strings/regexp_operation.cpp +++ b/src/theory/strings/regexp_operation.cpp @@ -24,24 +24,25 @@ namespace theory { namespace strings { RegExpOpr::RegExpOpr() - : d_lastchar( options::stdASCII()? '\x7f' : '\xff' ), - RMAXINT( LONG_MAX ) -{ - d_emptyString = NodeManager::currentNM()->mkConst( ::CVC4::String("") ); - d_true = NodeManager::currentNM()->mkConst( true ); - d_false = NodeManager::currentNM()->mkConst( false ); - d_emptySingleton = NodeManager::currentNM()->mkNode( kind::STRING_TO_REGEXP, d_emptyString ); - d_zero = NodeManager::currentNM()->mkConst( ::CVC4::Rational(0) ); - d_one = NodeManager::currentNM()->mkConst( ::CVC4::Rational(1) ); - std::vector< Node > nvec; - d_emptyRegexp = NodeManager::currentNM()->mkNode( kind::REGEXP_EMPTY, nvec ); - d_sigma = NodeManager::currentNM()->mkNode( kind::REGEXP_SIGMA, nvec ); - d_sigma_star = NodeManager::currentNM()->mkNode( kind::REGEXP_STAR, d_sigma ); -} - -RegExpOpr::~RegExpOpr(){ + : d_lastchar(options::stdASCII() ? '\x7f' : '\xff'), + d_emptyString(NodeManager::currentNM()->mkConst(::CVC4::String(""))), + d_true(NodeManager::currentNM()->mkConst(true)), + d_false(NodeManager::currentNM()->mkConst(false)), + d_emptySingleton(NodeManager::currentNM()->mkNode(kind::STRING_TO_REGEXP, + d_emptyString)), + d_emptyRegexp(NodeManager::currentNM()->mkNode(kind::REGEXP_EMPTY, + std::vector{})), + d_zero(NodeManager::currentNM()->mkConst(::CVC4::Rational(0))), + d_one(NodeManager::currentNM()->mkConst(::CVC4::Rational(1))), + RMAXINT(LONG_MAX), + d_char_start(), + d_char_end(), + d_sigma(NodeManager::currentNM()->mkNode(kind::REGEXP_SIGMA, + std::vector{})), + d_sigma_star( + NodeManager::currentNM()->mkNode(kind::REGEXP_STAR, d_sigma)) {} -} +RegExpOpr::~RegExpOpr() {} int RegExpOpr::gcd ( int a, int b ) { int c;