diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-04-03 13:21:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 13:21:55 -0500 |
commit | 69b463e1b1150715b2f4179786ddab8ba0c43b37 (patch) | |
tree | e3c1dcb7d32dc0dbb3dd159cc37ab92371bc9ce3 /test/unit | |
parent | fba1437c772b6733ce678b93b5ef7d95e366c82d (diff) |
Disable substring component contains in strip endpoints (#6266)
Fixes the first benchmark from #6203.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/theory/sequences_rewriter_white.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/unit/theory/sequences_rewriter_white.cpp b/test/unit/theory/sequences_rewriter_white.cpp index a1512d7de..f66a87a83 100644 --- a/test/unit/theory/sequences_rewriter_white.cpp +++ b/test/unit/theory/sequences_rewriter_white.cpp @@ -522,36 +522,6 @@ TEST_F(TestTheoryWhiteSequencesRewriter, rewrite_indexOf) { // Same normal form for: // - // (str.indexof (str.++ "B" (str.substr "CCC" i j) x "A") "A" 0) - // - // (+ 1 (str.len (str.substr "CCC" i j)) - // (str.indexof (str.++ "A" x y) "A" 0)) - Node lhs = d_nodeManager->mkNode( - kind::STRING_STRIDOF, - d_nodeManager->mkNode( - kind::STRING_CONCAT, - b, - d_nodeManager->mkNode(kind::STRING_SUBSTR, ccc, i, j), - x, - a), - a, - zero); - Node rhs = d_nodeManager->mkNode( - kind::PLUS, - one, - d_nodeManager->mkNode( - kind::STRING_LENGTH, - d_nodeManager->mkNode(kind::STRING_SUBSTR, ccc, i, j)), - d_nodeManager->mkNode(kind::STRING_STRIDOF, - d_nodeManager->mkNode(kind::STRING_CONCAT, x, a), - a, - zero)); - sameNormalForm(lhs, rhs); - } - - { - // Same normal form for: - // // (str.indexof (str.++ "B" "C" "A" x y) "A" 0) // // (+ 2 (str.indexof (str.++ "A" x y) "A" 0)) @@ -1320,23 +1290,6 @@ TEST_F(TestTheoryWhiteSequencesRewriter, rewrite_contains) { // Same normal form for: // - // (str.contains (str.++ (str.substr "DEF" n m) x) "AB") - // - // (str.contains x "AB") - lhs = d_nodeManager->mkNode( - kind::STRING_STRCTN, - d_nodeManager->mkNode( - kind::STRING_CONCAT, - d_nodeManager->mkNode(kind::STRING_SUBSTR, def, n, m), - x), - ab); - rhs = d_nodeManager->mkNode(kind::STRING_STRCTN, x, ab); - sameNormalForm(lhs, rhs); - } - - { - // Same normal form for: - // // (str.contains "ABC" (str.at x n)) // // (or (= x "") |