mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix regression in str
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
fda59f5a24
commit
e9ed3af455
|
@ -100,7 +100,6 @@ namespace smt {
|
||||||
// valid C strings can't contain the null byte ('\0')
|
// valid C strings can't contain the null byte ('\0')
|
||||||
charSetSize = 255;
|
charSetSize = 255;
|
||||||
char_set.resize(256, 0);
|
char_set.resize(256, 0);
|
||||||
charSetLookupTable.resize(256, 0);
|
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
// small letters
|
// small letters
|
||||||
for (int i = 97; i < 123; i++) {
|
for (int i = 97; i < 123; i++) {
|
||||||
|
@ -160,7 +159,6 @@ namespace smt {
|
||||||
const char setset[] = { 'a', 'b', 'c' };
|
const char setset[] = { 'a', 'b', 'c' };
|
||||||
int fSize = sizeof(setset) / sizeof(char);
|
int fSize = sizeof(setset) / sizeof(char);
|
||||||
char_set.resize(fSize, 0);
|
char_set.resize(fSize, 0);
|
||||||
charSetLookupTable.resize(fSize, 0);
|
|
||||||
charSetSize = fSize;
|
charSetSize = fSize;
|
||||||
for (int i = 0; i < charSetSize; i++) {
|
for (int i = 0; i < charSetSize; i++) {
|
||||||
char_set[i] = setset[i];
|
char_set[i] = setset[i];
|
||||||
|
|
|
@ -331,7 +331,7 @@ protected:
|
||||||
std::map<expr*, nfa> regex_nfa_cache; // Regex term --> NFA
|
std::map<expr*, nfa> regex_nfa_cache; // Regex term --> NFA
|
||||||
|
|
||||||
svector<char> char_set;
|
svector<char> char_set;
|
||||||
svector<int> charSetLookupTable;
|
std::map<char, int> charSetLookupTable;
|
||||||
int charSetSize;
|
int charSetSize;
|
||||||
|
|
||||||
obj_pair_map<expr, expr, expr*> concat_astNode_map;
|
obj_pair_map<expr, expr, expr*> concat_astNode_map;
|
||||||
|
|
Loading…
Reference in a new issue