@@ -41,11 +41,11 @@ exprt string_constraint_generatort::add_axioms_for_equals(
41
41
// || (0<=witness<s1.length &&s1[witness]!=s2[witness])
42
42
43
43
implies_exprt a1 (eq, equal_exprt (s1.length (), s2.length ()));
44
- m_axioms .push_back (a1);
44
+ axioms .push_back (a1);
45
45
46
46
symbol_exprt qvar=fresh_univ_index (" QA_equal" , index_type);
47
47
string_constraintt a2 (qvar, s1.length (), eq, equal_exprt (s1[qvar], s2[qvar]));
48
- m_axioms .push_back (a2);
48
+ axioms .push_back (a2);
49
49
50
50
symbol_exprt witness=fresh_exist_index (" witness_unequal" , index_type);
51
51
exprt zero=from_integer (0 , index_type);
@@ -57,7 +57,7 @@ exprt string_constraint_generatort::add_axioms_for_equals(
57
57
notequal_exprt (s1.length (), s2.length ()),
58
58
equal_exprt (witness, from_integer (-1 , index_type)));
59
59
implies_exprt a3 (not_exprt (eq), or_exprt (diff_length, witnessing));
60
- m_axioms .push_back (a3);
60
+ axioms .push_back (a3);
61
61
62
62
return tc_eq;
63
63
}
@@ -118,14 +118,14 @@ exprt string_constraint_generatort::add_axioms_for_equals_ignore_case(
118
118
// a3 : !eq => |s1|!=s2 || (0 <=witness<|s1| &&!char_equal_ignore_case)
119
119
120
120
const implies_exprt a1 (eq, equal_exprt (s1.length (), s2.length ()));
121
- m_axioms .push_back (a1);
121
+ axioms .push_back (a1);
122
122
123
123
const symbol_exprt qvar =
124
124
fresh_univ_index (" QA_equal_ignore_case" , index_type);
125
125
const exprt constr2 =
126
126
character_equals_ignore_case (s1[qvar], s2[qvar], char_a, char_A, char_Z);
127
127
const string_constraintt a2 (qvar, s1.length (), eq, constr2);
128
- m_axioms .push_back (a2);
128
+ axioms .push_back (a2);
129
129
130
130
const symbol_exprt witness =
131
131
fresh_exist_index (" witness_unequal_ignore_case" , index_type);
@@ -141,7 +141,7 @@ exprt string_constraint_generatort::add_axioms_for_equals_ignore_case(
141
141
or_exprt (
142
142
notequal_exprt (s1.length (), s2.length ()),
143
143
and_exprt (bound_witness, witness_diff)));
144
- m_axioms .push_back (a3);
144
+ axioms .push_back (a3);
145
145
146
146
return typecast_exprt (eq, f.type ());
147
147
}
@@ -158,7 +158,7 @@ exprt string_constraint_generatort::add_axioms_for_hash_code(
158
158
const typet &return_type = f.type ();
159
159
const typet &index_type = str.length ().type ();
160
160
161
- auto pair=m_hash_code_of_string .insert (
161
+ auto pair=hash_code_of_string .insert (
162
162
std::make_pair (str, fresh_symbol (" hash" , return_type)));
163
163
const exprt hash = pair.first ->second ;
164
164
@@ -168,7 +168,7 @@ exprt string_constraint_generatort::add_axioms_for_hash_code(
168
168
// c3: (|str|==|s| && exists i<|s|. s[i]!=str[i])
169
169
170
170
// WARNING: the specification may be incomplete
171
- for (auto it : m_hash_code_of_string )
171
+ for (auto it : hash_code_of_string )
172
172
{
173
173
const symbol_exprt i = fresh_exist_index (" index_hash" , index_type);
174
174
const equal_exprt c1 (it.second , hash);
@@ -178,7 +178,7 @@ exprt string_constraint_generatort::add_axioms_for_hash_code(
178
178
and_exprt (
179
179
notequal_exprt (str[i], it.first [i]),
180
180
and_exprt (str.axiom_for_length_gt (i), axiom_for_is_positive_index (i))));
181
- m_axioms .push_back (or_exprt (c1, or_exprt (c2, c3)));
181
+ axioms .push_back (or_exprt (c1, or_exprt (c2, c3)));
182
182
}
183
183
return hash;
184
184
}
@@ -212,12 +212,12 @@ exprt string_constraint_generatort::add_axioms_for_compare_to(
212
212
213
213
const equal_exprt res_null (res, from_integer (0 , return_type));
214
214
const implies_exprt a1 (res_null, equal_exprt (s1.length (), s2.length ()));
215
- m_axioms .push_back (a1);
215
+ axioms .push_back (a1);
216
216
217
217
const symbol_exprt i = fresh_univ_index (" QA_compare_to" , index_type);
218
218
const string_constraintt a2 (
219
219
i, s1.length (), res_null, equal_exprt (s1[i], s2[i]));
220
- m_axioms .push_back (a2);
220
+ axioms .push_back (a2);
221
221
222
222
const symbol_exprt x = fresh_exist_index (" index_compare_to" , index_type);
223
223
const equal_exprt ret_char_diff (
@@ -243,12 +243,12 @@ exprt string_constraint_generatort::add_axioms_for_compare_to(
243
243
and_exprt (
244
244
binary_relation_exprt (x, ID_ge, from_integer (0 , return_type)),
245
245
or_exprt (cond1, cond2)));
246
- m_axioms .push_back (a3);
246
+ axioms .push_back (a3);
247
247
248
248
const symbol_exprt i2 = fresh_univ_index (" QA_compare_to" , index_type);
249
249
const string_constraintt a4 (
250
250
i2, x, not_exprt (res_null), equal_exprt (s1[i2], s2[i2]));
251
- m_axioms .push_back (a4);
251
+ axioms .push_back (a4);
252
252
253
253
return res;
254
254
}
@@ -266,7 +266,7 @@ symbol_exprt string_constraint_generatort::add_axioms_for_intern(
266
266
const typet &return_type=f.type ();
267
267
const typet index_type = str.length ().type ();
268
268
269
- auto pair=m_intern_of_string .insert (
269
+ auto pair=intern_of_string .insert (
270
270
std::make_pair (str, fresh_symbol (" pool" , return_type)));
271
271
const symbol_exprt intern = pair.first ->second ;
272
272
@@ -276,16 +276,16 @@ symbol_exprt string_constraint_generatort::add_axioms_for_intern(
276
276
// || (|str|==|s| &&exists i<|s|. s[i]!=str[i])
277
277
278
278
exprt::operandst disj;
279
- for (auto it : m_intern_of_string )
279
+ for (auto it : intern_of_string )
280
280
disj.push_back (equal_exprt (intern, it.second ));
281
- m_axioms .push_back (disjunction (disj));
281
+ axioms .push_back (disjunction (disj));
282
282
283
283
// WARNING: the specification may be incomplete or incorrect
284
- for (auto it : m_intern_of_string )
284
+ for (auto it : intern_of_string )
285
285
if (it.second !=str)
286
286
{
287
287
symbol_exprt i=fresh_exist_index (" index_intern" , index_type);
288
- m_axioms .push_back (
288
+ axioms .push_back (
289
289
or_exprt (
290
290
equal_exprt (it.second , intern),
291
291
or_exprt (
0 commit comments