Skip to content

Commit 68b145b

Browse files
fixup! Refactor negation of not contains constraints
1 parent 1266ee0 commit 68b145b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/solvers/refinement/string_refinement.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ exprt substitute_array_access(
12041204
/// their valuation in the current model.
12051205
/// \param constraint: the not_contains constraint to add the negation of
12061206
/// \param univ_var: the universal variable for the negation of the axiom
1207-
/// \param get: valuation function
1207+
/// \param get: valuation function, the result should have been simplified
12081208
/// \return: the negation of the axiom under the current evaluation
12091209
static exprt negation_of_not_contains_constraint(
12101210
const string_not_contains_constraintt &constraint,
@@ -1396,7 +1396,8 @@ static std::pair<bool, std::vector<exprt>> check_axioms(
13961396
const symbol_exprt univ_var = generator.fresh_univ_index(
13971397
"not_contains_univ_var", nc_axiom.s0().length().type());
13981398
const exprt negated_axiom = negation_of_not_contains_constraint(
1399-
nc_axiom, univ_var, [&](const exprt &expr) { return get(expr); });
1399+
nc_axiom, univ_var, [&](const exprt &expr) {
1400+
return simplify_expr(get(expr), ns); });
14001401

14011402
stream << indent << i << ".\n";
14021403
debug_check_axioms_step(

0 commit comments

Comments
 (0)